Well first of all its unnecessary to put void as an argument in main. If the user fails to input a number between 1 and 10 a second time it is accepted input. You should change that to something like this
Code:
int number = 0;
while(!(number > 1 && number < 10))
{
cout <<"Please Input A Number Between 1 and 10";
cin >> number;
system("cls"); // YAY FOR UNRELIABLE RESOURCE HEAVY CLEARSCREEN //
}
Then i would stop and look at my next block of code and see that i declared a local variable with the same name as a variable in a outer scope. Defaultly the one you created is the one used. So change that to something like this. Also the way you had it if the user inputed lets say 5 it would go to that function and output something like this.
Code:
for(count = 0;count < number;count += 2) //Dunno why count was one//
{
cout <<"*" << endl;
}
Then
for(;count > 0; count -= 2)
{
cout <<"*"<<endl;
}
but really i dont know what your trying to do :/