Search:

Type: Posts; User: swayp

Search: Search took 0.01 seconds.

  1. Thread: c++ and on

    by swayp
    Replies
    5
    Views
    966

    c++ and on

    Hi,
    I think I've basically learned the basics to c++. I wouldn't say I'm a master at it or anything but I have read and practiced most of the information all the way up to classes and linked lists...
  2. Replies
    1
    Views
    893

    help with a really basic question

    Hi,
    I've already learned how to do basic programming in C++ and understand all the basics. I want to go a step further now and based on this website I was going to explore OpenGL. I was reading...
  3. Replies
    3
    Views
    1,560

    Is everyone else that viewed this stuck too? :(

    Is everyone else that viewed this stuck too? :(
  4. Replies
    3
    Views
    1,560

    Can't wrap my brain around this:

    Ok back to my CD Database:

    I'm still trying to add the track list but I decided to implement it with another class mainly because I couldn't figure it out any other way.

    So I have a Database...
  5. Replies
    6
    Views
    1,649

    I was playing around with different kind of loops...

    I was playing around with different kind of loops besides the do-while and my conclusion is I think the do/while (and when I try to convert it to a for and while loop) it runs one more time then I...
  6. Replies
    6
    Views
    1,649

    No it doesnt end at all. It has a segmentation...

    No it doesnt end at all. It has a segmentation fault before it breaks out of the reading in file loop:


    while ( infile.peek() != EOF)


    It never prints that last cout statement outside the...
  7. Replies
    6
    Views
    1,649

    More Reading in problems

    Ok I'm having problems reading in a file again. Its the same CD Database but I decided to add a track listing to it. So, since different cds have different numbers of tracks, I added a loop in...
  8. Thread: Dynamic Arrays

    by swayp
    Replies
    5
    Views
    1,467

    Dynamic Arrays

    Ok back to the questions

    I've created a database of CD's in which the Database class is simply an array of pointers to CD's (another class). I've initialized it as such:



    CD*...
  9. Replies
    3
    Views
    1,683

    Reading in File Help

    Hi, I'm trying to read from a file and I'm getting a segmentation fault, can someone help me with what I'm doing wrong:

    My .txt file looks exactly like this:


    -CD-
    Artist: Outkast
    Title:...
  10. Replies
    5
    Views
    966

    Once I've written something to an ouput file, is...

    Once I've written something to an ouput file, is there a way I can delete anything from it.

    For instance, I prompt the user what CD he wants to delete, and then I can find it in the database and...
  11. Replies
    5
    Views
    966

    Output File Help please

    Hi, I'm trying to create a CD database and I want to have a .txt file that contains the database. So as I start the program, it will read in the database and anything I add or erase from it then it...
  12. Replies
    47
    Views
    12,104

    Hey, no problem I hoped I help. I was looking...

    Hey, no problem I hoped I help.

    I was looking at your updated code and it appears you updated half of it and forget the rest heh :).

    You still have the variables q1,d1,etc. in there but they...
  13. Replies
    47
    Views
    12,104

    Hey, I'm not that great at programming, but I...

    Hey, I'm not that great at programming, but I could offer some help since two heads are better than one.

    One tip is to load up your code with comments which is something your totally missing...
  14. Replies
    10
    Views
    1,128

    i get what your saying, but i think the book was...

    i get what your saying, but i think the book was saying that they want me to implement the program using linked lists (and obviously using classes) so i was going to try to do it like that, unless of...
  15. Replies
    10
    Views
    1,128

    I have no idea how to use vectors and although...

    I have no idea how to use vectors and although your probably correct and that would work, I'm leaning out of a book of data structures and this 'assignment' was around the linked list section in...
  16. Replies
    10
    Views
    1,128

    help please.. linkedlists/classes

    hi, ive never posted here before so im hoping i can get some help with this question i got:

    im reading in a database, and its from a file which is nfl stats.. i cant figure out how to organize the...
Results 1 to 16 of 16