Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 09-29-09   #1 (permalink)
AMD Overclocker
 
amd nvidia

Join Date: Apr 2009
Posts: 438

Rep: 19 godsgift2dagame Unknown
Unique Rep: 17
Trader Rating: 0
Default Mods please delete

Hey guys,

I'm using multiple functions to divide up the tasks of entering values, finding their minimum, and their average. I want the inputted values to be outputted where I BOLDED, RED COLORED, AND CAPITALIZED THE TEXT. How would I go about doing it?

Code:
#include <iostream>
using namespace std;

int GetValues();
int FindLowest();
int CalcAverage();

int main(){
    int score, sum;
        
    GetValues();  
    
    cout << "The numbers entered are: " << WHAT GOES HERE???
    
    FindLowest();
    
    return 0;
}

int GetValues(){
    int score, counter[5];
    int score1, score2, score3, score4, score5;
    double sum;
    
           for (int i = 0; i < 5; i++)
           {cout << "Enter score ";
           cin >> score;
           sum += score;
           }
           
    cout << "The sum is: " << score << endl;
    
    return 0;                                  
}

int FindLowest(){
    int score, count, min = 101;
    
    if (score < min)
    min = score;
    
    cout << "The minimum is " << min;
    
    getchar();
    getchar();
    return 0;

}
__________________
System: $775
CPU
Phenom II 720
Motherboard
Gigabyte MA790X-UD4P
Memory
4GB OCZ Reaper DDR2 1150
Hard Drive
250GB Seagate Barracuda 7200.10 x 2
Power Supply
PC Power & Cooling 610W
Case
Antec 300
CPU cooling
XIGMATEK Dark Knight-S1283V
OS
Vista 64-bit

Last edited by godsgift2dagame : 09-29-09 at 08:49 PM
godsgift2dagame is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 08:52 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.07910 seconds with 8 queries