General C++ Programming - November 2010 (Page 6)

Allocate Space for unknow class
 
hi all, in my project came out a problem: for the sake of avoiding mem defragments and space insurficient, we're not allowed to "new" class in run-time, so i h...
[4 replies] Last: How do you know if 1024 bytes is large enough for a Foo? And if it'... (by kbw)
by Adidas
Reading from TXT's files 1 by 1
 
my program needs to read a txt file, download it's data to an object and move on to the next txt file untill the last txt file that passed to the CMD... I'm us...
[3 replies] Last: Thank you my brother (by Adidas)
newbie here. if-else, while, loop. thanks!
 
Problem Statement: Design a program that will allow the user to select from the following : Math algorithms Figures Exit MATH ALGORITHMS ...
[7 replies] Last: why is it when you select the figures then you choose the rectangle ou... (by elleizarg03)
Pirate ship game question
 
Ok guys so i have a project to do for my c++ class and its supposed to be about two ships (one the player, the other one the computer) and they are on a 10x10 p...
[4 replies] Last: hi again, first the error from the extra asterisk is caused by the ... (by shredded)
Templates & Copy Constructors
 
Hey all. Having some trouble with this: #ifndef Matrix_H_INCLUDED #define Matrix_H_INCLUDED template <class T> class Matrix{ ... Matrix(const Mat...
[2 replies] Last: Header files should always have include guards. (by jsmith)
by kaurk
Comments on my Factory Pattern
 
Hi my name is Kaur, I have studied c++ for about 1.5 months. I just finished experimenting with factory pattern and this is the code i came up with. Is it rat...
[6 replies] Last: It just seems over-engineeered to me. I have to agree. I have... (by sohguanh)
COM client in C++ AND COM server in C#
 
Below is the code for COM Client in C++, which calls COM server written in C# below. I have copied an interface. This is more of a C# question. But I am gues...
[no replies]
deallocate memory
 
Hello, I have the function: float **Array2D_Float( int nRows, int nCols) { float **dynamicArray2d_float; dynamicArray2d_float = new floa...
[3 replies] Last: sorry I used spaces instead of tabs Spaces are better anyway ;P ... (by Disch)
Write a program in c++ description give in below
 
Write a program in C++ to minize the states of FSA(finite state Of Automata) i)Your input of your program will must read from the fileand the file contain inpu...
[2 replies] Last: hi, I am assuming you only want to get the numbers from the file h... (by shredded)
Thoughts on local macro names
 
This is something I've considered for a while, without coming to any sure conclusion. When in header files, sometimes to save typing and/or to make code more...
[9 replies] Last: Hmm, I had tried that, but the all-caps convention got the best of me.... (by Duthomhas)
Sorting strings problem
 
I have been having major problems getting my Sort methods to work. I have scoured the cplusplus forms and could not find anything. I am using a Vector in a 'lib...
[3 replies] Last: I fixed it. Turns out I accidentally had "i-1" when it should have bee... (by warthogmaster)
Football points proggy
 
Hello, I have a friend at work, who organises our football draw each week, he hands out a sheet for each of the 24 members to write down the scores to the match...
[4 replies] Last: Many thanks for your help Null, it might be enough to shift the rust f... (by Tappit333)
by Adidas
Reading specific data from TXT file
 
I need to know how 4 god sake I mannage to read specific data from txt file. for example if in my txt file is ==> 1.txt I want to go home, and , that , i...
[11 replies] Last: your the king ! It works great! (by Adidas)
Structures vs classes
 
I would like to know what is the difference in usage of structures and classes in c++..i mean given some of their similarities,when do we use structures and whe...
[1 reply] : There is no real difference except for this: Class have their standar... (by Kyon)
fucntion object to check the value of a map element
 
In a book (Sec 6.6.5 of Jossoutis' book on the Standard Library), I find this code: /*function object to check the value of a map element */ tem...
[4 replies] Last: OK, thanks, understand it now. (by heatkernel)
No Matching Function Call (dealing with addressing)
 
Hi. I am trying to compile this program but I am getting the following compilation error several times for different functions, but all related to the one that...
[2 replies] Last: That did the trick, I never looked at it ilke that. Thank you for the... (by cwbWakeRider)
bin tree
 
BEGIN highestAmount ( pNode) DEFINE wordBST: pointer of RECORD wordNode; DEFINE RECORD LetterNode { left: pointer of RECORD wordNode, word: c...
[1 reply] : anyone ? (by nanochan1)
by adn258
Converter Program Back To The Start Of The Switch How to?
 
Introduction: Hello everyone, My name is Austin I am new to these forums, and relatively new to c++. I just started studying c++ a month ago and I have never ...
[2 replies] Last: Sorry about not using the Code tag will certainly do that next time :)... (by adn258)
call redefined virtual function in parent constructor
 
Hi, I have following problem : I had implemented an algorithm, that uses in its constructor a virtual function , for example run. I create another version of al...
[4 replies] Last: One possibility is to make a factory. The factory would have to call ... (by jsmith)
November 2010 Pages: 1... 45678... 21
  Archived months: [oct2010] [dec2010]

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