well you can use two case in a row for same thing,like this:
char choice;
choice=getchar();
switch(choice)
{
case 'C':
Type: Posts; User: aaa111
well you can use two case in a row for same thing,like this:
char choice;
choice=getchar();
switch(choice)
{
case 'C':
char choice;
choice=getchar();
switch(choice)
{
case 'C':
{//equation for Celcius
break;
}
A program can be spread across two or more files.So, a global variable can be accessed by all the files whereas, a static global variable can be accessed only by the file in which it is...
The reason it is not working is because any else is related to its nearest if.So the else in you program is related to the last if statement and since it bacame false the else executed.You should...
Hi,
I am new to this forum.I was just trying to do a tic tac toe game using mouse,but i am facing some wierd problem.I was trying to do like this,on a left button click i should get "x",then on...