Mình có viết 1 doạn :
Quote:
Viết trong TC thì khi nhấn CTRL + F9 thì chuơng trình chạy bình thường, hok có 1 lỗi nào , Nhưng khi vào trong Dev-C++ thì nó báo 1 đống lỗi
Quote:
Hix, ai biết xin chỉ mình với . Hình như cái này là lỗi chưa khai báo thư viện hay seo ấy
Quote:
#include #include #include #include #include void main() { clrscr(); int p[5],q[5]; p[1]=p[2]=q[1]=q[3]=1; p[3]=p[4]=q[2]=q[4]=0; cout<<"P Q (P and Q) (P or Q) (P xor Q) (P -> Q) (P <-> Q) "; for(int i=1;i<=4;i++) cout<<"\n\n"< <<" "< |
Viết trong TC thì khi nhấn CTRL + F9 thì chuơng trình chạy bình thường, hok có 1 lỗi nào , Nhưng khi vào trong Dev-C++ thì nó báo 1 đống lỗi
Quote:
Compiler: Default compiler Executing g++.exe... g++.exe "E:\hoctap\cpp\BAI1.CPP" -o "E:\hoctap\cpp\BAI1.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" In file included from C:/Dev-Cpp/include/c++/3.4.2/backward/iostream.h:31, from E:\hoctap\cpp\BAI1.CPP:5: C:/Dev-Cpp/include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the E:\hoctap\cpp\BAI1.CPP:7: error: `main' must return `int' E:\hoctap\cpp\BAI1.CPP: In function `int main(...)': E:\hoctap\cpp\BAI1.CPP:8: error: `clrscr' undeclared (first use this function) E:\hoctap\cpp\BAI1.CPP:8: error: (Each undeclared identifier is reported only once for each function it appears in.) E:\hoctap\cpp\BAI1.CPP:16:2: warning: no newline at end of file Execution terminated |
Hix, ai biết xin chỉ mình với . Hình như cái này là lỗi chưa khai báo thư viện hay seo ấy