I still get errors for:
Code:
#include <iostream.h>
#include <conio.h>
#include <stdlib.h>
#include <string>
void levup();
int exp=0;
int level=1;
int main()
{
while(level<100){
exp++;
cout<<"Your level is: "<<level;
levup();
getch();
}
return 0;
}
void levup(){
if (exp==100){
exp=0;
level++;
}
}
And the errors:
Code:
Error E2356 d.cpp 6: Type mismatch in redeclaration of 'exp(double)'
Error E2063 d.cpp 6: Illegal initialization
Error E2141 d.cpp 6: Declaration syntax error
Error E2335 d.cpp 11: Overloaded 'exp' ambiguous in this context in function mai
n()
Error E2335 d.cpp 19: Overloaded 'exp' ambiguous in this context in function lev
up()
Error E2335 d.cpp 20: Overloaded 'exp' ambiguous in this context in function lev
up()