Search:

Type: Posts; User: Vulpecula

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    885

    I'm having trouble writing it out. To write it...

    I'm having trouble writing it out. To write it out I have this:



    cout << States [row] << AdmNum [row];


    The code for opening and closing the file is this:
  2. Replies
    3
    Views
    885

    Reading a File

    I opened and read a file in a program that I am working on. I have the following informantion in the file:

    string intstring intstring intstring intstring intstring
    int string intstring...
  3. Replies
    3
    Views
    993

    I guess the easiest way to do this was using the...

    I guess the easiest way to do this was using the ignore after reading what I wanted to keep from the file. I tried it this way and it worked.
  4. Replies
    3
    Views
    993

    Skipping Columns in Text File

    I've searched the web for ways to ignore data in specific colums of a text file. I found a way or two but they didn't seem to make much sense to me. So my question is, what would be the best way to...
  5. Thread: for loops

    by Vulpecula
    Replies
    4
    Views
    1,061

    Great! Thanks for pointing that out. I was in...

    Great! Thanks for pointing that out. I was in fact missing the sum formula inside the for loop and needed curly braces for that as well.
  6. Thread: for loops

    by Vulpecula
    Replies
    4
    Views
    1,061

    Are you saying I still need to use all for loops...

    Are you saying I still need to use all for loops even after merging?
  7. Thread: for loops

    by Vulpecula
    Replies
    4
    Views
    1,061

    for loops

    I'm having trouble incorporating this for loop:




    double sum;
    for (int row= 0; row < i; row ++)
    {
    cout << Names[row] << " ";
    int col=0;
  8. Replies
    5
    Views
    1,192

    I'm aware that it should be doing it for me,...

    I'm aware that it should be doing it for me, however, I was receiving an error/warning (don't recall which) that said that it could not be converted. I compiled my program again and it shows zero...
  9. Replies
    5
    Views
    1,192

    Yes, I have the code to calculate the average....

    Yes, I have the code to calculate the average. So far it looks like this:



    double sum;
    for (int row =0; row < i; row++) //For each student, calculate the average score. Average for each...
  10. Replies
    5
    Views
    1,192

    Producing a Table with Data from File

    Hi everyone,

    I'm currently working on a program that will give me the averages of scores and stores them into a one-dimensional arrray. I'm having trouble in regards to where I should be putting...
Results 1 to 10 of 10