Postanowilem zaczac nauke c++ Posiadam ksiazke thinking in c++ i z niej planowalem zdobywac wiedze.. jednak na poczatku natrafilem na problem. :(
Pierwszy program opisany w tej ksiazce to:
#include <iostream>
using namespace std;
int min() {
cout << "Witaj swiecie! Mam dzisiaj "
<< 8 << " urodziny! " << endl;
}///:
Kompilowalem w gcc pod linuxem znalazl mi kupe bledow..
Skompilowalem w dev c++ pod windowsem xp - 6 bledow:
gcc.exe "C:\Documents and Settings\Uzytkownik\Pulpit\1.c" -o "C:\Documents and Settings\Uzytkownik\Pulpit\1.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
C:/Documents and Settings/Uzytkownik/Pulpit/1.c22: iostream.h: No such file or directory
C:/Documents and Settings/Uzytkownik/Pulpit/1.c parse error before "namespace"
C:/Documents and Settings/Uzytkownik/Pulpit/1.c warning: data definition has no type or storage class
C:/Documents and Settings/Uzytkownik/Pulpit/1.c: In function min': C:/Documents and Settings/Uzytkownik/Pulpit/1.c:5:
cout' undeclared (first use in this function)
C:/Documents and Settings/Uzytkownik/Pulpit/1.c (Each undeclared identifier is reported only once
C:/Documents and Settings/Uzytkownik/Pulpit/1.c for each function it appears in.)
C:/Documents and Settings/Uzytkownik/Pulpit/1.c `endl' undeclared (first use in this function)
Wykonanie zakończone
I sciagnalem jeszcze c++ builder z jakimis command line tools (samo razem builderem sie sciagnelo ze strony borlanda) sprubowalem zainstalowac ale jakos nie moge sobie poradzic po normalnej instalacji jescze cos trzeba skonfigurowac czytalem plik readme.txt ale nie moge poradzic sobie jakos z ta instalacja..
Prosze o pomoc z tym programikiem moim.. co jest nie tak dlaczego nie chce sie skompilowac ;/ I jak mozna to o pomoc w instalacji tego c++ buildera.