Follgende Fehlermeldung bekomme ich:
C:\Program Files\Microsoft Visual Studio\MyProjects\fafafaava\vavava.cpp(24) : error C2059: Syntaxfehler : '+='
Fehler beim Ausführen von cl.exe.
Ich wüsste nicht , wo mein Fehler ist...
C:\Program Files\Microsoft Visual Studio\MyProjects\fafafaava\vavava.cpp(24) : error C2059: Syntaxfehler : '+='
Fehler beim Ausführen von cl.exe.
Code:
#include <iostream>
using namespace std;
// Prototyp
void bla (int *blabla, int bonus);
int main ()
{
//vari
int life = 0;
int lifeadd = 100;
bla (&life, lifeadd);
cout << life << endl;
return 0;
}
void bla (int *blabla, int bonus)
{
blabla* += bonus;
}
Ich wüsste nicht , wo mein Fehler ist...