Search:

Type: Posts; User: sh3rpa

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,225

    >how do I give the correct number of answers? ...

    >how do I give the correct number of answers?

    -start with something to keep a count (an integer)

    -every time the user answers correctly, increment the counter.

    -at the end, display the final...
  2. Replies
    7
    Views
    1,107

    many thanks CornedBee, I think I've worked it out...

    many thanks CornedBee, I think I've worked it out so I can use only one kind of object with this workaround:

    The 8 "key" elements are only chars anyway so they don't need to be different data...
  3. Replies
    7
    Views
    1,107

    FULL PROBLEM: -chars are read from a file...

    FULL PROBLEM:

    -chars are read from a file "atext.txt"

    -an initial key value is set (this defines the first sub-key of many depending on how large the text file is)

    -this key defines a trig...
  4. Replies
    15
    Views
    1,685

    I don't care what anyone says, C/C++ created...

    I don't care what anyone says,

    C/C++ created the WORLD!!!
  5. Replies
    15
    Views
    1,685

    >was wondering if I would need to learn C++? ...

    >was wondering if I would need to learn C++?

    uh let's say yes for that one!
  6. Replies
    7
    Views
    1,107

    would it be bad to use an array and also an...

    would it be bad to use an array and also an inheritance scheme on the data types so it could handle the two different types (there won't be more than two different types)?
  7. Replies
    7
    Views
    1,107

    Array w/trig function passing through

    As an example I have an array w/dimensions 8X8

    The elements of this array contain objects with a char value and a hash-key value except for 8 of these 64 elements.

    I want these 8 elements to...
  8. Replies
    1
    Views
    1,511

    Boost for MinGW?

    I know a lot of people here are using boost and often refer to it in their answers to posts. I do the bulk of my work on my windows xp laptop w/dev c++. I'm interested in using boost but I can't...
  9. Replies
    3
    Views
    1,001

    ok, i guess it's pretty inefficient to create...

    ok, i guess it's pretty inefficient to create another object just to limit the values so uhh nevermind.
  10. Replies
    4
    Views
    2,459

    are you trying to use your project files (.dev)...

    are you trying to use your project files (.dev) files in MSVS?

    That might give you that error.
  11. Listen to Salem, see what he's done for you? ...

    Listen to Salem, see what he's done for you?

    He's basically starting a process that you would benefit greatly from....

    PSEUDO-CODE!!!

    (if you can't develop the pseudo-code for this simple a...
  12. Replies
    3
    Views
    1,001

    liniting values of a custom coordinate

    I'm trying to create a coordinate system for a half-sphere object.

    The values need to range (in degrees) from -90 to positive 90 both horizontally and vertically.

    Creating this coordinate...
  13. #include #include...

    #include<stdio.h>
    #include<stdilb.h>
    #include<time.h>

    are those the headers your teacher has asked you to use? kinda fishy...

    also:


    // we prefer:
  14. Replies
    4
    Views
    2,459

    I'm no expert on the subject, but perhaps your...

    I'm no expert on the subject, but perhaps your PATH variable is having a conflict?
  15. Replies
    20
    Views
    2,562

    How about this? class MyClass{ public: ...

    How about this?


    class MyClass{

    public:

    MyClass& operator=(const MyClass& rhs){

    MyClass* temp = new MyClass(*rhs.m_ptr);
  16. Replies
    20
    Views
    2,562

    I want to know how to write the deep copy (what...

    I want to know how to write the deep copy (what is being pointed to)

    If I think back to my template linked list class, the value in each node was copied using this method:



    for(Iterator i =...
  17. Replies
    20
    Views
    2,562

    I'm guessing that this whole copying business...

    I'm guessing that this whole copying business really only applies to pointers right?

    For my example I'll assume that the copying is only one to one (no arrays or linked-lists)

    Does that mean...
  18. Replies
    20
    Views
    2,562

    thank you laserlight, but then how DO you write...

    thank you laserlight, but then how DO you write them to get the DEEP copies?
  19. Replies
    20
    Views
    2,562

    Help me understand copying better

    I understand the difference between the copy ctor & the assignment operator and when each is used


    SomeObject object2(object1); // This calls the copy ctor

    SomeObject object2 = object1; //...
  20. Replies
    11
    Views
    1,193

    A deck of cards contains 52 cards (4 suits, each...

    A deck of cards contains 52 cards (4 suits, each w/13 different values).

    Write a menu-driven program that can:

    1. Shuffle the deck of cards.
    2. Deal out any number of equal amounts of cards to...
  21. Replies
    9
    Views
    1,418

    worked like a charm! thanx!

    worked like a charm! thanx!
  22. Replies
    9
    Views
    1,418

    I'm having trouble w/writing the definition of...

    I'm having trouble w/writing the definition of functions that return an Iter



    template <typename T> Iter
    List<T>::insert()

    /* etc */
    }
  23. Replies
    9
    Views
    1,418

    si, muchos gracias (my spanish is about as...

    si, muchos gracias

    (my spanish is about as good as my french!)
  24. Replies
    9
    Views
    1,418

    Nevermind, I got it straightened out.

    Nevermind, I got it straightened out.
  25. Replies
    9
    Views
    1,418

    Is that make iterator a friend class of list?

    Is that make iterator a friend class of list?
Results 1 to 25 of 127
Page 1 of 6 1 2 3 4