General C++ Programming - May 2010 (Page 5)

by jlabbe
Plug And Play Child Class??
 
Hi, I'm trying to prototype a "plug and play" class. Basically, just want to have a generic func...
[11 replies] Last: Well, I think I now have the answers I needed (what I can do, what I s... (by jlabbe)
How can i calculate the Md5 of File
 
Hi experts I wanted to know how to calculate the MD5 of a file Please Help
[6 replies] Last: The issue is how large the chunks are. If two implementations use diff... (by chrisname)
delete array allocated in a function
 
Hello, I have a deallocation problem : I have several classes, and in one of these, a function is r...
[1 reply] : double post (by Denis)
Run time error
 
Hi all, I have this piece of code and I run this on windows (vc++) and in Ubuntu (g++ 4.4). In Li...
[6 replies] Last: Thanks Grey for the explanation. This makes it clear. -Bharath (by bharathnarayan)
How to i convert DWORD To Hex
 
hi Expert's my sample code: DWORD m_dwAEP = pNTHeader->OptionalHeader.AddressOfEntryPoint; ...
[2 replies] Last: Thanks So much............ (by ramKrushna)
by BaluM
missing last bytes when reading binary file with C++ iostreams
 
Hello All, Could you please help me on below issue!!!! I was writing and reading binary file a...
[4 replies] Last: @BaluM You need to use squate brackets around the code tags. Rat... (by Galik)
Two Virtual Functions
 
One of my friends asked me this question. Neither I nor he knows the answer. What will happen if ...
[5 replies] Last: 1. is incorrect. If a is a pointer to an object of type A then it will... (by Galik)
by mpolet
search tree
 
Hi, I'm a student trying to program a searchtree with the class TreeSet and Node. The comment is...
[3 replies] Last: Thx, that helped a lot (by mpolet)
a small parser problem
 
Hello, I am very new to c++. I have this piece of code in cpp file (don't have it on h file): ...
[1 reply] : It seems that you forgot to include something. (by Denis)
by zile
getting file's text with ',' delimit
 
hi, i have a file which is like this 16A9B,15A,4,6,6,8,156A,19B... it may be as long as 200mb in...
[2 replies] Last: lemme get this right , i removed the whitespaces cuz theres no space i... (by zile)
Making a two(2) dimensional vector
 
The code works great, but I am trying to add the length of the each name to the vector. Can someone ...
[8 replies] Last: The golder rule of arrays: in order to allow random access, all elemen... (by helios)
error C2228: left of '.swap' must have class/struct/union type
 
I have added another vector in order to keep track of all the lengths of each name. I am having some...
[2 replies] Last: What exactly is the point of A_names_sizes? std::string already hold t... (by helios)
Cannot get "goto" to work.
 
The code is 99% working, but I am now getting a compiler error. I am able to bubble sort and output ...
[5 replies] Last: You don't need to put those "if (infile.eof())" constructs in the midd... (by Galik)
random number generator
 
The program is taking an inputed amount of teams, and placing them on a bracket line for a tournamen...
[1 reply] : Fill up spots with numbers 1-x, then use std::random_shuffle to shuffl... (by R0mai)
Interacting with Websites
 
Could anyone point me to some references or tutorials that deal with interacting with websites? For ...
[11 replies] Last: You might want to look at Curl: http://curl.haxx.se/ That could be ... (by Galik)
Implementation of sort - List
 
Hello ! I want to do my own implementation of sort using the standard library of <list>. I know ...
[2 replies] Last: Thank-you very much for your answer. I want to implement my own alg... (by Kanashin)
Binary Tree
 
I am trying to pass data into a class object and the put that class object into a binary tree. My co...
[4 replies] Last: Well I got it to work. My only question now is how do I add more than ... (by jdpjtp910)
Problem Bubble Sorting a Vector
 
I am trying to Bubble Sort a list of names by the length of the names only. The alphabetical part is...
[6 replies] Last: FYI, I am not sure that the std::vector is the right tool for this job... (by kempofighter)
How to program a Casio calculator?
 
Does anyone of you knows how to program a simple casio calculator? The model is FX-570 http://www...
[9 replies] Last: The TI calculators are different animals Vexer. They can be programme... (by cnoeval)
Slowness of Vectors (1,2)
 
Hi all , I realized that , declaring and filling a 2D vector cost much more time than declaring fil...
[24 replies] Last: Wow,thanks helios, I didn't know about optimization settings of compil... (by Dufresne)
May 2010 Pages: 1... 34567... 22
  Archived months: [apr2010] [jun2010]

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