Ok thanks for the help MK and everyone else. Going to give this a break for now and go at it again tomorrow.
Type: Posts; User: Martyn27
Ok thanks for the help MK and everyone else. Going to give this a break for now and go at it again tomorrow.
Ok ill try it that way. What should i use to get the data from a file fgets still? Yeah we have used switch/case but briefly.
But still, arent i going to have a case for every type of illegal...
Or i could just add another loop at the end i guess. Keep that loop what its doing and use this one to make all I's a capital.
Yeah but its doing other stuff for example
else if (strchr(c, '#')) // Check for a hash.
{
correctionCount++;
}
//-------------------------------
else if (strchr(c, '...
Argh. To get it to read line by line it means im going to have to change my entire program. Would there be anyway possible to do it by reading one char at a time?
Ok thanks ill give that a try
Yeah. The brief says any occurence of the char i on its own should be made Capital.
Ok how do i use fgets to read a line instead of char?. Only started c a few months ago and our lecturer kinda...sucks :P
What if there is multiple occurences of a char on a single line?
Hey guys just need a bit of help with some code i am doing for an assignment. Basically we are given a file and we need to manipulate the data. However there is one thing im struggaling to do. I need...
Nope is definately just ;c\
Yup the directory exists
Yup there is a gcc.exe in there
Tried Gcc.exe - v same result.
As in close it down and open it up again, yeah. Would restarting my PC help?
Hey guys.
First off i'd just like to say im really new to C. We are just about to start it soon in uni and our lecturer recommended a book for us. I decided to get it and do some reading up before...