Search:

Type: Posts; User: Lincoln_Poh

Search: Search took 0.01 seconds.

  1. Differences between std::cin.ignore() and std::cin.rdbuf()->in_avail()+1

    can someone tell me the difference between
    std::cin.ignore() and
    std::cin.rdbuf()->in_avail()+1


    I was reading a book and it told me to input
    std::cin.rdbuf()->in_avail()+1

    I figured...
  2. Replies
    13
    Views
    1,629

    Thanks all. I assume the book that told me that a...

    Thanks all. I assume the book that told me that a no keywords, such as public or private, in front of a class cestructor, is false. lol...this is quite some book I have right here..
  3. Replies
    13
    Views
    1,629

    Omg, everyone here explain things until so...

    Omg, everyone here explain things until so profound. Can someone simplify things so its easier for me to at least understand 80% of it >.<?

    My question again is: Does C++ allow us to put...
  4. Replies
    13
    Views
    1,629

    Nono, cpjust, my main problem is to ask, what's...

    Nono, cpjust, my main problem is to ask, what's the difference between:



    public: ~class()

    and


    ~class()
  5. Replies
    13
    Views
    1,629

    Public: ~Class() is allowed?

    Is the following code allowed:



    public: ~Class()
    {
    blahblah
    }
  6. Replies
    6
    Views
    1,412

    Oh my, I understand now! Thanks guys

    Oh my, I understand now! Thanks guys
  7. Replies
    6
    Views
    1,412

    Class + Main() = error cout?

    Can someone help me out with this problem? Basically, I have a "Classes" class inside one of my file. Below is the code:



    //Classes Class.hpp
    #include <iostream>
    #include <string>

    using...
  8. Replies
    3
    Views
    1,450

    Lazer, you didn't really quite answer my question...

    Lazer, you didn't really quite answer my question >.< Thanks for pointing out my identation's problem and for telling me that 1response is disallowed to be a variable.

    Actually, those local...
  9. Replies
    3
    Views
    1,450

    declared extra variable, is it wrong?

    Ive just modified one of my program by adding functions into it. I'll show the code here first:



    #include <iostream>
    #include <string>

    using namespace std;

    //declaring functions
  10. Replies
    3
    Views
    8,152

    global variable and prototype

    I have two different codes here:

    1)
    #include <iostream>

    using namespace std;

    short Test; //This is the global variable

    void...
  11. Replies
    7
    Views
    2,046

    OMG! After reading slowly and absorbing what...

    OMG! After reading slowly and absorbing what Daved replied, Im really surprised I understand it! THANKS DAVED! You're the best
  12. Replies
    6
    Views
    1,302

    Oh my fishing god! My compiler worked after I had...

    Oh my fishing god! My compiler worked after I had reinstalled it! THANKS ALL! Im all hype right now :D I love you guys ^^
  13. Replies
    6
    Views
    1,302

    Actually, not just Codeblocks, I tried it before...

    Actually, not just Codeblocks, I tried it before with Dev-C++. It also give me the same error.

    There was once, where I tried to compile a code in Dev-C++, it failed. It doesnt give any error. It...
  14. Replies
    7
    Views
    2,046

    Holy >.< I don't understand a word you're saying....

    Holy >.< I don't understand a word you're saying. Im not that pro. Im just a noob. I don't really understand those terms so well.

    Basically, the error is that when i build it, it runs and ask me...
  15. Replies
    6
    Views
    1,302

    OMG, so what shall I do? Im currently use...

    OMG, so what shall I do? Im currently use CodeBlock's IDE and the compiler which comes with it. Please recommand me to do something or give me some direction >.<

    I compiled some codes before, so...
  16. Replies
    6
    Views
    1,302

    Unknown Error `ld'

    This pile of codes here has no errors in it when being compiled. However, when I tried to build it, it says:



    -------------- Build: Debug in Funtion2 ---------------

    Linking console...
  17. Replies
    7
    Views
    2,046

    Some bugs which i can't find

    The following lines of codes are supposed to run smoothly without any error. However, after I debug for minutes, I got tired. I don't see any errors in my scripts. Can someone help me out? Its...
Results 1 to 17 of 17