c语言太容易出笔误了,这样都行

调试中发现同时写的NB代码

test.c

int add(string);

int main()
{
	char* p = "11222";
	add(p);
	return 0;
}

int add(string)
{
	return 0;
}


用c编译类型都可以不写,默认类型是整型,太容易出笔误了吧

猜你喜欢

转载自blog.csdn.net/mos2046/article/details/38068135