Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to add a new toolbar to vs.net ide in the vs.net add-in? Pin
James R. Twine31-May-02 10:34
James R. Twine31-May-02 10:34 
GeneralDev Studio... Pin
Max Santos30-May-02 15:17
Max Santos30-May-02 15:17 
GeneralRe: Dev Studio... Pin
benjymous30-May-02 22:35
benjymous30-May-02 22:35 
GeneralRe: Dev Studio... Pin
Max Santos31-May-02 0:34
Max Santos31-May-02 0:34 
Generalexperimenting... "to understand pointers more" Pin
SilverShalkin30-May-02 15:20
SilverShalkin30-May-02 15:20 
GeneralRe: experimenting... "to understand pointers more" Pin
Paul M Watt30-May-02 16:02
mentorPaul M Watt30-May-02 16:02 
GeneralRe: experimenting... "to understand pointers more" Pin
SilverShalkin30-May-02 16:18
SilverShalkin30-May-02 16:18 
GeneralRe: experimenting... "to understand pointers more" Pin
Roger Broomfield30-May-02 18:04
Roger Broomfield30-May-02 18:04 
Lets assume for a minute that you did do that.
You could then do this:

printf("%s\n",pchar[0]);
printf("%s\n",pchar[1]);
printf("%s\n",pchar[2]);
printf("%s\n",pchar[3]);
printf("%s\n",pchar[4]);
printf("%s\n",pchar[5]);

and the results would be:

hello
ello
llo
lo
o
<<there would="" be="" a="" blank="" line="" here="">>


in summary an array of characters IS a pointer to a sequence of characters.

so if we were to do this instead

char characters[6] = "hello";
char* pchar = characters;
char* pchars = &characters[0];

then examine the values of all three variables in the debugger.

they would all be identical.

Hope this helps in your struggle with pointers.

Roger.
GeneralRe: experimenting... "to understand pointers more" Pin
Nish Nishant30-May-02 17:56
sitebuilderNish Nishant30-May-02 17:56 
GeneralRe: experimenting... "to understand pointers more" Pin
SilverShalkin30-May-02 18:11
SilverShalkin30-May-02 18:11 
GeneralRe: experimenting... "to understand pointers more" Pin
Nish Nishant30-May-02 18:18
sitebuilderNish Nishant30-May-02 18:18 
GeneralRe: experimenting... "to understand pointers more" Pin
Matt Gullett30-May-02 19:55
Matt Gullett30-May-02 19:55 
GeneralRe: experimenting... "to understand pointers more" Pin
SilverShalkin31-May-02 11:19
SilverShalkin31-May-02 11:19 
GeneralIs it me, or does there seem to be a bubble of questions with long subjects and nothing of any merit in the actual body of the message. Pin
Tim Smith30-May-02 13:38
Tim Smith30-May-02 13:38 
Generalall fixed :) Pin
SilverShalkin30-May-02 15:39
SilverShalkin30-May-02 15:39 
GeneralRe: Is it me, or does there seem to be a bubble of questions with long subjects and nothing of any merit in the actual body of the message. Pin
Nish Nishant30-May-02 17:57
sitebuilderNish Nishant30-May-02 17:57 
Generaldevice context of picture box control Pin
Speedy30-May-02 13:10
Speedy30-May-02 13:10 
QuestionHow do i catch when the user selects an item in a listview control with the RIGHT mouse button? Pin
redeemer30-May-02 13:03
redeemer30-May-02 13:03 
AnswerRe: How do i catch when the user selects an item in a listview control with the RIGHT mouse button? Pin
Tomasz Sowinski30-May-02 13:05
Tomasz Sowinski30-May-02 13:05 
GeneralRe: How do i catch when the user selects an item in a listview control with the RIGHT mouse button? Pin
redeemer30-May-02 13:28
redeemer30-May-02 13:28 
GeneralOveriding mouse events Pin
30-May-02 11:51
suss30-May-02 11:51 
GeneralVariable issues Pin
Stew30-May-02 11:37
Stew30-May-02 11:37 
GeneralRe: Variable issues Pin
Bill Wilson30-May-02 11:43
Bill Wilson30-May-02 11:43 
GeneralRe: Variable issues Pin
Stew30-May-02 12:01
Stew30-May-02 12:01 
GeneralRe: Variable issues Pin
Bill Wilson30-May-02 12:18
Bill Wilson30-May-02 12:18 

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.