نسخة الفيجول سي++ لدي لا تتعرف على النمط string
لقد قمت بتجربة البرنامج التالي:
كود:
#include<string.h>
void main(){
string w1; //or String w1;
} والنتيجة:
اقتباس:
| --------------------Configuration: Text1 - Win32 Debug--------------------
Compiling...
Text1.cpp
C:\Documents and Settings\??C?\My Documents\C++\Text1.cpp(3) : error C2065: 'string' : undeclared
identifier
C:\Documents and Settings\??C?\My Documents\C++\Text1.cpp(3) : error C2146: syntax error :
missing ';' before identifier 'w1'
C:\Documents and Settings\??C?\My Documents\C++\Text1.cpp(3) : error C2065: 'w1' : undeclared
identifier
Error executing cl.exe.
Text1.obj - 3 error(s), 0 warning(s) |
أرجو الرد بسرعة,
وشكرا...