haukz…haukz…stelah berpusing-pusing..dengan hal yg spele..
akhirnya error q teratasi juga..hehe
Bgini critane…q blajar c++ di LInux pk MinGW Studio…
q coba skrip sederhana…
#include <iostream.h>
main()
{cout<<”test doank”;
}
truz coba di compile muncul tampilan spt ni..
coba_1.cpp
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward/iostream.h:31,
from coba_1.cpp:1:
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.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 <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
coba_1.cpp:3: warning: ISO C++ forbids declaration of âmainâ with no typecoba_1.o – 0 error(s), 2 warning(s)
wah..wah..kq gk jalan…
setelah..ku mencari2 apa yg terjadi pada om GOOGLE…enk ink enk..
akhirx kutemukan artikel yg menuntun diriku agar tidak ERRor lagi…
ternyata…skrip di c++ nya ruz pake yg standar internasional.. a.k.a pk yg STD
akhirnya q rubah skripnya spt berikut.. :
#include <iostream>
using namespace std;
int main()
{
cout<<”test doank”;
}
enk ink enk…akhirnya jalan juga program q..hehe…