Click here to Skip to main content
14,577,604 members

C / C++ / MFC

 
GeneralRe: Reading sectors Pin
_Flaviu9-May-20 20:01
Member_Flaviu9-May-20 20:01 
GeneralRe: Reading sectors Pin
Richard MacCutchan9-May-20 21:36
mveRichard MacCutchan9-May-20 21:36 
GeneralRe: Reading sectors Pin
_Flaviu9-May-20 22:01
Member_Flaviu9-May-20 22:01 
Questionasign to return value Pin
CalinNegru2-May-20 21:55
MemberCalinNegru2-May-20 21:55 
AnswerRe: asign to return value Pin
Richard MacCutchan2-May-20 22:11
mveRichard MacCutchan2-May-20 22:11 
AnswerRe: asign to return value Pin
Stephane Capo2-May-20 22:19
MemberStephane Capo2-May-20 22:19 
GeneralRe: asign to return value Pin
CalinNegru2-May-20 22:50
MemberCalinNegru2-May-20 22:50 
GeneralRe: asign to return value Pin
Stephane Capo2-May-20 23:03
MemberStephane Capo2-May-20 23:03 
So you probably need to return a reference :

ChartNode& NodeCoord(int x, int z)
{
     return Chart[z * 10 + x];
}


else the NodeCoord(4,4).access = false will assign a temporary copy of your ChartNode struct and not the one in your array.
GeneralRe: asign to return value Pin
CalinNegru2-May-20 23:13
MemberCalinNegru2-May-20 23:13 
GeneralRe: asign to return value Pin
Stephane Capo2-May-20 23:51
MemberStephane Capo2-May-20 23:51 
GeneralRe: asign to return value Pin
Richard MacCutchan2-May-20 23:21
mveRichard MacCutchan2-May-20 23:21 
GeneralRe: asign to return value Pin
CalinNegru2-May-20 23:35
MemberCalinNegru2-May-20 23:35 
GeneralRe: asign to return value Pin
Richard MacCutchan2-May-20 23:48
mveRichard MacCutchan2-May-20 23:48 
GeneralRe: asign to return value Pin
CalinNegru3-May-20 0:00
MemberCalinNegru3-May-20 0:00 
GeneralRe: asign to return value Pin
Richard MacCutchan3-May-20 0:07
mveRichard MacCutchan3-May-20 0:07 
GeneralRe: asign to return value Pin
«_Superman_»9-May-20 20:01
professional«_Superman_»9-May-20 20:01 
AnswerRe: asign to return value Pin
CalinNegru3-May-20 3:26
MemberCalinNegru3-May-20 3:26 
QuestionProperty Sheet Display issues Pin
LegacyGuy30-Apr-20 9:27
MemberLegacyGuy30-Apr-20 9:27 
AnswerRe: Property Sheet Display issues Pin
Victor Nijegorodov30-Apr-20 10:01
MemberVictor Nijegorodov30-Apr-20 10:01 
GeneralRe: Property Sheet Display issues Pin
Richard MacCutchan30-Apr-20 21:33
mveRichard MacCutchan30-Apr-20 21:33 
QuestionStrange chars Pin
_Flaviu28-Apr-20 8:31
Member_Flaviu28-Apr-20 8:31 
AnswerRe: Strange chars Pin
Richard Andrew x6428-Apr-20 9:19
professionalRichard Andrew x6428-Apr-20 9:19 
GeneralRe: Strange chars Pin
_Flaviu28-Apr-20 9:40
Member_Flaviu28-Apr-20 9:40 
GeneralRe: Strange chars Pin
Richard Andrew x6428-Apr-20 9:57
professionalRichard Andrew x6428-Apr-20 9:57 
AnswerRe: Strange chars Pin
Richard MacCutchan28-Apr-20 21:32
mveRichard MacCutchan28-Apr-20 21:32 

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.