Search:

Type: Posts; User: Swerve

Page 1 of 7 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    2
    Views
    1,254

    Finding the size of multiple lists.

    Hi,

    I am writing a Windows Form program, and currently it has 3 Lists. I need to loop through all three, and use each possible combination, so am using three nested for loops.

    I found that if...
  2. Replies
    3
    Views
    5,175

    Thanks laserlight, I've never heard of this...

    Thanks laserlight, I've never heard of this before, and it seems to fit what I'm trying to do exactly.

    Appreciated, as was the help with my last thread. I have not replied to that thread as I...
  3. Replies
    3
    Views
    5,175

    Inheritance and pure virtual functions

    Hi all,

    Looking for some direction on how to implement my class functions.

    I drew a class diagram to show my inheritance structure:

    http://i42.tinypic.com/2qjdttd.jpg

    I'm trying to use an...
  4. Replies
    8
    Views
    1,562

    Thanks laserlight! I'm going to spend some...

    Thanks laserlight!

    I'm going to spend some time going though it so I understand it properly.

    Thanks for helping me out :)
  5. Replies
    8
    Views
    1,562

    binary_search() advice

    Hi,

    I have a string and I'm trying to replaces unwanted characters with a space character.

    So if have the string "A string of TEXT!" and I replace the chars "sT" I end up with "A tring of EX...
  6. Replies
    9
    Views
    1,943

    I got it working in the end. Thanks to...

    I got it working in the end.

    Thanks to everyone who helped out.

    this was more about the separation of the files more than anything else.

    It is a nice template for me to use now in the future.
  7. Replies
    9
    Views
    1,943

    Everyone thanks so much for your help. I have...

    Everyone thanks so much for your help.

    I have tried everything and am getting a problem with some kind of unresovled external.
  8. Replies
    9
    Views
    1,943

    Hey hk_mp5kpdw thanks so much! I've followed...

    Hey hk_mp5kpdw thanks so much!

    I've followed your instructions as best I can, and it is indeed compiling further now.

    here is my code right now:



    main.cpp :
  9. Replies
    9
    Views
    1,943

    Returning pointers from functions problem.

    Hi,

    I have been wrestling with this program all day and am looking for some help.

    I have never separated a program up before into separate files (main.cpp, base.h and base.cpp).

    What I'm...
  10. Replies
    1
    Views
    5,362

    Trying to include a libary in Visual Studio

    Hi there,

    I'm trying to use cURL in a C++ app, but being new to using libraries, I've having trouble in setting up my program.

    I've spent some time following the guides in Google, but they all...
  11. Replies
    2
    Views
    1,590

    Need recomendations for a UML tool.

    Hi,

    I'm starting to learn UML and at school we are using Rational Rose Enterprise edition.

    This is not exactly within my budget.

    I've searched and found quite a few, but ended up suffering...
  12. Replies
    4
    Views
    2,006

    Functions which create objects.

    Hi,

    I am trying to do the following:

    1) Call a function
    2) Ask the user for the datamember values
    3) Create the object
    4) Return to main() a pointer to the object
    5) Push that pointer into...
  13. Replies
    2
    Views
    1,910

    Seperating interface and implementation

    Hi,

    I am hoping for some general advice on how to create a user interface, by use of a processor class.

    The program I am creating uses inheritance.

    I am creating the following...
  14. Replies
    5
    Views
    1,400

    Bubba, Daved and iMalc thanks soo much for your...

    Bubba, Daved and iMalc thanks soo much for your help! :)

    I've played and changed stuff here and there, and this is the result:

    I'm asking the user for the node to delete, based on a...
  15. Replies
    5
    Views
    1,400

    OK, I decided to start the program from the...

    OK, I decided to start the program from the beginning again.

    Using:



    List<Base *>listname;


    I am trying to delete a specific node from the list. Here is the case inwhich it happens:
  16. Replies
    5
    Views
    1,400

    Converting a program. From Vector to List

    Hi,


    I have a program, which uses a vector to store some pointers.

    The program works fine.

    I'm trying to convert it to use a doubly linked list now though.

    At the top of the program I...
  17. Replies
    3
    Views
    3,871

    Thanks for helping iMalc, but I'm still having...

    Thanks for helping iMalc, but I'm still having problems.

    Did I make a mistake with what you suggested?

    main.cpp:


    #include <iostream>
    #include "node.h"
    #include "doublylinkedlist.h"
  18. Replies
    3
    Views
    3,871

    *SOLVED* Doubly linked list compile error

    *SOLVED*

    Hi there,

    I'm trying to construct my first Doubly Linked List, but am having trouble compiling.

    This is my program:

    main.cpp :
  19. Replies
    6
    Views
    1,150

    Is it not necessary to always return 0 when...

    Is it not necessary to always return 0 when main() is of type int?

    I thought it was always good to return 0 to signify that main() had executed successfully.
  20. Replies
    2
    Views
    1,268

    Thanks brewbuck! I seem to have it working...

    Thanks brewbuck!

    I seem to have it working now, this is what I did:

    Header file (the class interface) 'Base.h' :



    class Base
    {
  21. Replies
    2
    Views
    1,268

    Organisting code files basics.

    Hi there,

    Up until now I've only ever used a main.cpp file and a class.h header file, but am trying to improve my separating of class interface and implementation.

    I have the following problem...
  22. Replies
    5
    Views
    1,554

    Thanks laserlight! Great tips! :)

    Thanks laserlight!

    Great tips!

    :)
  23. Replies
    5
    Views
    1,554

    Ahh Ok. bool operator==(const Base&...

    Ahh Ok.



    bool operator==(const Base& leftparameter, const Base& rightparameter)
    {
    if(leftparameter.getNo() == rightparameter.getNo())
    {
    return true;
    }
  24. Replies
    5
    Views
    1,554

    Basic operator overloading question

    Hi there,

    I'm just starting to try out Operator Overloading and wrote a basic definition for the equality operator ==.

    base.h :


    class Base
    {
    public:
  25. Replies
    3
    Views
    1,842

    Hey thanks bithub! reading up on this, it...

    Hey thanks bithub!

    reading up on this, it converts the string to a c-style string, hence the error of "to 'const char *' "

    Great to learn this.

    Thanks buddy :)
Results 1 to 25 of 152
Page 1 of 7 1 2 3 4