Click here to Skip to main content
15,886,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMessage Closed Pin
8-May-23 6:28
Member 149687718-May-23 6:28 
AnswerRe: C++ for loop syntax ? Pin
CPallini8-May-23 8:02
mveCPallini8-May-23 8:02 
AnswerRe: C++ for loop syntax ? Pin
Richard MacCutchan8-May-23 21:46
mveRichard MacCutchan8-May-23 21:46 
GeneralMessage Closed Pin
9-May-23 7:13
Member 149687719-May-23 7:13 
GeneralRe: C++ for loop syntax ? Pin
Richard MacCutchan9-May-23 10:11
mveRichard MacCutchan9-May-23 10:11 
GeneralRe: C++ for loop syntax ? Pin
k50549-May-23 11:29
mvek50549-May-23 11:29 
AnswerRe: C++ for loop syntax ? Pin
Gerry Schmitz10-May-23 5:02
mveGerry Schmitz10-May-23 5:02 
AnswerRe: C++ for loop syntax ? Pin
jschell10-May-23 5:34
jschell10-May-23 5:34 
No idea why your question was down voted. So I up voted it.

Sometimes I can guess at skill level so it helps to frame an answer but I am unsure of your skill level. (I am using 'skill' intentionally in a very ambiguous way here.)

Do you understand what the following loop construct does?

for (int i = 1; i <= 5; ++i)


If you do not then I suggest that you experiment with that for a while. And look up different ways to structure it including replacing it with a while loop.

The structure that you asked about is just syntactic sugar that ends up implementing something similar to the above. So understanding it first helps.
QuestionTitle bar display and closing problem Pin
Jeanjean Lesage5-May-23 22:46
Jeanjean Lesage5-May-23 22:46 
AnswerRe: Title bar display and closing problem Pin
Richard MacCutchan6-May-23 0:03
mveRichard MacCutchan6-May-23 0:03 
GeneralRe: Title bar display and closing problem Pin
Jeanjean Lesage6-May-23 1:57
Jeanjean Lesage6-May-23 1:57 
QuestionCreating a pointer and asigning a variable address to it Pin
Calin Negru23-Apr-23 6:22
Calin Negru23-Apr-23 6:22 
AnswerRe: Creating a pointer and asigning a variable address to it Pin
Gerry Schmitz23-Apr-23 8:58
mveGerry Schmitz23-Apr-23 8:58 
AnswerRe: Creating a pointer and asigning a variable address to it Pin
Victor Nijegorodov23-Apr-23 20:14
Victor Nijegorodov23-Apr-23 20:14 
AnswerRe: Creating a pointer and asigning a variable address to it Pin
Richard MacCutchan23-Apr-23 21:26
mveRichard MacCutchan23-Apr-23 21:26 
GeneralRe: Creating a pointer and asigning a variable address to it Pin
Calin Negru23-Apr-23 22:39
Calin Negru23-Apr-23 22:39 
GeneralRe: Creating a pointer and asigning a variable address to it Pin
harold aptroot23-Apr-23 21:49
harold aptroot23-Apr-23 21:49 
GeneralRe: Creating a pointer and asigning a variable address to it Pin
CPallini25-Apr-23 20:27
mveCPallini25-Apr-23 20:27 
QuestionMessage Closed Pin
22-Apr-23 6:51
Member 1496877122-Apr-23 6:51 
AnswerRe: How to implement "\n" in QT QDebug class Pin
k505422-Apr-23 7:32
mvek505422-Apr-23 7:32 
GeneralMessage Closed Pin
22-Apr-23 13:00
Member 1496877122-Apr-23 13:00 
GeneralRe: How to implement "\n" in QT QDebug class Pin
Richard MacCutchan22-Apr-23 21:10
mveRichard MacCutchan22-Apr-23 21:10 
Questionget text of SysListView32(LVS_OWNERDATA+LVS_OWNERDRAWFIXED) items from other applications Pin
Ilqar Sadiqov8-Apr-23 9:02
Ilqar Sadiqov8-Apr-23 9:02 
AnswerRe: get text of SysListView32(LVS_OWNERDATA+LVS_OWNERDRAWFIXED) items from other applications Pin
Richard MacCutchan8-Apr-23 21:01
mveRichard MacCutchan8-Apr-23 21:01 
GeneralRe: get text of SysListView32(LVS_OWNERDATA+LVS_OWNERDRAWFIXED) items from other applications Pin
Ilqar Sadiqov9-Apr-23 20:46
Ilqar Sadiqov9-Apr-23 20:46 

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.