okay so another problem now i have in a new program is the following
i'm tring to get what a user types into the dos prompt bit and compare it to i preset in an if statement but the only problem i have is that it compiles and builds successfully with only 12 warnings so then i go and run it and in dos and i get the send a report to microsoft page which then ends the programCode:if (strcmp ("C_CONVERT",argv[1] == 0))
{
printf ("C_CONVERT\tConverts one file type to another\n");
printf ("C_CONVERT\t[source file name] [destination file name]\n");
printf ("\nTo change the file type specify a source file with\nextension and then the desired file name with new\nextension/n/n");
}
else if (strcmp ("C_COPY",argv[1]== 0))
{
printf ("C_COPY\tCopies one file to another location\n");
printf ("C_COPY\t[source file] [destination file]\n");
printf ("\nTo copy a file specify a source file and\nthen the desired file name/n/n");
}
else if (strcmp ("C_DELETE",argv[1] == 0))
{
printf ("C_DELETE\tDeletes one file at a time\n");
printf ("C_DELETE\t[file name] \n");
printf ("\nTo delete a file just specify a file name/n/n");
}
else if (strcmp ("C_FIND",argv[1] == 0))
{
printf ("C_FIND\tSearches for a text string in a file\n");
printf ("C_FIND\t[file name] [string]\n");
printf ("\nTo find a string in a file specify the\nfile and then the string needed to find/n/n");
}
else if (strcmp ("C_HELP",argv[1] == 0))
{
printf ("C_HELP\tProvides help information for my C commands\n");
printf ("C_HELP\t[command]\n");
printf ("\n\t\tcommand - displays information on that command/n/n");
}
else if (strcmp ("C_MORE",argv[1] == 0))
{
printf ("C_MORE\tDisplays output 10 lines at a time\n");
printf ("C_MORE [file name]\n");
printf ("\nTo view a file 10 lines at a time specify file name and at every page break press any key to continue/n/n");
}
else
{
printf("This command is not supported be the c_help utility");
}
how can i sort out the warnings which don't seem to make sense and can i put in a toupper check in there to help the user in what they type in
ps YES i know it looks very familier to the help command from dos