Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Transpose of a matrix Pin
CPallini5-Jun-20 0:04
mveCPallini5-Jun-20 0:04 
GeneralRe: Transpose of a matrix Pin
jeron15-Jun-20 4:53
jeron15-Jun-20 4:53 
QuestionHow to draw a realtime XY plot in MFC Pin
manoharbalu1-Jun-20 22:31
manoharbalu1-Jun-20 22:31 
AnswerRe: How to draw a realtime XY plot in MFC Pin
Victor Nijegorodov1-Jun-20 22:40
Victor Nijegorodov1-Jun-20 22:40 
GeneralRe: How to draw a realtime XY plot in MFC Pin
Richard MacCutchan2-Jun-20 0:15
mveRichard MacCutchan2-Jun-20 0:15 
GeneralRe: How to draw a realtime XY plot in MFC Pin
Victor Nijegorodov2-Jun-20 0:24
Victor Nijegorodov2-Jun-20 0:24 
AnswerRe: How to draw a realtime XY plot in MFC Pin
CPallini5-Jun-20 0:33
mveCPallini5-Jun-20 0:33 
AnswerRe: How to draw a realtime XY plot in MFC Pin
charlieg7-Jun-20 7:29
charlieg7-Jun-20 7:29 
QuestionRandom numbers Pin
Calin Negru1-Jun-20 21:03
Calin Negru1-Jun-20 21:03 
AnswerRe: Random numbers Pin
_Flaviu1-Jun-20 21:26
_Flaviu1-Jun-20 21:26 
GeneralRe: Random numbers Pin
Calin Negru2-Jun-20 5:34
Calin Negru2-Jun-20 5:34 
GeneralRe: Random numbers Pin
Joe Woodbury2-Jun-20 11:21
professionalJoe Woodbury2-Jun-20 11:21 
AnswerRe: Random numbers Pin
Richard MacCutchan1-Jun-20 22:25
mveRichard MacCutchan1-Jun-20 22:25 
GeneralRe: Random numbers Pin
Calin Negru2-Jun-20 4:10
Calin Negru2-Jun-20 4:10 
GeneralRe: Random numbers Pin
Richard MacCutchan2-Jun-20 5:22
mveRichard MacCutchan2-Jun-20 5:22 
GeneralRe: Random numbers Pin
Calin Negru2-Jun-20 6:52
Calin Negru2-Jun-20 6:52 
AnswerRe: Random numbers Pin
CPallini2-Jun-20 20:16
mveCPallini2-Jun-20 20:16 
GeneralRe: Random numbers Pin
Calin Negru3-Jun-20 20:50
Calin Negru3-Jun-20 20:50 
GeneralRe: Random numbers Pin
CPallini3-Jun-20 20:53
mveCPallini3-Jun-20 20:53 
QuestionReturn Statement in C| when I used print just after if condition it gave me "Equal multiple times" but when i used return statement it game me single time? Pin
Member 148492461-Jun-20 10:17
Member 148492461-Jun-20 10:17 
AnswerRe: Return Statement in C| when I used print just after if condition it gave me "Equal multiple times" but when i used return statement it game me single time? Pin
jeron11-Jun-20 10:45
jeron11-Jun-20 10:45 
AnswerRe: Return Statement in C| when I used print just after if condition it gave me "Equal multiple times" but when i used return statement it game me single time? Pin
Richard MacCutchan1-Jun-20 20:54
mveRichard MacCutchan1-Jun-20 20:54 
QuestionI could not understand loop testcondition understanding| rest program runs fine Pin
Member 1484924631-May-20 8:55
Member 1484924631-May-20 8:55 
AnswerRe: I could not understand loop testcondition understanding| rest program runs fine Pin
Greg Utas31-May-20 9:40
professionalGreg Utas31-May-20 9:40 
AnswerRe: I could not understand loop testcondition understanding| rest program runs fine Pin
Richard MacCutchan31-May-20 21:58
mveRichard MacCutchan31-May-20 21:58 
The for statement breaks down as three individual expressions:
C++
for(set; while; do) :
//
// set : perform this or these expressions first: multiple expressions must be separated by commas
// while : repeat the loop while this expression equates to true
// do : perform this or these expressions at the end of each loop

Note that any of these expressions (or indeed all of them) may be blank.
In your code the expression in the while part is name[i], which means while name[i] is true, or rather while name[i] is not equal to zero. Strings in C are (or should be) terminated with a zero character (NULL), so the expression will be true as long as the character in question is not the terminating NULL.

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.