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; rectangle is a class I made on my own. During a function I want...
Nov 30, 2009 at 10:09pm
[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 compile the following codes string var1= "sam"; string var2 = ...
Nov 30, 2009 at 9:08pm
[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 source? I've been looking up on this online and it seems to...
Nov 30, 2009 at 7:00pm
[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 know I need a loop counter? But how does my calculation look...
Nov 30, 2009 at 6:12pm
[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 about these subjects, for now) ... and I have a problem ^^. I w...
Nov 30, 2009 at 4:02pm
[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 functions. 1) Memory Management : i want to know, how to delet...
Nov 30, 2009 at 3:53pm
[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,Dynamic arrays,pointer arithmetic sorting file I/O)
Nov 30, 2009 at 2:18pm
[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 this issue. My output consists of 4 columns with the last t...
Nov 30, 2009 at 2:12pm
[no replies]
Call by ref or value
In the following code, For qpushbutton p ,im calling by reference or by calling value, //in class declaration: QPushButton *adminMenuButton; masterMenu...
Nov 30, 2009 at 1:06pm
[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 trying to create a payroll program for my coursework but im h...
Nov 30, 2009 at 1:02pm
[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 its place. The new value has to be a string. I have some ...
Nov 30, 2009 at 4:50am
[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 expressions; parses it to validate the expression and then ca...
Nov 30, 2009 at 3:47am
[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 to be deduced. //default values in functions #include ...
Nov 30, 2009 at 3:37am
[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 trying to create a 2d array, one column stores, a word(string) ...
Nov 30, 2009 at 2:09am
[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 user enter 10 values into an array. The program should then ...
Nov 30, 2009 at 2:00am
[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 it.. briefly my code looks like this: stringstream...
Nov 29, 2009 at 11:53pm
[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 it keeps giving me errors. Please help!! int names() {...
Nov 29, 2009 at 9:17pm
[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 compiling. Someone could help solve? Thanks, I define the main ...
Nov 29, 2009 at 7:38pm
[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 cant get memo1 to show all the numbers in one row without delet...
Nov 29, 2009 at 5:09pm
[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)(c -'A')
Nov 29, 2009 at 3:35pm
[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.
Registered users can post in this forum.