Ohhh, so then how do i change it to read characters?
Ohhh, so then how do i change it to read characters?
look up the scanf and fscanf function. What is the format specifier for reading characters?
once you have that you can put your print statement to print out CHARACTERS, right after you read it in to see if its reading properly. Changed your code and it working on my system.
Last edited by hex_dump; 01-30-2013 at 09:53 PM.
Ohh ok, so I changed the %d to %c which means that now it should be printing characters instead of integers. However, now it doesn't output anything, just a blank space haha.....what do you mean by making my print statement to print out characters?....
OMG.........it actually works!!!! only now, the last problem, how do I get it to look exactly like the txt file? like this:
cause right now, it looks like this:Code:16 Kelly, Victor Lam, Gary Nagasake, David Nguyen, Jeff Nguyen, Michael Sinn, Scott Smith, Jacob Son, Thai Tavares, Maribel Tran, Diane Tsukamoto, Andrew Wang, Mary Young, Daniel Wells, Steve Wong, Justin Johnson, Mary
Code:16Kelly,VictorLam,GaryNagasake,DavidNguyen,JeffNguyen,MichaelSinn,ScottSmith,Jac obSon,ThaiTavares,MaribelTran,DianeTsukamoto,AndrewWang,MaryYoung,DanielWells,St eveWong,JustinJohnson,Mary Process returned 0 (0x0) execution time : 0.297 s Press any key to continue.