heres my code
ill point out what i need looped
isnt done yet but has errors that i cant figure out how to fix
Code:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int a,name,main,starta,outa;
printf("Please enter your name: ");
scanf("%user",&name);
printf("Hello, %user\n\n",name);
printf("Welcome to the quest for users brain\n"
"Sponsored By DUR\n"
"for more info on DUR go to www.freewebs.com/lordhsv1991\n\n"
"Name: DURxLoRdHSV\n"
"Copyright: 2006\n");
system("PAUSE");
system("CLS");
printf(" Main Menu \n");
printf("-> 1 - start\n");
printf("-> 2 - quit\n");
printf("-> ");
scanf("%d", &main);
switch (main) {
case 1:
system("CLS");
printf("Hayden was at the store when he realised he had no brain\n"
"so after he tryed to realse it and ........ his pants he went home to try to think\n"
"big success that was\n"
"well back to the story\n"
"what do u want to do know?\n");
printf(" go to \n");
printf("-> 1 - shops\n");
printf("-> 2 - park\n");/*done but needs loop back to here (loop a)*/
printf("-> ");
scanf("%d", &starta);
if(starta == 1) {
system("CLS");
printf("you look around the shops and find some canned brains\n"
"unforunalty, even u know that wont work LOL\n"
"after hours of lookin high and low\n"
"you go home dissapointed\n"
"your sad so you indulge on a cake\n "
"then you go out/n");
printf(" goin out \n");
printf("-> 1 - movies\n");
printf("-> 2 - walk\n");/*needs a loop back to here (loop b)*/
printf("-> ");
scanf("%d", &outa);
if(outa == 1){
printf("You go and watch your favourite movie\n"
"this cheers you up\n"
"untill.......\n");
systemf("PAUSE");
printf("the power dies...\n"
"this angers you...\n"
"so you throw a fit in the movies and end up trying to sue\n"
"but....\n"
"you dont have the mental capacity to do so...\n"
"the movies gives u a store credit\n"
"you go home...\n");
if(outa == 2) /* needs loop back to outa menu (loop b)*/
printf("You get to the door and colapse of exhaustion\n"
"so.... you decide to sleep on the lounge for abit\n"
"several hours later...\n"
"you are now ready to go out again\n"):
/*loop need to start here*/
}
if(starta == 2){
system("CLS");/*needs aloop upot 1st menu (loop a)*/
printf("dont you remember.....\n"
"after u releived your self on that old person\n"
"you were banned for life\n"); /*loop need to start here*/
}
case 2:
system("CLS");
printf("thanks for using DUR sofetware");
system("PASUE");
break;