General C++ Programming - February 2011 (Page 13)

what are the ways to test for memory leaks?
 
as above? how do I find out if my program leaks memory?
[2 replies] Last: Run it under valgrind, which will tell you upon ending how many bytes ... (by Moschops)
Manual Vector::clear() problem
 
Clear - removes all elements in vector. I know that I can #include <vector>, but this assignment has us create the class manually. I am having some problems ...
[1 reply] : Post the vector class (declaration). (by hamsterman)
by njapra
Find Maxima from Text File
 
Hello everyone, my objective is to find the maximum number from a text file containing 1000 numbers, however I have not been able to do so. Any help would be ap...
[2 replies] Last: John2, Thank you for pointing out this small but 6 hour long problem.... (by njapra)
Vector UML
 
Here is the question: (Implementing vector class) The vector class is provided in the standard C++ library. Implement the vector class an exercise. The standar...
[13 replies] Last: I found another error. Try to push_back a value then clear the list ... (by onur)
How to print void
 
I rebuilt the vector class and I'm having problems with using cout to display a void vector. while (!intVector.empty()) cout << intVector.pop_back() <<...
[1 reply] : The 'pop_back' method merely removes the last element of the vector an... (by krishnendu)
finding plugin orgin in a window
 
is there a function for finding the origin of a flash plugin in a browser window with c++? i'm attempting to take a screen shot of simply the flash game, and i ...
[3 replies] Last: nope, no help there.. is there a way to utilize the plugin-container.e... (by jteally)
Write Access Violation with Itoa
 
I've never had this kind of problem before, it's just started coming up recently. It seems that no matter what I do, the itoa() function doesn't work correctly ...
[4 replies] Last: Thank you very much! I just learned something very important about C++... (by Gatleos)
compilation error - undefined symbol
 
hi all, i was compiling my program until i hit this error: ld: 0711-317 ERROR: Undefined symbol: my colleague told me that this was because the comp...
[1 reply] : That directory is just somewhere the compiler looks for libraries. You... (by Zhuge)
How buggy exactly, is VSE C++?
 
Because I am getting red underscores saying my cins are 'ambiguous', even though I didn't really change anything. Moreover, it compiles fine anyways.
[7 replies] Last: I wouldn't use getch() regardless. That's a conio.h function, is it no... (by Zhuge)
total safety, is it worth it?
 
Methods have preconditions and postconditions. When the precondition of a method is not met, there is a choice whether to handle that error( e.g. throw an excep...
[8 replies] Last: [quote=Duoas]you clearly need to work more on learning than rationaliz... (by simeonz)
How would I compare a char to see if it was up, down, left, or right?
 
(I originally posted this on the Beginners board, but wasn't getting any replies there, so this is a repost) Say I use getch(), and the person enters the up,...
[4 replies] Last: http://www.cplusplus.com/forum/beginner/36410/#msg196998 conio? I tho... (by ne555)
I can change the background color of the console, but not the foreground?
 
When I try changing the foreground and background color of a piece of text, the foreground is always black? HANDLE hConsole; hConsole = GetStdHandle(STD_OU...
[2 replies] Last: Yeah, I was using a tut on colors. I'll check out MSDN first from now ... (by TheOtherIsland)
Problems with pow()?
 
Hi all. I've had a hard time writing the typical program that converts a string containing only digits. After too much time than expected working on it I disco...
[2 replies] Last: Yes. That warning was the one that pointed me to the "solution". If, i... (by fernando)
How do I make a member in my class an array
 
So I have this class Gaus. I want Gaus to have a member lambda which is of type double . How do I say that in my .h file. Do I have to commit to a certain arra...
[4 replies] Last: thanks! (by dunsondog109)
Problem in my code...possible memory leak...?
 
I have a program that I've written...basically the problem starts when I reach the condition to hit the following block: status = myPubSubSubscribe.Recei...
[4 replies] Last: This code doesn't seem to have any obvious memory leaks. A quick analy... (by Zaita)
method that returns an array of doubles
 
I try creating a method that returns an array of doubles, but I get an error message when I try to compile Gaus.h class Gaus { public: Gaus (); ...
[3 replies] Last: double getLambda() wont work. Write double* getLambda() if you ar... (by hamsterman)
ld.exe cannot find -lcurl
 
I'm making a project that's going to use the FTP features of libcurl. Because I am planning on distributing my program, I copied all the header and source file...
[10 replies] Last: Maybe libcurl.dll is missing? (by JoR)
Unkown error
 
I am trying to make a program that finds the smallest number with the most divisors,which is the number of divisors and how many numbers with that many divisors...
[7 replies] Last: Thx allot simeonz you helped me so much. (by catawar2)
by mido22
converting words to numbers wanted code
 
i want a program to convert words to numbers for example Input: one hundred twenty three thirty four thousand one hundred eight eleven Output: 123 3410...
[2 replies] Last: thx very much i will try (by mido22)
How To Deal With User Pressing <Enter> When Prompted For An in (cin >> int)
 
I'm working on a menu based program. The actions performed are based on an integer that the user inputs via cin. In order to validate the integer I check cin.fa...
[15 replies] Last: yes thats helps thx (by M364M4Ncro)
February 2011 Pages: 1... 1112131415... 25
  Archived months: [jan2011] [mar2011]

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