1. strupr( token ); worked like a charm
2. actually if i can just make condition in which if they see symbol they'll just print out ignore line. It would be an escape, except if a line is like "#...
Type: Posts; User: apm
1. strupr( token ); worked like a charm
2. actually if i can just make condition in which if they see symbol they'll just print out ignore line. It would be an escape, except if a line is like "#...
thanks for the help! i decided to make new a new txt for the heck of it and it doesn't crash anymore, strange.
3 more things to do until my program is complete
- make the script uppercase right...
it works but it crashes
heres a screenshot
http://img362.imageshack.us/img362/2691/untitlednx5.jpg
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <ctype.h>
sorry about the indent
purpose of the program is to read a script from a text file, then tokenize each word/number, then use strcmp to read the word/number that has been tokenized to outport...
what kind of loop can i use so i can pass it to strcmp then?
it crashes after it prints out the the script from the file word by word
/* Reading from the script file */
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <ctype.h>...
my program crashes at the condition part
/* Reading from the script file */
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <ctype.h>
//#include <iostream>
errr, it's not changing my title name
can anyone help?
thanks
/* Reading from the script file */
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>