here is the test file that is referenced in the program
Type: Posts; User: curtner
here is the test file that is referenced in the program
I'm using fstream.h to read in a text
I used the file .get() so I could store the characters one at a time. This is causing an access violation, which my roommate said it was trying to write to...
ok I figured them out. I forgot to include a "*" in the equations.
in the getline it was '/n' instead of "/n".
the data file its refering to contains the following information.
feet
10.0
1.0
32.2
5.0
0.0,0.0,0.0
1.0,0.0,0.0
0.0,1.0,0.0
Here is some code I wrote. I dont why its giving me these errors.
C:\My Documents\programs\actual project for ie1.cpp(55) : error C2064: term does not evaluate to a function
C:\My...
use cin.getline
user inputs "this is a test"
char uinput[10];
cin.getline(uinput,10,"/n")
// uinput is the string name, 10 is the maximum characters it will bring in, "/n" tells it to...
well thanks but I was talking with someone and I screwed up defining a_file. I cave the command to output to it instead of input. That should take care of my problem :)
I named the file ,I wanted opened, a_file just like the example I found so I wouldnt confuse myself. I've tried compiling it and it says that getline is not a member of fstream. (I could have told...
also if your just using one five digit number you would not need to use an array.
use the modulus command (%)
12345
for the one use 12345%10000 this command will get you the one and then you may want to store the remainder. then keep doing this for the next number down.
...
thanks for the help. I'll give it a try and come back if I need some more help.
I have to input text from a file and it will be in the following format
feet or meters
pressure etc (this shouldnt be too hard)
I'm thinking of using a for loop with peek() to look ahead so I...