Quote
*
***
*****
***
*
Because a diamond must have an odd number for its width, if the user enters an even number, it should be increased to the next odd number. You will have multiple loops inside of loops and lots of counters; comment thoroughly to help keep track of things.
//Program #11 Graphic Diamonds
//include interfaces
#include
// constants
//main
void main()
{
int num; //reserving memory
char dichar; //reserving memory
cout << " This program will create a graphic diamond using your chosen character and number. " << endl;
cout << " Please enter an integer -> " << endl;
cin>> num; //inputs the user's chosen number
cout << " Please enter a character -> " << endl;
cin>> dichar; //inputs user's chosen character
}
I emailed the code to myself but a large part of it got cut off. I'll edit this post tomorrow but I cannot for the life of me figure out how to get this program to work correctly. If anyone has any ideas I'd love to hear them, thanks!
Edited by Positive Tension, 25 September 2008 - 06:12 PM.














