Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TCS Interview Pin
ThatsAlok18-May-06 2:07
ThatsAlok18-May-06 2:07 
GeneralRe: TCS Interview Pin
Nibu babu thomas18-May-06 17:10
Nibu babu thomas18-May-06 17:10 
GeneralRe: TCS Interview Pin
ThatsAlok18-May-06 18:55
ThatsAlok18-May-06 18:55 
GeneralRe: TCS Interview Pin
ThatsAlok18-May-06 2:07
ThatsAlok18-May-06 2:07 
AnswerRe: TCS Interview Pin
VinayCool18-May-06 0:19
VinayCool18-May-06 0:19 
GeneralRe: TCS Interview Pin
Scorpio18-May-06 0:32
Scorpio18-May-06 0:32 
JokeRe: TCS Interview Pin
VinayCool18-May-06 0:34
VinayCool18-May-06 0:34 
QuestionNew to C++. Few Questions About ArrayList type structure. Pin
Tristan Rhodes17-May-06 23:53
Tristan Rhodes17-May-06 23:53 
I'm new to C++, but have a solid grasp of pointers and DMA in other languages.

My main issue is that i'm trying to figure out how to do things in an enviroment where i have no base class libraries, and i'm also trying to get my head around the layout of C++ files etc. I have a reasonable grasp of the basics, but am totaly lost as far as collection structures go.

As a learning exercise i am looking to make an arraylist structure. I've had a look around but not found any code that really fills my needs.

* Firstly the structure will contain an array, with count and length data.
* The array will be an array of pointers. (void pointers)
* When the Count value reaches the Length value, a new array is constructed that is scaled up from the origional by a given value.
* The items are shifted across to the new array.
* The origional array is deleted and set to null.

* Add some memory shuffling stuff to add / remove. (I can handle this if i get the rest working)

If anyone can direct me to some source code that will either explain it all or give me enough info to get working on this, that'll be a great help.


Also I've seen some code like this:

<br />
*char a; //Or whatever object we are refferencing<br />
<br />
//Assign some stuff here<br />
<br />
delete a;<br />
a = NULL;<br />


But there seems to be no NULL keyword. I know it's just setting the pointer to nothing, which should genericaly be 0. Is this an actualy keyword in some version of C++, or is it standard practice to have a global constant 'NULL = 0;'?


Cheers Chaps

Tris

-- modified at 6:48 Thursday 18th May, 2006
AnswerRe: New to C++. Few Questions About ArrayList type structure. Pin
Rage18-May-06 2:00
professionalRage18-May-06 2:00 
QuestionHow to add bitmaps as menu items in menu? Pin
Swati_18817-May-06 23:37
Swati_18817-May-06 23:37 
AnswerRe: How to add bitmaps as menu items in menu? Pin
sathish s18-May-06 0:08
sathish s18-May-06 0:08 
AnswerRe: How to add bitmaps as menu items in menu? Pin
Hamid_RT18-May-06 0:48
Hamid_RT18-May-06 0:48 
QuestionCListBox problem Pin
Sarath C17-May-06 23:27
Sarath C17-May-06 23:27 
AnswerRe: CListBox problem Pin
Rage18-May-06 1:44
professionalRage18-May-06 1:44 
QuestionCode for playing Flash files using Activex control Pin
RahulOP17-May-06 23:13
RahulOP17-May-06 23:13 
AnswerRe: Code for playing Flash files using Activex control Pin
Eytukan17-May-06 23:36
Eytukan17-May-06 23:36 
QuestionMSDN Pin
Anilkumar K V17-May-06 22:49
Anilkumar K V17-May-06 22:49 
AnswerRe: MSDN Pin
David Crow18-May-06 4:36
David Crow18-May-06 4:36 
QuestionUsing C++ source code to control Logitech gampad Pin
ghmy8217-May-06 22:44
ghmy8217-May-06 22:44 
AnswerRe: Using C++ source code to control Logitech gampad Pin
Justin Tay18-May-06 2:53
Justin Tay18-May-06 2:53 
GeneralRe: Using C++ source code to control Logitech gampad Pin
ghmy8218-May-06 15:02
ghmy8218-May-06 15:02 
GeneralRe: Using C++ source code to control Logitech gampad Pin
Justin Tay18-May-06 18:12
Justin Tay18-May-06 18:12 
Question. What are the different types of polymorphism? Pin
Scorpio17-May-06 21:51
Scorpio17-May-06 21:51 
AnswerRe: . What are the different types of polymorphism? Pin
Eytukan17-May-06 22:10
Eytukan17-May-06 22:10 
AnswerRe: . What are the different types of polymorphism? Pin
Laxman Auti17-May-06 22:14
Laxman Auti17-May-06 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.