Search:

Type: Posts; User: luckygold6

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Arrays

    You could use arrays as well for your program. That would make it so you could loop your program. A few "endl"s to help space out your program would make it look more organized. Now, you could...
  2. Replies
    15
    Views
    11,497

    Okay, thanks

    Okay, thanks
  3. Replies
    15
    Views
    11,497

    That makes sense, thanks!

    That makes sense, thanks!
  4. Replies
    15
    Views
    11,497

    Purpose of Abstract Classes

    I've been reading about abstract classes and I can't figure out their purpose. Also, are they suppose to have member functions and data members?

    Thanks in advance!
  5. Replies
    8
    Views
    1,985

    Nevermind, I figured it out.

    Nevermind, I figured it out.
  6. Replies
    4
    Views
    1,941

    Wow, that helps alot. Thanks!!!

    Wow, that helps alot. Thanks!!!
  7. Replies
    4
    Views
    1,941

    Then is fin >> cChar; equivalent to ...

    Then is


    fin >> cChar;


    equivalent to


    fin.get(cChar)
  8. Replies
    4
    Views
    1,941

    get() vs getline()

    Can someone please explain this.

    Thanks in advance!
  9. Replies
    8
    Views
    1,985

    I tried to replace while(in.get(ch)) ...

    I tried to replace



    while(in.get(ch))


    with
  10. Replies
    8
    Views
    1,985

    Hum... that'd be a good idea... Thanks!

    Hum... that'd be a good idea...

    Thanks!
  11. Replies
    8
    Views
    1,985

    using namespace std;?

    Can you please explain the purpose of



    using namespace std;


    Thanks!
  12. Replies
    8
    Views
    1,985

    Command Line Arguments???

    I was reading the command line argument tutorial and I realized that I didn't know what command line arguments are. Can someone quickly explain that to me. And if possible, post an example so I can...
  13. Replies
    22
    Views
    6,549

    Poll: Just Privacy

    I just blocked the names for privacy reasons. I didn't want them to get angry at me for posting them on the internet. If you want to know though, I'm sure they wouldn't mind. Especially me... hehe.
    ...
  14. Replies
    2
    Views
    6,777

    Sorry, this was suppose to be part of another...

    Sorry, this was suppose to be part of another post. I hit new thread instead. My bad.
  15. Replies
    2
    Views
    6,777

    Just Privacy

    I just blocked it for privacy reasons. I didn't want them to get angry at me for posting them on the internet. If you want to know though, I'm sure they wouldn't mind. Especially me... hehe.
    ...
  16. Replies
    3
    Views
    931

    Thanks!

    I found my error. I used the wrong type in my class. Thanks for all the suggestions!
  17. Replies
    3
    Views
    931

    = Operator Error in Class

    I tried to use the = in one of my functions within my class. Oddly enough, it says thats theres an error assigning.



    clase Name
    {
    public:
    void setNumber(short iNumber)
    {
    itiNumber =...
  18. Replies
    22
    Views
    6,549

    Poll: Hum... v1.2 seems to be more fun

    Oddly enough, my improvements seems to make the game worse...?
  19. Replies
    22
    Views
    6,549

    Poll: Revisions to last post

    Paragraph III:
    ...several turns searching for a portion of your ship, then try to locate the other...

    Paragraph VI:
    ...I haven't encountered yet, but then again, the computer seems to always......
  20. Replies
    22
    Views
    6,549

    Poll: The strategy I use is actually really simple. ...

    The strategy I use is actually really simple. Originally, I had actually made it so that the computer tries to locate one of your ships, then it attacks grids around it that would seem most likely...
  21. Replies
    8
    Views
    2,015

    Really!? Great, this makes my program more...

    Really!? Great, this makes my program more efficient since it doesn't need so many memory allocations when I send arrays to functions!

    Thanks!
  22. Replies
    8
    Views
    2,015

    Using & would pass it as a pointer, how would I...

    Using & would pass it as a pointer, how would I pass the arrays as a reference so I don't have to return them?
  23. Replies
    8
    Views
    2,015

    I'm just trying to ensure that it is returning...

    I'm just trying to ensure that it is returning the entire array, rather than just the values at those elements, (though the subsets are [0-7][[0-15][0-4]).
  24. Replies
    8
    Views
    2,015

    Sorry, I meant this code: main() { ...

    Sorry, I meant this code:



    main()
    {
    siPlayerGrid[8][16][5] = setter(siPlayerGrid, siCompGrid, i, j);
    }

    setter(short siPlayerGrid[8][16][5], short siCompGrid[8][16][5], short i, short j)
  25. Replies
    8
    Views
    2,015

    Returning Entire Arrays

    I was wondering if I was doing this correctly. Does this line of code:



    main()
    {
    siPlayerGrid[8][16][5] = setter(siPlayerGrid, siCompGrid, i, j);
    }

    setter(short siPlayerGrid, short...
Results 1 to 25 of 51
Page 1 of 3 1 2 3