General C++ Programming - February 2012 (Page 42)

Help with formatting?
 
I can't seem to make the emp. no. employee counter appear in its proper position.I have been trying ...
[2 replies] Last: Thanks vin! That totally worked. (by znerich)
BinarySearch List
 
Hey, I'm trying to search a List for a substring, but even if it does exist the result is coming ou...
[4 replies] Last: I managed to fix my problem in the end by using a Dictionary and split... (by ahoysailor)
Time comparison between delete and assignment
 
I was wondering how the time taken to free allocated memory compared to an assignment command. In...
[3 replies] Last: Thanks Galik, you're right there is no point setting tempData to zero.... (by The Palm Tree Magician)
by LB
Is this a pointer to a function pointer?
 
I know that void(*)() is a pointer to a function that returns nothing and takes no parameters, but w...
[4 replies] Last: Oh! So this whole time, function prototypes were actually...wow, I nev... (by LB)
Craps Simulator
 
In this program... i am attempting to display odds at 100,1000,10000... the problem that i am having...
[1 reply] : One problem I see, is you are using the variable i, for two different ... (by whitenite1)
I need some enlightenment on const
 
My knowledge of C++ as it pertains to the C++ extension of C is far from pro so I'm always getting t...
[3 replies] Last: Const objects/references can only call const member functions. Declar... (by Disch)
Comparing chars -.-
 
Hi I know this is the simplest thing ever but everything I tried failed surprisingly :/ Basica...
[5 replies] Last: Wow that works codingshark thank you very much, kudos. (by codermonkey)
by RickH
Microsoft and Gnu handling of scope operator
 
Hi all. I'm doing some programming in Qt, but it uses Microsoft's compiler. Microsoft and Gnu seem...
[6 replies] Last: Well, I guess if Comeau says it isn't standard, it isn't standard. ... (by RickH)
Question relating to error C2243
 
What does it mean by this: "Access protection (protected or private) prevented conversion from a ...
[4 replies] Last: And the error was...? (by Zhuge)
by Gldnbr
Maze game movement
 
I'm working on some kind of maze game, I'm not an expert at C++ programming, but with my basic knowl...
[3 replies] Last: Oh yeah that's right the break will only exit the y loop not the x one... (by Muckle ewe)
Calculator help
 
hello, im very beginner at C++ and whit about 1 week studying i managed to make a calculator i go...
[2 replies] Last: thx :3 (by LordJike)
Timing sorting algorithms
 
Hi, I need to time sorting algorithms that I wrote, I wonder if there is better way to go more accur...
[4 replies] Last: Sorry about getting the names wrong. It's been a while since I pulled ... (by roberts)
Member function pointer problem
 
Hi, everybody ! I was learning some new concepts in C++ today and heard about, yet not really un...
[16 replies] Last: Did you really tried to compile it? It compile fine in my VC++ 2008 wi... (by aquaz)
ifstream assistance
 
Hi, I have ten values stored in a text like so: 16 4 18 9 18 0 15 12 0 13 called randomData10.txt ...
[3 replies] Last: No need for value , since you can just extract the value into insert... (by Wazzak)
Disabling scientific notation in streams
 
I looked at the format flags for streams but I can't get them to do what I want. The default behavio...
[1 reply] : It isn't possible to make very small numbers output as decimals and no... (by LB)
pointers reseting
 
I am learning how to use linked lists. When I move from one member function to another the pointers...
[2 replies] Last: I first noticed the problem when I ran this section case 1: a.fillNod... (by plageiusdarth)
Equation (1,2)
 
I have tried to make a program, which simulates a 12 sided dice. This I have accomplished. Now I hav...
[36 replies] Last: As Athar has said there is actually plenty of headroom for calculating... (by mik2718)
outputting array as string
 
Hi, I want to output array elements in a string and store to a text file, but it's outputting weird ...
[1 reply] : You can't append an integer to a string with +=: sortedList+=list ; ... (by abellia)
pleaseeee help me for reading a file
 
i write a program in my program i have a class that name is employee and i have an array of my cl...
[3 replies] Last: Why are you using an XML file? Reading and writing an XML file is not... (by roberts)
by Tatipu
How do I save values from a class? And overload operators?
 
I have this: Class class Rational { public: int fraction(){//default to do 0/1 auto num...
[1 reply] : You don't define default ctor, copy ctor and assignment operator so de... (by eypros)
February 2012 Pages: 1... 40414243
  Archived months: [jan2012] [mar2012]

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