General C++ Programming - February 2010 (Page 7)

inheritance & overload without overriding
 
Hello, I have two classes base and derived, base has a void foo(), derived classes doesn't overri...
[5 replies] Last: I was just curious how you got there. But if it's contrived, that's o... (by kbw)
getline() Trouble...
 
Hi! I'm having problem with getline(). Here's a method in my program: void CarRegister::searchR...
[4 replies] Last: serge: Yes. It's the same even if searchWord is local. I can mak... (by folke89)
using toupper (1,2)
 
it seems easy enough but I am having difficulty using to upper in this program I am writing. I need ...
[21 replies] Last: Previous comments are right. Original code converts just next symbol a... (by serge)
by dmeng
arrays & void functions, reading from a file, error msg
 
I cannot figure out what this error message means: invalid types 'double ' for array subscript. I...
[1 reply] : First, when you post code, please use tags, as described here: http://... (by lloydchristmas759)
Guiding hand request (3D rendering) (1,2)
 
So, A group of buddies and I have been doing butt loads of learning and feel we may be finally up to...
[23 replies] Last: I must say, that was in fact an unexpected bit of advice and probably ... (by ragn4rok234)
how to call a member function with a enum type parameter?
 
Dear all, now i have a class with a enum type variable like below:enum Disc{Red, Yellow};. And a mem...
[2 replies] Last: o~~~thank you very much. :) i find the problem is i deleared a new enu... (by xiaoDinaZhang)
by chee
How to sort structure arrays
 
typedef struct record1{ int n1; string name1; char c1; double d1; } set1; int swap2(int &n1...
[no replies]
generic get object function
 
Hi Guys, Is is possible to create a generic get object function? For ex. in code below, right n...
[12 replies] Last: Thanks so much for the explanation jsmith. (by kevinchkin)
Copy part of an Char Array
 
I have to cut the day month and year out of a date string (mm/dd/yy). I can get the piece of the ar...
[2 replies] Last: or use std:string and its functions :P... no additional boost required... (by Incubbus)
Trouble with reading file
 
So I have three .txt files: data.txt, medium.txt, and hard.txt. Here is my code ifstre...
[2 replies] Last: Sweet so I'm pretty much the stupidest person ever. Guess I just neede... (by mrb9337)
by xyzt
Is adding an element to a list thread-safe?
 
Hi, I have a class that has a std::list member. I have a member function that adds a new element ...
[2 replies] Last: (additional info: no STL container is thread-safe). (by jsmith)
Problem Suggestion (kind of a question)
 
Hello to anyone that reads this, i'm a "Beginning C++ 'programmer'" ,if you could call me that, and ...
[1 reply] : Hi! Here's a link to another topic in this forum: http://www.cplusp... (by folke89)
parallel programs
 
i want if a specific program (i.e. microsoft word) begins my specific program runs. how can i do it...
[5 replies] Last: Of course it is possible . But it is the Wrong Thing to do -- in comp... (by Duthomhas)
error : syntax error: missing ')' before 'const'
 
I have a function prototype void AdjustDL (const vector<vector<int>>& adjMat); and calls t...
[3 replies] Last: When you call the funciton, you don't give the type. // this is ... (by Disch)
Free memory const* char
 
Hello. I have a little problem I can't figure out how to solve. I use the method open() to create...
[4 replies] Last: jRaskell: Wonderful! Thank you! I added strcpy(saveFolder, "Saves/... (by folke89)
Write a class definition without a private section
 
The following is a Class interface implied by client code: Write the class definition, without a ...
[16 replies] Last: You are on the right track now kyle. Couple more pointers... MAX i... (by jRaskell)
How to write Cross Platform Application using C++
 
Dear Sir, We need to develope an application which should be platform independent or cross platfo...
[6 replies] Last: C++ itself for the most part is platform agnostic, it just needs to be... (by closed account 1yR4jE8b)
with vector, how to make a function that returns the container number
 
I have a vector, say, DL. And i have a function int ChooseVertex(const vector<int>& DL){ ...
[7 replies] Last: thank you guys. You are awesome! (by jasonSung)
Function doesn't work properly [SOLVED]
 
I have a program (below), and I know the function doesnt work, as 365 should return 24... INTENDED ...
[3 replies] Last: i didnt realise them being integers meant that you couldnt make a floa... (by fakeacc)
how to create a 2D vector no entry
 
I would like to read a text file and fill it into a 2D vector but the size is unknown. If i know...
[6 replies] Last: i am not getting , so what should we use .. only vector or list . (by bluecoder)
February 2010 Pages: 1... 56789... 21
  Archived months: [jan2010] [mar2010]

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