General C++ Programming - April 2008 (Page 3)

by Tomas
Unknown use of protected member functions.
 
Hi. This is my first post to the list. I'm working with a C++ framework that has something like ...
[7 replies] Last: Thanks for that, Grey Wolf. It was nice to see things from the source ... (by rpgfan3233)
Write and Read Bit Operations
 
Hi all... currently, i write a program that need to read and write in bit from file. I already...
[1 reply] : sorry all, i just figure it my self. But if somebody have some nice... (by crayon66)
INHERITING FRIEND FUNCTION OF CLASS?
 
'A' IS BASE CLASS. 'B' IS DERIVED CLASS OF 'A'. 'F1' IS FRIEND FUNCTION OF CLASS A IT MEANS F1 S...
[2 replies] Last: A friend function by definition is not a member of the class for which... (by jsmith)
C++ design problem (memory management and polymorphism)
 
Hi everyone, There is a design problem I've run into a few times now, and I'm not sure how to get...
[8 replies] Last: Going along the lines of ropez' solution, boost also provides the ptr_... (by jsmith)
A question about "ifstream"!
 
hello,guys! I have a question:these codes is from chapter 3,The C++ Programming Language (Special Ed...
[3 replies] Last: hi. guys! Those codes above have some problems. and these codes ... (by toptony)
by yogurt
Rounding
 
how would i round a decimal like .3333333333e103 to the 7th digit place. like .66666666666666666666...
[3 replies] Last: If you are using floating point variables to store the numbers then ro... (by jsmith)
help plzzzzzzzzz in c language
 
hi everybody i have two programs and i need your help to write the please write me the code as s...
[9 replies] Last: Yes. It is really easily coded there: http://catb.org/~esr/faqs/smart-... (by Repentinus)
passing variable to 'for' loop
 
can you only pass pointers, or is it the way im declaring the variable is incorrect?
[4 replies] Last: wierd, it works fine now, must have been something I did before. ... (by moonshadow9988)
Trouble Reading From File Into Array
 
hi i've been trying to get a text file read into an 2D-array, but the values from the file are not...
[no replies]
how to create a explorer in mfc
 
hi all, i have a question. does any1 know how to create a explorer in mfc with treewiev and listwiev...
[1 reply] : Have a look here: http://www.functionx.com/visualc/applications/explo... (by closed account z05DSL3A)
help please
 
Can somebody tell me how to prevent the from poping up!!
[1 reply] : Have you tried the?? (by ropez)
saving file
 
Hey guys i have a header file for class:bitmap i have a function in there called... void save (stri...
[no replies]
it is not pointer?
 
string a="cplus"; char* b=a; // THIS STEP IS SHOWING ERROR EVERY STRING AS WE KNOW IS A CONSTANT...
[4 replies] Last: Post fixed for people who might find their way to this thread. Than... (by rpgfan3233)
Container of Constructors for Factory?
 
Hi All, I'm writing a factory class, and was wondering if it is possible to get the address of a co...
[2 replies] Last: No, but you can use the Prototype pattern and clone instances of a cre... (by medievalelks)
2d array element shifts
 
i need to horizontally right and vertically up shift the elements of a 2d character array. i have co...
[no replies]
displaying 2-d vector
 
void display(vector < vector <bool> > g, int rows, int cols) { // pre : none // post : displays t...
[1 reply] : First, your declaration of "rows" and "cols" as for loop indices shado... (by jsmith)
looking for expression evaluation engine
 
Hi, I need to find an expression evaluator for C/C++ able to support my own functions and my own d...
[1 reply] : Sounds like you want to build your own grammar. I'd recommend looking... (by jsmith)
by naja
how to initialise an array data member with all zeros
 
hi, is there any other way to do it rather than looping? similar to this: int array = { 0 ...
[4 replies] Last: ok thx, now i understand.... (by naja)
by Arna
graphics library
 
Hi, I received a code using a graphics library by #include <gl/gl.h>. However, during debugging, th...
[1 reply] : it seems gl/gl.h for linux OS, not windows, that is why accured errors... (by guruplus)
reading data into d-2 vector
 
i need to read values into a 2-d vector that are char void readIn(vector < vector <bool> > & g, ...
[no replies]
April 2008 Pages: 12345... 11
  Archived months: [mar2008] [may2008]

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