redPull
31-07-2004, 07:32
Hallo,
versuche ein kleines C-Übungsprogramm von
http://www.lcs-chemie.de/c_comp.htm
zu übersetzen.
#include <iostream>
using namespace std;
void main( void )
{
char name[50];
cout << "Wie ist Dein Name ?:";
cin >> name;
cout << "Hallo, " << name << endl;
}
Hier meldet mein Compiler (gcc 3.3.2):
test.cpp:4: error: `main' must return `int'
Was bedeutet das ? Wieso geht das so nicht ? Wieso bin ich Anfänger ? :rolleyes:
versuche ein kleines C-Übungsprogramm von
http://www.lcs-chemie.de/c_comp.htm
zu übersetzen.
#include <iostream>
using namespace std;
void main( void )
{
char name[50];
cout << "Wie ist Dein Name ?:";
cin >> name;
cout << "Hallo, " << name << endl;
}
Hier meldet mein Compiler (gcc 3.3.2):
test.cpp:4: error: `main' must return `int'
Was bedeutet das ? Wieso geht das so nicht ? Wieso bin ich Anfänger ? :rolleyes: