4n4rchis7
01-18-2008, 08:26 AM
#include <iostream>
int main (int argc, char *argv[])
{
char question;
printf("Start the programm in fullscreen????n(y)es (n)on");
scanf("%e", &question);
if (question=='n')
{
//here is the first action if you want start it
}
else if (question=='j')
{
//here is the second action if you want to start it the other way
}
when i compile it this way the programm is closing after i wrote y or n in it i have no idea what i do wrong
pls help
int main (int argc, char *argv[])
{
char question;
printf("Start the programm in fullscreen????n(y)es (n)on");
scanf("%e", &question);
if (question=='n')
{
//here is the first action if you want start it
}
else if (question=='j')
{
//here is the second action if you want to start it the other way
}
when i compile it this way the programm is closing after i wrote y or n in it i have no idea what i do wrong
pls help