Beginners (Page 57)

by a1tn
Accessing member variables which are classes
 
Hello, world. I have a question about accessing member variables which are C++ structs that contain...
[6 replies] Last: I guess that is where I misinterpreted, it said that if the variable i... (by a1tn)
by parri
newb questions
 
Hi everyone I am new to the forum and completely new to programming. i started to learn C++ to...
[3 replies] Last: thank you for the quick replies! @wildblue the book is "Teach Yourse... (by parri)
Need help with classes
 
Hi, I don't know how to properly access different classes within the program. Can someone look at m...
[1 reply] : double Hourly::getHours(){ return hours; } void Hourly::setHours(do... (by pals123)
help!!!
 
the program runs without errors but after entering string n choice dere is no output and do u want t...
[5 replies] Last: Oh, I saw the conio header and thought it was Windows, but I never use... (by BHX)
global operator <<
 
Hi If you had to replace the following member function with a (global) operator <<, how would you...
[1 reply] : The operator << has an arity of two: stm << object ; So we need to... (by JLBorges)
Is the following solution correct?
 
Hello, I'm learning C++ from the book "C++ Primer", 5th edition. In chapter 4, exercise asks t...
[no replies]
by mehak
Class
 
according to me the output of the following program should be 2 and 4 but its not,y? #include<iost...
[2 replies] Last: Why are Bix::main and Bix::show creating private instances of Bix name... (by AbstractionAnon)
sorting
 
Hi I have two vectors. One for names and the other for ages. I want to create a new vector to sto...
[10 replies] Last: > error: 'class std::multiset<std::pair<std::basic_string<char>, doubl... (by JLBorges)
by mehak
type checking
 
what is static and dynamic type checking and how does C++ accomplishes that?
[1 reply] : You are spewing many questions of similar nature. Start from some int... (by keskiverto)
Problem with iterators
 
Hi, I wrote a simple program to test equality between 2 containers, but it's not working and I can't...
[13 replies] Last: Ok I finally got it working, I think sleeping helps clarifying all tha... (by Geranimo)
by mehak
constructors
 
From inside the constructors and destructors,a virtual call is resolved at the time of compilation.I...
[1 reply] : I came across this statement however couldnt understand. Probably bec... (by Avilius)
by ugonna
block characters and loop program
 
hello guys, i am having some problems with my code (i am an absolute beginner by the way). i am crea...
[no replies]
by mehak
ad-hoc polymorphism
 
what is ad-hoc polymorphism?
[no replies]
by mehak
class pointers
 
why derived class pointers cannot point to base class and why is the vice versa correct?
[2 replies] Last: Hi, One can declare a function that takes a pointer to a base class, ... (by TheIdeasMan)
by mehak
friend function
 
why is it neccessary to define the friend functions outside the class?
[1 reply] : It's not. #include <iostream> class Class { public: Class(int valu... (by Peter87)
hide cin
 
hi how can I hide my cin in console mode, like password?
[4 replies] Last: see: http://www.cplusplus.com/forum/beginner/43683/ (by JLBorges)
Does bit shift operator changes the operands?
 
I am a little confused by bit shift like ">>" or "<<". See following commands: int a = 16; in...
[5 replies] Last: I hadn't thought of that. I recently discovered that boost::path appe... (by kbw)
HELP! I need help understanding this error message
 
My code is supposed to take in a string and return how many words are in the line. The code compile...
[1 reply] : Problem is line 43: i <= s.length() After you fix that, the next ... (by Smac89)
function pass by parameter
 
int exp_adder( int exp ) { if ( win ) { experience += 20; if( experi...
[8 replies] Last: okay i learn some techniques about using or making global . If you a... (by Lorence30)
Program-Defined Value Returning Function - 3 Test Scores Averaged
 
This may seem redundant, as I know I have seen at least one thread on this exact topic, but it seeme...
[2 replies] Last: Well, as I figured, it was something really simple. And I appreciate y... (by Acidbassist)
Pages: 1... 5556575859... 68
  Archived months: [jul2014]

Cannot post in this page. To post a new message, go to the first page.