Помогите новичку. Решил занятся изучением C++ под linux (Linux
Mandrake 9.2). Для этого взял классику - Бьярна Страустрапа.
Тривиальный хеловорд
#include <iostream.h>
main ()
(*
cout <<"hello, world !\n";
*)
Компилирую
[localhost@root]# gcc ./1.cpp
На это вываливается следуещее:
gcc ./1.cpp
In file included from /usr/include/c++/3.3.1/backward/iostream.h:31,
from 1.cpp:1:
/usr/include/c++/3.3.1/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 <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
1.cpp:7: error: no match for 'operator*' in '*std::cout'
1.cpp:7: error: syntax error before `;' token
1.cpp:10:3: warning: no newline at end of file
1.cpp:10: error: `main' declared as function returning a function
[localhost@root]#
Подобных проблемм с написанием С под linux не было.
P.S. Может руководство Бьярна Страустрапа устарело, тогда посоветуйте мне что нибудь посвжее, но в том же духе с хеловордами, с практикой (просто я по такому принципу не первый язык изучаю)