OK im getting there I think but for some reason the error i.e Hello just for the sake of a message comes up when the program begins as well
I know its probably something simple but i cant figure it out, think im thinking to hard
Code:
int choice=-1; /* sets choice as an integer value starts at 0*/
while (choice!=0&&choice<7) /* Sets a while statement so case is only active within range less than 6*/
{
switch (choice) /* Choice number will represent menu */
{
case 1:
{
num_lines(); /* When 1 is selected takes it to sub program num_lines */
break;
}
case 2: /* Case 2 to case 6 same as above */
{
num_words();
break;
}
case 3:
{
num_chars();
break;
}
case 4:
{
chars_rev();
break;
}
case 5:
{
lines_rev();
break;
}
case 6:
{
exit();
}
default:
{
printf("hello");
getch();
}
}
thx again