I am doing the C++ tutorial at http://www.cplusplus.com/doc/tutorial/tut1-1.html
I am also extremly new to this and I am learning as I go.
I used kwrite and copied it down exactly.
// my first program in C++
int main ()
cout << "Hello World!";
Then I made another with some minor modifications. But with each one I get this message,
"[root@localhost first]# g++ first.cc -o first
In file included from /usr/include/c++/3.3.2/backward/iostream.h:31,
/usr/include/c++/3.3.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 18.104.22.168 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
Also When I compile this, how do I execute it? I tried just typing in "first" but nothing happened.
What am I doing wrong?