Beginners - June 2014 (Page 22)

by yepMe
Doubt in default constructor
 
Hi everybody, I have started studying thinking in c++ , in the chapter "Initialization and cleanu...
[4 replies] Last: It is good especially for larger objects, which are going to be initia... (by TwilightSpectre)
How can I use this C++ code with vector?
 
I am having hexconvert function which takes hexadecimal string as input and converts it into the byt...
[5 replies] Last: Almost exactly the same as you have there. After all, vector was desig... (by TwilightSpectre)
by gingy
Primary Expression Error When Passing An Array Through Parameters To Another Function
 
I'm making a proof of concept program for what will basically be a base model for shops in a game I ...
[2 replies] Last: This resolved the issue. Thanks for the advice, I greatly appreciate i... (by gingy)
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
templates
 
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)
June 2014 Pages: 1... 2021222324... 48
  Archived months: [may2014] [jul2014]

This is an archived page. To post a new message, go to the current page.