- strlen——–#include < string.h >
- strcmp——-#include < string.h >
- 在VC6.0中定义结构体不需要使用typedef
- error C2018: unknown character ‘0xa3’一般是采用了非法符号导致
GNU GCC/G++ 作为C/C++编译器下
int a[2][2]={
1,1,
2,2
};
是错误的
应为:
int a[2][2]={{1,1},{1,1}};scanf(“%d%d\n”,&M,&N)—————- \n必须去掉
- 定义char * s,然后使用scanf为什么不对呢;(?????)
- malloc—stdlib.h
- function cannot be member of struct ‘bigInteger’:c语言中不支持结构体中使用函数,应当把文件后缀改为cpp;
- VC6.0里不支持在同一个函数内的多个for循环定义同一个变量;
- 没有返回则:control reaches end of non-void function
- atoi在stdlib.h
- VC6.0中定义#define MAX_SIZE 1000000,int data[MAX_SIZE],跑不起来的;
- clang++3.3中不能使用“index”变量名;