Sorry about that...here, i will post the question again and the code this time...
Hey, I compiled the code, the one that I just asked about before (after i fixed it), and this window popped up called "Compiler and Linker Output" and it says... " C:\DEV-C_~1\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined reference to `WinMain@16' ". That was after i pushed the "Compile and Run" option on the top of Dev-C++. the window said there were 0 errors, it had me press "continue" and that window was there...can someone explain to me what i am doing wrong? Here is the code...
Code:
#include <iostream.h>
#include <stdlib.h>
bool accept3()
{
int tries = 1;
while (tries < 4) {
cout<<"Do you want to proceed (y or n)?\n";
char answer = 0;
cin >> answer;
switch (answer) {
case 'y':
return true;
case 'n':
return false;
default:
cout<<"Sorry, I don't understand that.\n";
tries = tries + 1;
}
}
cout<<"I'll take that for a no.\n";
return false;
}
Code tags added by Kermi3