943,733 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 298
  • C++ RSS
Aug 31st, 2009
0

Need a bit of help..

Expand Post »
I need the following output using nested for loops only.. Can someone please help me?

Thanks a lot..
Attached Thumbnails
Click image for larger version

Name:	untitled.JPG
Views:	9
Size:	5.3 KB
ID:	11405  
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
radium is offline Offline
1 posts
since Aug 2009
Aug 31st, 2009
0

Re: Need a bit of help..

Welcome radium,
Show us your work. Please.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Aug 31st, 2009
0

Re: Need a bit of help..

maybeb you should start with something like:

C++ Syntax (Toggle Plain Text)
  1. std::string createString(int i)
  2. {
  3. // create the string of "level i"
  4. }
  5.  
  6. for (int i = 1; i <= 5; ++i)
  7. {
  8. cout << createString(i);
  9. }
Reputation Points: 395
Solved Threads: 71
Posting Whiz
jencas is offline Offline
362 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Question
Next Thread in C++ Forum Timeline: error C2065: 'CString' : undeclared identifier





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC