Search:

Type: Posts; User: curtner

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,439

    test file

    here is the test file that is referenced in the program
  2. Replies
    2
    Views
    1,439

    access violations

    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...
  3. Replies
    2
    Views
    1,808

    ok I figured them out. I forgot to include a "*"...

    ok I figured them out. I forgot to include a "*" in the equations.

    in the getline it was '/n' instead of "/n".
  4. Replies
    2
    Views
    1,808

    the data file its refering to contains the...

    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
  5. Replies
    2
    Views
    1,808

    Need help with program. (please)

    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...
  6. Thread: cin

    by curtner
    Replies
    7
    Views
    1,238

    use cin.getline user inputs "this is a test" ...

    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...
  7. Thread: fstream input

    by curtner
    Replies
    2
    Views
    1,313

    well thanks but I was talking with someone and I...

    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 :)
  8. Thread: fstream input

    by curtner
    Replies
    2
    Views
    1,313

    fstream input

    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...
  9. Thread: array output

    by curtner
    Replies
    4
    Views
    1,272

    also if your just using one five digit number you...

    also if your just using one five digit number you would not need to use an array.
  10. Thread: array output

    by curtner
    Replies
    4
    Views
    1,272

    use the modulus command (%) 12345 for the...

    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.
    ...
  11. Replies
    2
    Views
    1,283

    thanks for the help. I'll give it a try and come...

    thanks for the help. I'll give it a try and come back if I need some more help.
  12. Replies
    2
    Views
    1,283

    inputting of files and storing to variables

    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...
Results 1 to 12 of 12