![]() |
|
#1
|
|||
|
|||
Stuck in these two similar programsThis is what I've already done:
CPP / C++ / C Code:
Stuck with the same part of the next one: CPP / C++ / C Code:
Objective: write a program that finds the maximum and minimum number of a list. I just got a little stuck with what should go after the "{". Any help? -ty |
|||
|
#2
|
|||
|
|||
Re: Stuck in these two similar programsWhy don't we take them one at a time? Get the first one under your belt, and maybe you will gain some insight that will help with the second one (and the many, many programs to follow).
Quote:
I would formulate the problem as follows: Code:
Note that a useful idiom (and probably the most used construct) in C and C++ if you want to do something n times is CPP / C++ / C Code:
I mean, there are other looping constructs, but if I know how many times I want to do something, I (usually) just use a "for" loop to count the iterations. Regards, Dave |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to interact with other programs? | Soybeanio | C++ Forum | 2 | 25-Aug-2008 14:49 |
| Affiliate Programs Directory - over 1700 programs including contexual ads, CPM,... | john924 | Member Announcements, Advertisements & Offers | 1 | 29-Jul-2008 19:43 |
| 2-tiered CPM Affiliate Programs $$ | john924 | Advertising & Affiliates Forum | 4 | 21-Sep-2004 14:31 |
| HTML editors & Web Design Programs | pcxgamer | Web Design Forum | 15 | 19-Mar-2003 06:31 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The