Search:

Type: Posts; User: WinterInChicago

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    30
    Views
    3,261

    oh. crap. alright, thank you.

    oh. crap. alright, thank you.
  2. Replies
    30
    Views
    3,261

    the int j= i?

    the int j= i?
  3. Replies
    30
    Views
    3,261

    im doing something wrong, because i tried...

    im doing something wrong, because i tried changing it to

    for (int j = i; j >0; j--)

    and it made it worse... im not sure i understand.
  4. Replies
    30
    Views
    3,261

    what does that mean?

    what does that mean?
  5. Replies
    30
    Views
    3,261

    getting there... my output is just looking...

    getting there...

    my output is just looking odd... new code:


    #include<iostream>
    #include<iomanip>
    #include<vector>
    #include<fstream>
    #include<string>
  6. Replies
    30
    Views
    3,261

    I think this is right.... but i have errors: ...

    I think this is right.... but i have errors:





    aname9.cpp: In function `int main()':
    aname9.cpp:43: warning: assignment to `int' from `double'
    aname9.cpp:43: warning: argument to `int'...
  7. Replies
    30
    Views
    3,261

    alright, i did some more coding and changed the...

    alright, i did some more coding and changed the for loop to a while loop:

    to store in the vectors and array:


    int i=0;
    while (!fileout.eof())
    {
    fileout >> ssn[i];
    fileout.ignore(80,'\n');
  8. Replies
    30
    Views
    3,261

    so how do i list them in reverse... does it...

    so how do i list them in reverse... does it involve another for loop with an i-- in it
  9. Replies
    30
    Views
    3,261

    i would assume to put the end of file check at...

    i would assume to put the end of file check at the end of the for loop. is that wrong? and im not sure how i store them in the arrays or vectors, or list them. im lost.
  10. Replies
    30
    Views
    3,261

    this so far compiles //Name //Program 9...

    this so far compiles



    //Name
    //Program 9
    //Write a program that reads info from a dat file and stores it in vectors and arrays.

    #include<iostream>
    #include<vector>
  11. Replies
    30
    Views
    3,261

    so am i doing getline(fileout, name[i]);

    so am i doing getline(fileout, name[i]);
  12. Replies
    30
    Views
    3,261

    if i use getline, will it still be taking it from...

    if i use getline, will it still be taking it from the file?
  13. Replies
    30
    Views
    3,261

    so far #include #include...

    so far



    #include<iomanip>
    #include<vector>
    #include<fstream>
    #include<string>

    int main ()
  14. Replies
    30
    Views
    3,261

    better? #include...

    better?



    #include<iomanip>
    #include<vector>
    #include<ifstream>
    #include<string>

    int main ()
  15. Replies
    30
    Views
    3,261

    From files to vectors and arrays.

    Am I on the right track. I know there is not much to my code, but am I?

    assignment--------
    CSCI 1010 Programming Assignment 9



    Write a C++ program that reads the following information...
  16. Replies
    16
    Views
    2,172

    ohhh. i .... disregard what was here, i see now ...

    ohhh. i .... disregard what was here, i see now

    thanks so much for hte help
  17. Replies
    16
    Views
    2,172

    i knew that... i dont know why i didnt catch it,...

    i knew that... i dont know why i didnt catch it, thanks... but nowmy files arent writing correctly. the 50plus and 50below should be written like:

    A10
    B10
    B30
    C20
    C30

    but its writing the...
  18. Replies
    16
    Views
    2,172

    #include #include #include...

    #include <iostream>
    #include <fstream>
    #include <string>

    using namespace std;

    void outputfile (ofstream & filesout, string serial);
    //function declaration

    int main ()
  19. Replies
    16
    Views
    2,172

    better? #include #include...

    better?


    #include <iostream>
    #include <fstream>

    using namespace std;

    void outputfile (ofstream & filesout, string serial);
    //function declaration
  20. Replies
    16
    Views
    2,172

    So I need an int to pass the info in the file to,...

    So I need an int to pass the info in the file to, to pass to the void, to put in the if else to know which file to write what to? Is this correct?
  21. Replies
    16
    Views
    2,172

    This is why I came here. I do not know what to...

    This is why I came here. I do not know what to put.
  22. Replies
    16
    Views
    2,172

    what?

    what?
  23. Replies
    16
    Views
    2,172

    fileout is my stream

    fileout is my stream
  24. Replies
    16
    Views
    2,172

    Files and functions

    I am trying to understand this assignment. Im reading my book and the lecture notes the prof. puts online but I am stuck. Could you help me please?

    assignment:

    CSCI 1010 Programming Assignment...
  25. i wish i could edit my first post. i think one of...

    i wish i could edit my first post. i think one of my classmates snatched my code off here and i dont want that.
Results 1 to 25 of 64
Page 1 of 3 1 2 3