Search:

Type: Posts; User: cs_student

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. I'm sorry, I did not word my sentence correctly. ...

    I'm sorry, I did not word my sentence correctly. I deleted all files that were no relevant to the problem. I was able to delete all the other files and get the same error with just he files I...
  2. linker error (maybe to do with inheriting)

    I am getting the linker error


    /var/tmp//ccyucL5u.o(.text+0x8d): In function `jp::SplashState::SplashState(std::string, int*, std::string)':
    : undefined reference to `jp::State::~State()'...
  3. Replies
    2
    Views
    851

    After the conditional to check for the 'm' char,...

    After the conditional to check for the 'm' char, you re-declare the "answer" variable.
  4. Did you put #include at the...

    Did you put


    #include <iostream>

    at the top of your source file? (it might not be in your path)


    Also, remember that cout and cin are in namespace std.
  5. Replies
    42
    Views
    4,837

    In the case of Object obj1; Object obj2;...

    In the case of



    Object obj1;
    Object obj2;
    obj1 = obj2;


    The object is copied.
  6. Replies
    4
    Views
    1,391

    Create a singly linked list class which handles...

    Create a singly linked list class which handles the nodes for you.

    Try implementing something along the lines of



    class SList
    {
    private:
    Node* head;
  7. Replies
    4
    Views
    1,391

    You could do it via the bubble sort algorthm. ...

    You could do it via the bubble sort algorthm. Just create an iterator which iterates through your linked list for you and have a swap method that swaps the two nodes depending on a conditional which...
  8. Replies
    2
    Views
    3,640

    Check out the floor...

    Check out the floor and ceil methods.

    Regards,


    cs_student
  9. Replies
    7
    Views
    2,283

    You should be using the preprocessor to ensure...

    You should be using the preprocessor to ensure that nothing gets included more than once.


    ie



    #ifndef HOME_HPP
    #define HOME_HPP
    #include "Home.hpp"
  10. Thread: while loop

    by cs_student
    Replies
    9
    Views
    1,549

    You really need to format your code as it would...

    You really need to format your code as it would make it easier for you to figure out the problem.

    What is it currently doing, and what do you expect as an output?

    If you expect to show each...
  11. Replies
    6
    Views
    1,638

    A char can easily be casted into an int. You can...

    A char can easily be casted into an int. You can use this to find the corresponding Morse code without having a separate array.

    In ascii the character 'A' is represented by 65. Thus if the Morse...
  12. Can you not simply reverse the loop? reset the...

    Can you not simply reverse the loop?

    reset the values of min and max
    Create another while loop


    while ( min >= 0) { ... }

    Then work your way down
    Something like
  13. Replies
    25
    Views
    5,624

    Virginia (the state government that is) has set...

    Virginia (the state government that is) has set up some sort of agreement between the public universities and community colleges. I can take my first two years at a local community college and they...
  14. Replies
    25
    Views
    5,624

    College degree

    Since I was nine I have always known that I was going to go to college. Until I got a computer my freshman year in high school, I wanted to be an astronomer. Since then I have wanted to be a...
  15. Replies
    1
    Views
    1,346

    So far I've drawn up a detailed document which...

    So far I've drawn up a detailed document which consists of core features which are a necessity to the project, then secondary features which would enhance the project.

    I've also explored...
  16. Replies
    1
    Views
    1,346

    Project planning

    I'm a self-taught programmer (start my CS degree when I go to uni next year). So far I've only completed small games such as pong, snake, etc. I've also created small gui programs which allow the...
  17. I'm rather positive that glut works on Linux,...

    I'm rather positive that glut works on Linux, Mac, and Windows (maybe others, IDK).

    @OP
    To compile via command line without make just use


    g++ -o myprogram mysource.cpp -lSDL


    However, I...
  18. Nope, it's a C graphics API, so you can use it...

    Nope, it's a C graphics API, so you can use it with C or C++.
  19. There is a pretty good guide for setting up and...

    There is a pretty good guide for setting up and creating a simple test program at lazyfoo.net.

    Just skip the part about downloading and installing the rpm since you have already installed the deb....
  20. Replies
    6
    Views
    10,175

    I've been trying since yesterday. The page still...

    I've been trying since yesterday. The page still doesn't load for me. I think the server is down.
    Do you have an alternate link?

    Thanks,

    Joseph
  21. Replies
    6
    Views
    10,175

    Implementing IRC protocol

    I want to create an IRC client. However, I'm not sure as to how I to go about implementing the protocol.

    After I create a socket that is connected to the server, how do I know what to listen for...
  22. Replies
    1
    Views
    1,554

    Remote Function Calls

    I want to create a simple IRC client. After reading online, I have learned they use something called "Remote Function Calls." However, I'm having a hard time understanding how to implement them. ...
  23. Replies
    3
    Views
    10,273

    You may want to try video tutorials rock.com...

    You may want to try video tutorials rock.com for tutorials as the formerly suggested ones at nehe are getting to be even more outdated (GLUT itself is old) and do not meet my standards.

    You can...
  24. Thread: C++ helpp

    by cs_student
    Replies
    6
    Views
    1,398

    I think you mean you want to call two methods at...

    I think you mean you want to call two methods at the same time. This is impossible on single core processors. Your operating system tricks you into thinking that it performs many tasks at once.
    ...
  25. How can I make dynamic_array simply point to the...

    How can I make dynamic_array simply point to the data that temp_array points to?
Results 1 to 25 of 40
Page 1 of 2 1 2