【发布时间】:2012-08-02 09:36:41
【问题描述】:
#include<stdio.h>
int main()
{
int i;
string A[]={"Ahmet", "Mehmet", "Bulent", "Fuat"};
for(i=0;i<=3;i++){
printf("%s",A[i]);
}
return 0;
}
我怎样才能看到我的数组元素作为输出?
编译器说“'string' undeclared”。
【问题讨论】:
-
C 中没有
string类型。 -
请注意,
"Bülent"中的ü输入字符可能不会像 C 编译器所理解的那样仅显示为一个char。