Click here to Skip to main content
15,917,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVB6 Project to VC6 Pin
MikeRWinter27-Mar-10 12:06
MikeRWinter27-Mar-10 12:06 
AnswerRe: VB6 Project to VC6 Pin
Richard Andrew x6427-Mar-10 13:07
professionalRichard Andrew x6427-Mar-10 13:07 
GeneralRe: VB6 Project to VC6 Pin
MikeRWinter27-Mar-10 13:49
MikeRWinter27-Mar-10 13:49 
GeneralRe: VB6 Project to VC6 Pin
Richard Andrew x6427-Mar-10 13:53
professionalRichard Andrew x6427-Mar-10 13:53 
GeneralRe: VB6 Project to VC6 Pin
MikeRWinter27-Mar-10 14:02
MikeRWinter27-Mar-10 14:02 
GeneralRe: VB6 Project to VC6 Pin
MikeRWinter27-Mar-10 15:41
MikeRWinter27-Mar-10 15:41 
GeneralRe: VB6 Project to VC6 Pin
Richard Andrew x6427-Mar-10 16:23
professionalRichard Andrew x6427-Mar-10 16:23 
QuestionReadFile (reading COM port) returns are different in debug – stepping thru and run. [modified] SOLVED Pin
Vaclav_27-Mar-10 9:54
Vaclav_27-Mar-10 9:54 
AnswerRe: ReadFile (reading COM port) returns are different in debug – stepping thru and run. Pin
CPallini27-Mar-10 11:28
mveCPallini27-Mar-10 11:28 
GeneralRe: ReadFile (reading COM port) returns are different in debug – stepping thru and run. Pin
Vaclav_27-Mar-10 15:53
Vaclav_27-Mar-10 15:53 
QuestionHow to work sqlite in vc++ Pin
kirancgi27-Mar-10 4:51
kirancgi27-Mar-10 4:51 
AnswerRe: How to work sqlite in vc++ Pin
loyal ginger27-Mar-10 5:01
loyal ginger27-Mar-10 5:01 
GeneralRe: How to work sqlite in vc++ Pin
kirancgi28-Mar-10 2:24
kirancgi28-Mar-10 2:24 
GeneralRe: How to work sqlite in vc++ Pin
loyal ginger28-Mar-10 2:56
loyal ginger28-Mar-10 2:56 
GeneralRe: How to work sqlite in vc++ Pin
kirancgi29-Mar-10 2:37
kirancgi29-Mar-10 2:37 
QuestionRe: How to work sqlite in vc++ Pin
David Crow29-Mar-10 3:05
David Crow29-Mar-10 3:05 
QuestionRe: How to work sqlite in vc++ Pin
kirancgi29-Mar-10 22:25
kirancgi29-Mar-10 22:25 
GeneralRe: How to work sqlite in vc++ Pin
loyal ginger29-Mar-10 4:19
loyal ginger29-Mar-10 4:19 
AnswerRe: How to work sqlite in vc++ Pin
Swapnil Shah29-Mar-10 3:46
Swapnil Shah29-Mar-10 3:46 
GeneralRe: How to work sqlite in vc++ Pin
kirancgi7-Apr-10 23:40
kirancgi7-Apr-10 23:40 
Questionhow to use for loop for displaying no in following format? Pin
poonam jagdale26-Mar-10 21:17
poonam jagdale26-Mar-10 21:17 
AnswerRe: how to use for loop for displaying no in following format? Pin
Adam Roderick J26-Mar-10 22:32
Adam Roderick J26-Mar-10 22:32 
AnswerRe: how to use for loop for displaying no in following format? Pin
CPallini26-Mar-10 23:24
mveCPallini26-Mar-10 23:24 
AnswerRe: how to use for loop for displaying no in following format? Pin
Stephen Hewitt27-Mar-10 1:01
Stephen Hewitt27-Mar-10 1:01 
Try this:
#include <iostream>
using namespace std;
 
void main()
{
    const char *p[] = {"1", "2 2", "3 3 3", "4 4 4 4",
                       "5 5 5 5 5", "4 4 4 4", "3 3 3",
                       "2 2", "1"};
 
    for (int i=0; i<sizeof(p)/sizeof(*p); ++i)
    {
        cout << p[i] << endl;
    }
}

 
 
Steve

GeneralRe: how to use for loop for displaying no in following format? Pin
normanS29-Mar-10 11:12
normanS29-Mar-10 11:12 

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.