Beginners (Page 57)

by h4ever
how to get length of string in vector?
I cannot find out how to get lengh of the string which is referred by (*it). sizeof((*it)) or length...
[4 replies] Last: Now it works, int length = (*it).length(); I already tried before bu... (by h4ever)
by mehak
reference issues
We cannot apply arithmetic operations on a reference then how cum the follow code runs without error...
[2 replies] Last: @mehak this is what you are doing: #include <iostream> using namespa... (by Atyab)
C++ Program That Reverses A Word/Sentence
Write your question here. Hello everyone i was tasked to write a program that takes a word/sentence...
[3 replies] Last: string reverseWords(string str) { int posStart=0,posEnd=0; v... (by closed account j3Rz8vqX)
Programming Systems - QT or Vis Stu 2013 Exp
Hi, Firstly, thanks for any and all help given in advance. I have written our back office syst...
[1 reply] : why do I need to buy a different one? It's just personal preference.... (by mutexe)
Guitar fretboard program
I have been trying to learn c++ for a few months now and all i have been really doing is reading and...
[3 replies] Last: Problem solving and finding algorithms that work comes with experience... (by xismn)
Help with classes
I am getting a long error when I try and compile my multiset.cpp file. Something about the vector I ...
[5 replies] Last: You need to #include <string> in Item.h , although I don't know if ... (by cire)
by mehak
static member functions,this pointer
this pointer is created whenever a member function is called.When a member function is called t...
[3 replies] Last: i jus wanted to confirm if its correct (by mehak)
by h4ever
iterator and for loop
Can you help with this? I am having loop where I am parsing argument. My problem is that I don't kno...
[6 replies] Last: Ok, thanks. (by h4ever)
by mehak
increment operator
initially a=0, ++a increments a to 1 and --a decrements it to 0 so x will be equal to zero..accor...
[1 reply] : Lines 6 and 7 are undefined, the output is arbitrary. There's a summa... (by Cubbi)
input format error
hi,i need to handle the input error. my code is like this: string name; int age; cin >> name; ci...
[2 replies] Last: any more suggestions? (by simpsons)
by akif13
Dynamic Array
Hi. Why I can't get the sum and average of entered marks? #include <iostream> using namespace...
[3 replies] Last: Thanks (by akif13)
Constructor Error
Hello, I am getting a ISO C++ forbids declaration of Multiset() with no type [-fpermissive] wheneve...
[1 reply] : class Multi s et{ Multi S et(); ... (by helios)
by mehak
are templates memory efficient and why?
[1 reply] : It depends on the particular templated thing. (by helios)
How do I...
Im working on a calculator and im having some issues. Im asking the users to enter an operation (cnu...
[10 replies] Last: Programming Principles and Practice Using C++ by Bjarne Stroustrup c... (by admkrk)
Understanding header files and .cpp files
Hi All, I am literally just beginning learning C++, following a beginners 21 day tutorial... so h...
[11 replies] Last: Thank you Chervil... will have a look at both of them... :) (by Paddedcell)
Private Member Functions
Hello, I need some help understanding this "Often, however, a class needs functions for internal...
[2 replies] Last: Thank you very much ! :D (by NookLines)
What to work on next?
I am getting to the point with C++ where I can write some usable code and read most code without to ...
[6 replies] Last: There is not a simple answer to that question. Basically it covers all... (by admkrk)
by Sgreen
How to show debugging statements?
Hello, I am studying a section of the book that briefly describes debugging. It does not explain how...
[4 replies] Last: the value of the loop control variable at the start of each ... (by Sgreen)
Function call
This program is designed to help students practice addition and subtraction. It works the first tim...
[8 replies] Last: That is an excellent point. Thank you for the advice. (by jynx678)
What will be result/errors in code - practice Pointers
Ok, i have some samples and i need help. The question is what will appear on the screen after runnin...
[3 replies] Last: I'm not going to tell you to Google, I reserve that for concepts that ... (by Computergeek01)
Pages: 1... 5556575859... 83
  Archived months: [may2014]

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