#include <string.h>
using
namespace std;
int main()
{
string dd;
return
0;
}
xlC -o test test.cpp -I/usr/include
"test.cpp", line 5.16: 1540-0040 (S) The text "dd" is unexpected. "string" may be undeclared or ambiguous.
用#include <string>
就报找不到的错。哎 不知道什么原因 |