Hallo ihr,
ich habe mich mal wieder mehr mit cpp beschaeftigt, habe aber einen
Error, den ich mir nicht erklaehren kann:
Das Programm
wird vom Compiler mitCode:#include <iostream> using namespace std; int a; int b; int c; int test(int,int) { c=a+b; } int main() { cin >> a; cin >> b; int test(a,b); cout << c << endl; }
quittiert.Code:test2.cpp: In function `int main()': test2.cpp:18: error: initializer expression list treated as compound expression
Ich glaube dass das ein ziemlich dummer Fehler ist, habe aber mom. eine Blockade...
Danke,
Zorn
Lesezeichen