- Joined
- Aug 2, 2009
- Messages
- 156 (0.03/day)
- Location
- Washington The State
System Name | Tiny Computer |
---|---|
Processor | i7 2600k |
Motherboard | ASRock H67M-ITX |
Cooling | Stock for now |
Memory | 8 GB G.skill |
Video Card(s) | Unlocked 6950 @ 910/1400 |
Storage | WD Black 1 TB (FAEX) |
Display(s) | 24" Dell 1920x1080 |
Case | SG07 |
Power Supply | Silverstone 600W |
Software | Windows 7 x64 Pro |
Hey guys, one last problem here.
I have this function for outputting an array
As it is, it outputs one element per line. Is there a way to make it output 10 elements per line?
I have this function for outputting an array
// ===================
// Function PrintArray
// =============================
void PrintArray( string name,
int data[],
int numberOfElements ){
int ii; // Loop Control Variable
cout << endl;
ii = 0;
while ( ii < numberOfElements ){
cout << name << "[" << ii << "] = "
<< data[ii] << endl;
ii++;
} // While loop
cout << endl;
} // Function PrintArray
// ========================
As it is, it outputs one element per line. Is there a way to make it output 10 elements per line?