Beginners - November 2009

Adding last element of one list to the end of another
 
I have 2 global list variables declared like so: list<Rectangle> pegA; list<Rectanlge> pegB; rect...
[6 replies] Last: Ah I see. That fixed it. Thanks alot. =] (by Melchoire)
string iteration
 
trying to iterate a string, and attach each char to other string variables, having problem to compil...
[4 replies] Last: thanks. it seems work. (by chrisben)
by seand
Factory Building?
 
Hi all, I'm having such a hard time grasping onto Factory. Can anyone help me or point me to a good...
[3 replies] Last: Both the provided wiki links provide some pretty concise sample code, ... (by jRaskell)
Finding average of integers from a text file?
 
I have a integers.txt file and I want to read it in and then find the average of all the numbers. I ...
[3 replies] Last: What else would you need to keep track of if you want an average? (by Zhuge)
struct + dynamic memory allocation + free ()
 
Hi, I'm studying the basis of C, C++ and Assembly languages at my university (I have two exams abou...
[5 replies] Last: Solved, thanks ... it was so obvious but I couldn't see it ... thanks! (by gianx80)
Global function
 
hi, im absolute beginner to c++. i got some doubts in MEMORY MANAGEMENT, and GLOBAL SHARING of funct...
[5 replies] Last: That looks ok. I can't see what the problem is? You may want to ma... (by kbw)
Question
 
example of a books catalogue program in C by using file I/O with(structures,enumerations,unions,Dy...
[4 replies] Last: This is probably more than you expect, but you asked for it. mcatal... (by kbw)
format output
 
I understand this to be an age old question but I have tried all the iomanip manipulators to correct...
[no replies]
Call by ref or value
 
In the following code, For qpushbutton p ,im calling by reference or by calling value, //in ...
[1 reply] : You are calling by value , and your call is correct. The createmaste... (by Duthomhas)
Problems with the cstring/gets_s commands
 
hi i have recently started my HND at college and have begun to learn C++ programming iam currently t...
[no replies]
Editing a vector element
 
I need to make a function that can choose a single vector element erase it and insert a new value in...
[3 replies] Last: Instead of erasing and inserting, you can update the element directly.... (by tene)
Calculator parser
 
I have just started C++ programming and was required to write a program that accepts as input math e...
[16 replies] Last: I managed to code thus far the tokenizer which breaks the if statement... (by cengineer)
by ztein
could not deduce template argument for
 
Upon compilation VC++08 Express launches a ton of errors about some kind of templates not being able...
[3 replies] Last: You are correct, but you are comparing "q" to an std::string, not a ch... (by firedraco)
2d string and int array
 
Hi, I just started an assignment, and of course, new to c++, please forgive my ignorance. I'm try...
[5 replies] Last: Hay Bazzy, that makes perfect sense.. thanks! and thanks Mike for the... (by keewong)
min & max of an array
 
Hello everyone. I have this pretty simple program. I have to write a C++ program that will let the ...
[6 replies] Last: yes! It works! #include <iostream> using namespace std; int main... (by Joliedoll)
stringstream usage
 
hey guys im having some problem with using the stringstream. Emtpying it or not i just can't reuse ...
[2 replies] Last: Hi!, I had the same problem. I think I figured out what happens. In o... (by rocarvaj)
Functions and returning values
 
Is it possible to return something like a person's name from a function. This is the code I have but...
[3 replies] Last: @Warnis ... How is that in anyway helpful? Especially after Disch ga... (by mcleano)
by ycai77
a problem about compiling a class
 
Hi, I am new to C++. I write a simple program involving class. A compiling error occurs while compil...
[2 replies] Last: Thanks a lot, it works. ===========================================... (by ycai77)
by aca
Memo problem...
 
Hi I'm new here and i need help... I got for my school project to make Calculator in c++. But i can...
[2 replies] Last: Thats all the coding... i'm sure that i'm wrong somewhere... Memo1->T... (by aca)
by liraz
ascii code
 
if c is a capital letter and c is from type char what is the meaning of this expression? (int)...
[5 replies] Last: It gives the offset from A. So if c = A, the value is 0, 1 for B, 2 fo... (by kbw)
November 2009 Pages: 123... 25
  Archived months: [oct2009] [dec2009]

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