Search:

Type: Posts; User: lord

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: 2d grid

    by lord
    Replies
    4
    Views
    2,381

    Do you know the name of it? or do you have the...

    Do you know the name of it? or do you have the link? I could not find anything....
  2. Thread: 2d grid

    by lord
    Replies
    4
    Views
    2,381

    2d grid

    I'm new to using GUI's/graphics in C++ but it's come time to learn. I was wondering if anyone knew where I could use an open source 2d grid that would allow me to lite-up certain cells of the grid. ...
  3. Replies
    4
    Views
    1,094

    error was found finally in this statement: ...

    error was found finally in this statement:


    cout<<"0x "<<hexadecimal[1]<<" "<<hexadecimal[0]<<cout<<"\t";
  4. Replies
    4
    Views
    1,094

    CODE: http://pastebin.com/d425b7541 I've...

    CODE: http://pastebin.com/d425b7541

    I've uploaded all my code and commented on the lines where garbage is coming out.

    It didn't seem to help when added + '0' to the switch statement. Maybe if...
  5. Replies
    4
    Views
    1,094

    couting unwanted garbage

    I'm not sure why but both my functions are couting garbage on certain elements for only a temporary period of time. I can't figure it out. Is it the way I am initializing the vectors? It is happening...
  6. Thread: istream question

    by lord
    Replies
    8
    Views
    1,256

    I think I know what the problem is... Daved....

    I think I know what the problem is...

    Daved. in the called function I was reading into input >> data the last character of the file... when it returned to main I input >> data again....


    ...
  7. Thread: istream question

    by lord
    Replies
    8
    Views
    1,256

    It is outputting the x... you can explain the...

    It is outputting the x... you can explain the problem a little more?
  8. Thread: istream question

    by lord
    Replies
    8
    Views
    1,256

    I am doing something funny, then -- I don't see...

    I am doing something funny, then -- I don't see it, though:




    void readInput(istream& input, char data)
    .
    .
    .
    int main
  9. Thread: istream question

    by lord
    Replies
    8
    Views
    1,256

    istream question

    How do I pass an istream to a function so that when the function is finished the input is at the last character read? I have tried passing by reference...


    void readInput(istream& input)
    {
    ....
  10. Replies
    1
    Views
    2,434

    adjacency list question

    For a current project I am creating I decided the best way to implement the code would be through an adjacency list. I am just simply confused on what the structs would look like and how to create...
  11. Replies
    7
    Views
    13,046

    perfect... thanks for that

    perfect... thanks for that
  12. Replies
    7
    Views
    13,046

    I don't know what the values of the keys are....

    I don't know what the values of the keys are. They can be random characters.
  13. Replies
    7
    Views
    13,046

    That's what I am trying to do. But I can't figure...

    That's what I am trying to do. But I can't figure out how to iterate through the maps keys without going through its values. For example,


    keys: values:
    a 1 2 3
    b 4 5 ...
  14. Replies
    7
    Views
    13,046

    iterate through keys of map

    Is there anyway to iterate through the keys of a map without having to go through each of the keys values first?

    Or is there a way to jump to the next key?
  15. Replies
    15
    Views
    2,051

    Thanks tabstop! ... why was I not doing that in...

    Thanks tabstop! ... why was I not doing that in the first place?
  16. Replies
    15
    Views
    2,051

    I see what your saying (I think)... For example,...

    I see what your saying (I think)... For example, class one has a function called a() that creates the first linked list, I just create an object from class two (call it e) and call e.a() .... then...
  17. Replies
    15
    Views
    2,051

    The linked lists have different designs. But are...

    The linked lists have different designs. But are you saying move current from class one into class two? Then the functions from class one do not have access to it...
  18. Replies
    15
    Views
    2,051

    The second class builds a linked list that...

    The second class builds a linked list that depends on how the first class created its own linked list. I do not want the second class to view it as NULL...
  19. Replies
    15
    Views
    2,051

    How can I allow class two to share current with...

    How can I allow class two to share current with class one?
  20. Replies
    15
    Views
    2,051

    So what I am trying to do is not only have access...

    So what I am trying to do is not only have access to the protected stuff in class one but have all the values remain intact when using them from class two.
  21. Replies
    15
    Views
    2,051

    sorry, I fixed it... Do you know what I am trying...

    sorry, I fixed it... Do you know what I am trying to do now? sorry about that
  22. Replies
    15
    Views
    2,051

    tabstop: what I am trying to do is have access to...

    tabstop: what I am trying to do is have access to the node in class one...
  23. Replies
    15
    Views
    2,051

    accessing protected stuff

    This is a general outline of my code. I am wondering why I have trouble accessing the protected members as such. Please let me know if what I have written is not enough info:




    struct node
    {...
  24. Thread: virtual functions

    by lord
    Replies
    9
    Views
    2,542

    Bubba: I have it working with one class it is...

    Bubba: I have it working with one class it is just ugly. I have two find_height() functions -- one for the first tree; the other for the second tree. I also have two top() functions, etc.

    Here is...
  25. Thread: virtual functions

    by lord
    Replies
    9
    Views
    2,542

    In my base class I have a function print() that...

    In my base class I have a function print() that prints the heights of all trees. Print() calls find_height() for my base class and derived classes. But find_height() is a virtual function, so it only...
Results 1 to 25 of 68
Page 1 of 3 1 2 3