My problem is as said "expected ';' before "int" "
I dont the problem =>
This obviusly aint the hole text, rather its the place where its complaining.
int tarning2(void)
{
return(tarning1()+tarning1());
}
int tarning1(void)
{
int max = 6, min = 1;
return (rand()%(max-min+1)+min);
}
This might have something to do with it:
int tarning1(void);
int tarning2(void);
void main()
What Im trying to do is a dice game.
I've tryed change void main to int main and adding a return 0; , however it still complains.
Heres the exact complaints:
`main' must return `int'
In function `int main(...)':
Also wondering what this is:
1 D:\ANNAT\Dev-Cpp\include\c++\3.4.2\backward\iostream.h:31, from CRY\DICE.cpp In file included from D:/ANNAT/Dev-Cpp/include/c++/3.4.2/backward/iostream.h:31, from CRY/DICE.cpp