我非常喜欢C++,所以我想学习,因为即时学习软件工程,我买了一本书,我试图在dev C++中做这个例子,并且我得到一个错误,我找不到解决方案净。下面是代码和错误;有关书中的示例的错误
#include <stdio.h>
#include <conio.h>
main()
{
char a;
int i;
i =-+;
while (i=255) {i++;
printf("%.3d. Alphabet: %c\n",i,i);
a= getch();
};
}
书中说输出就像;
- 字母:甲
- 字母:乙 等..
问题是,当我按下编译它表示;
[Error] expected primary-expression before ';' token
有人能告诉我它是什么吗?
几个复制粘贴错误:i = - +;虽然(i = 255) –