Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Working with a Owner Draw Fixed listbox Pin
Mohammad A Gdeisat18-Sep-06 9:08
Mohammad A Gdeisat18-Sep-06 9:08 
AnswerRe: Working with a Owner Draw Fixed listbox Pin
Mohammad A Gdeisat18-Sep-06 9:17
Mohammad A Gdeisat18-Sep-06 9:17 
GeneralRe: Working with a Owner Draw Fixed listbox Pin
skullfire18-Sep-06 9:42
skullfire18-Sep-06 9:42 
Question[Message Deleted] Pin
Sam 200618-Sep-06 8:02
Sam 200618-Sep-06 8:02 
AnswerRe: [URGENT] dialog.DoModal(); Pin
Zac Howland18-Sep-06 8:05
Zac Howland18-Sep-06 8:05 
AnswerRe: [URGENT] dialog.DoModal(); Pin
toxcct18-Sep-06 8:07
toxcct18-Sep-06 8:07 
QuestionRe: [Message Deleted] Pin
Hamid_RT18-Sep-06 19:41
Hamid_RT18-Sep-06 19:41 
Questionpassword Protection in vc++ Pin
amaneet18-Sep-06 7:52
amaneet18-Sep-06 7:52 
AnswerRe: password Protection in vc++ Pin
led mike18-Sep-06 8:11
led mike18-Sep-06 8:11 
Questionhiding menu items Pin
Mohammad A Gdeisat18-Sep-06 7:17
Mohammad A Gdeisat18-Sep-06 7:17 
AnswerRe: hiding menu items Pin
Christopher Duncan19-Sep-06 1:04
Christopher Duncan19-Sep-06 1:04 
AnswerRe: hiding menu items Pin
Hamid_RT19-Sep-06 9:15
Hamid_RT19-Sep-06 9:15 
Questionplaying with strings Pin
Yustme18-Sep-06 7:01
Yustme18-Sep-06 7:01 
AnswerRe: playing with strings Pin
Mohammad A Gdeisat18-Sep-06 7:22
Mohammad A Gdeisat18-Sep-06 7:22 
GeneralRe: playing with strings Pin
Yustme18-Sep-06 7:24
Yustme18-Sep-06 7:24 
GeneralRe: playing with strings Pin
Mohammad A Gdeisat18-Sep-06 7:35
Mohammad A Gdeisat18-Sep-06 7:35 
I dont know what 'genest' mean - not even in the dictionary, so I assume it to mean 'nested loop', if this is true, then here is the code:
<br />
#include <iostream.h><br />
<br />
void main()<br />
{<br />
	for (int i=0;i<10;i++)  //num of lines<br />
	{<br />
		for(int j=0;j<5-i/2;j++)  //prefix spaces<br />
			cout<<' ';<br />
		for(int k=0;k<i;k++)  //stars<br />
			cout<<'*';<br />
		for(j=0;j<5-i/2;j++)//postfix spaces<br />
			cout<<' ';<br />
		cout<<endl;<br />
<br />
	}<br />
}


hope this helps

Mohammad

And ever has it been that love knows not its own depth until the hour of separation

AnswerRe: playing with strings Pin
toxcct18-Sep-06 7:25
toxcct18-Sep-06 7:25 
AnswerRe: playing with strings Pin
Zac Howland18-Sep-06 7:27
Zac Howland18-Sep-06 7:27 
GeneralRe: playing with strings Pin
Yustme18-Sep-06 7:28
Yustme18-Sep-06 7:28 
GeneralRe: playing with strings Pin
Zac Howland18-Sep-06 7:40
Zac Howland18-Sep-06 7:40 
GeneralRe: playing with strings Pin
Yustme18-Sep-06 7:54
Yustme18-Sep-06 7:54 
GeneralRe: playing with strings Pin
Zac Howland18-Sep-06 8:03
Zac Howland18-Sep-06 8:03 
AnswerRe: playing with strings Pin
David Crow18-Sep-06 7:37
David Crow18-Sep-06 7:37 
GeneralRe: playing with strings Pin
Yustme18-Sep-06 7:44
Yustme18-Sep-06 7:44 
GeneralRe: playing with strings Pin
David Crow18-Sep-06 8:19
David Crow18-Sep-06 8:19 

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.