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...
Type: Posts; User: Lincoln_Poh
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...
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..
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...
Nono, cpjust, my main problem is to ask, what's the difference between:
public: ~class()
and
~class()
Is the following code allowed:
public: ~Class()
{
blahblah
}
Oh my, I understand now! Thanks guys
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...
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...
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
I have two different codes here:
1)
#include <iostream>
using namespace std;
short Test; //This is the global variable
void...
OMG! After reading slowly and absorbing what Daved replied, Im really surprised I understand it! THANKS DAVED! You're the best
Oh my fishing god! My compiler worked after I had reinstalled it! THANKS ALL! Im all hype right now :D I love you guys ^^
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...
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...
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...
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...
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...