Click here to Skip to main content
14,391,757 members

C / C++ / MFC

 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 5:06
MemberForNow19-Sep-19 5:06 
AnswerRe: Determining length of Switch compare Pin
leon de boer19-Sep-19 5:38
Memberleon de boer19-Sep-19 5:38 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 6:11
MemberForNow19-Sep-19 6:11 
GeneralRe: Determining length of Switch compare Pin
leon de boer28-Sep-19 15:57
Memberleon de boer28-Sep-19 15:57 
QuestionC++ string assignment to struct Pin
Fotsing18-Sep-19 12:54
MemberFotsing18-Sep-19 12:54 
AnswerRe: C++ string assignment to struct Pin
Richard MacCutchan18-Sep-19 21:26
mveRichard MacCutchan18-Sep-19 21:26 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 23:33
MemberFotsing18-Sep-19 23:33 
GeneralRe: C++ string assignment to struct Pin
Stefan_Lang19-Sep-19 3:12
MemberStefan_Lang19-Sep-19 3:12 
That is because you are assigning arrays to arrays, and that is invalid code in C/C++:
phone[j].num=phone[j+1].num;
phone[j].TphoneN=phone[j+1].TphoneN;
phone[j].name=phone[j+1].name;

You can use the appropriate functions for C strings, e. g. strcpy. But it would be much better if you just used std::string instead of C strings!
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: C++ string assignment to struct Pin
Fotsing19-Sep-19 14:06
MemberFotsing19-Sep-19 14:06 
AnswerRe: C++ string assignment to struct Pin
Victor Nijegorodov18-Sep-19 21:30
MemberVictor Nijegorodov18-Sep-19 21:30 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 23:28
MemberFotsing18-Sep-19 23:28 
AnswerRe: C++ string assignment to struct Pin
CPallini18-Sep-19 22:01
mveCPallini18-Sep-19 22:01 
QuestionMFC VC++ Pin
Member 1457555617-Sep-19 21:42
MemberMember 1457555617-Sep-19 21:42 
AnswerRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:59
MemberVictor Nijegorodov17-Sep-19 21:59 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 22:06
MemberMember 1457555617-Sep-19 22:06 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 22:43
MemberVictor Nijegorodov17-Sep-19 22:43 
GeneralRe: MFC VC++ Pin
Member 1457555618-Sep-19 0:35
MemberMember 1457555618-Sep-19 0:35 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov18-Sep-19 1:24
MemberVictor Nijegorodov18-Sep-19 1:24 
AnswerRe: MFC VC++ Pin
CPallini17-Sep-19 22:12
mveCPallini17-Sep-19 22:12 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 22:22
MemberMember 1457555617-Sep-19 22:22 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 22:39
MemberVictor Nijegorodov17-Sep-19 22:39 
GeneralRe: MFC VC++ Pin
CPallini17-Sep-19 22:55
mveCPallini17-Sep-19 22:55 
GeneralRe: MFC VC++ Pin
Member 1457555618-Sep-19 0:49
MemberMember 1457555618-Sep-19 0:49 
GeneralRe: MFC VC++ Pin
CPallini18-Sep-19 1:39
mveCPallini18-Sep-19 1:39 
AnswerRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 22:47
MemberVictor Nijegorodov17-Sep-19 22:47 

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.