Click here to Skip to main content
15,893,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: char* p and char *p ....Difference ? Pin
Mike_V11-Mar-07 13:44
Mike_V11-Mar-07 13:44 
GeneralRe: char* p and char *p ....Difference ? Pin
John R. Shaw11-Mar-07 15:22
John R. Shaw11-Mar-07 15:22 
GeneralRe: char* p and char *p ....Difference ? Pin
Mike_V11-Mar-07 15:26
Mike_V11-Mar-07 15:26 
GeneralRe: char* p and char *p ....Difference ? Pin
John R. Shaw11-Mar-07 16:32
John R. Shaw11-Mar-07 16:32 
GeneralRe: char* p and char *p ....Difference ? Pin
jfg211-Mar-07 15:08
jfg211-Mar-07 15:08 
GeneralRe: char* p and char *p ....Difference ? Pin
Software_Specialist12-Mar-07 3:27
Software_Specialist12-Mar-07 3:27 
GeneralRe: char* p and char *p ....Difference ? Pin
John R. Shaw11-Mar-07 16:43
John R. Shaw11-Mar-07 16:43 
GeneralRe: char* p and char *p ....Difference ? Pin
John R. Shaw12-Mar-07 4:04
John R. Shaw12-Mar-07 4:04 
Interesting handle you gave yourself ‘Software_Specialist’, add in training to that.

You have gotten off the point of your original post; which had to do with pointers and not types.

In you little code snippet you declare the variables ‘p1’ and ‘p2’, the variable ‘p’ does not exist unless it was declared globally. The values stored in ‘p1’ can be accessed via ‘p1.data’ and ‘p1.link’, and the values stored in ‘p2’ can be accessed via ‘p2.data’ and ‘p2.link’.

You can create your own data type at any time and any where in your code, whether it is a ‘struct’ or a ‘class’.

int main()
{
struct MY_DATA_TYPE { int a, b, c; } my_data;
my_data.a = 1;
my_data.b = 2;
my_data.c = 3;
…..
}



INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

AnswerRe: char* p and char *p ....Difference ? Pin
John R. Shaw11-Mar-07 16:22
John R. Shaw11-Mar-07 16:22 
GeneralRe: char* p and char *p ....Difference ? Pin
Software_Specialist12-Mar-07 3:38
Software_Specialist12-Mar-07 3:38 
Questioncannot get edit box value (QWidget ) Pin
Bilge Kaan11-Mar-07 12:34
Bilge Kaan11-Mar-07 12:34 
AnswerRe: cannot get edit box value (QWidget ) Pin
John R. Shaw11-Mar-07 17:28
John R. Shaw11-Mar-07 17:28 
QuestionBuild error LNK2001 on existing Project Pin
JAG1811-Mar-07 11:09
JAG1811-Mar-07 11:09 
AnswerRe: Build error LNK2001 on existing Project Pin
John R. Shaw11-Mar-07 17:38
John R. Shaw11-Mar-07 17:38 
Questionexport to text file Pin
Kiethnt11-Mar-07 8:41
Kiethnt11-Mar-07 8:41 
AnswerRe: export to text file Pin
John R. Shaw11-Mar-07 16:20
John R. Shaw11-Mar-07 16:20 
QuestionMFC changed the default language Pin
jerome_data11-Mar-07 6:51
jerome_data11-Mar-07 6:51 
AnswerRe: MFC changed the default language Pin
Hamid_RT11-Mar-07 8:32
Hamid_RT11-Mar-07 8:32 
QuestionStatic linking to user-generated library in MSVC Pin
Still learning how to code11-Mar-07 6:16
Still learning how to code11-Mar-07 6:16 
AnswerRe: Static linking to user-generated library in MSVC Pin
Still learning how to code11-Mar-07 10:34
Still learning how to code11-Mar-07 10:34 
Questionpre-project planning [modified] Pin
tukbriz11-Mar-07 5:54
tukbriz11-Mar-07 5:54 
AnswerRe: pre-project planning Pin
John R. Shaw11-Mar-07 19:16
John R. Shaw11-Mar-07 19:16 
QuestionHelp! The problem of COleDateTime::Format Pin
kcynic11-Mar-07 3:53
kcynic11-Mar-07 3:53 
AnswerRe: Help! The problem of COleDateTime::Format Pin
Christian Graus11-Mar-07 4:38
protectorChristian Graus11-Mar-07 4:38 
GeneralRe: Help! The problem of COleDateTime::Format Pin
kcynic11-Mar-07 4:42
kcynic11-Mar-07 4:42 

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.