heres the code now:
Code:
#include <stdio.h>
#include <stdlib.h>
#define TURE 1
#define FALSE 0
int _END=0;
int main(int argc, char *argv[])
{
char name_login[5000];
char command[500];
printf("\n\n\tWelcome To BOS the Basic Oparateing System\n\n\nPlz Type in your name: ");
scanf("%s", name_login);
printf("\n\nHello %s", name_login);
if(_END!=1)
{
printf("\n>>> ");
scanf("&s", command);
switch( tolower( command[0] ) ){
case 'e':
{
if( strcmp( command, "exit" ) == 0 )
{
printf("exiting");
}
_END=1;
break;
}
default: {printf("unknown command");break;}
}
}
return 0;
}
but now the output is this:
Code:
Welcome To BOS the Basic Oparateing System
Plz Type in your name: Karl
Hello Karl
>>> unknown command
wat do I need to fix and how?