Well, im trying to get full screen in console, but it doesnt seem to be working...
Code:
#include <iostream.h> //**REQUIRED TO WORK**
int main() //**REQUIRED TO WORK**
{
void fullscreen() //another cool trick that I use to make it full screen or back to normal size
{
keybd_event(VK_MENU,0x38,0,0); //taken from cprogramming.com message board
keybd_event(VK_RETURN,0x1c,0,0);
keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
}
char name1[15]
cout<<"Hello World";
cout<<"What is your name?:";cin>>name1;
return 0;
}
What seems to be wrong here? I get errors like...
error C2601: 'fullscreen' : local function definitions are illegal and error C2146: syntax error : missing ';' before identifier 'cout'
thanks,
Gutty