-
Help on functions
Any can give me the code for this programme? i tried hard and i just dont understand the function usage but i definately understand the problem of this program.
Write a program which accepts an integer from the keyboard and
prints out the corresponding number of the character "*". For
example, if the integer 5 is entered, five "*" will be printed out
by making a call to a function printstars().
Program outline:
Code:
CPP / C++ Code:
main()
{
int num;
cout << “Enter a number : “;
cin >> num;
printstars(num);
}
and also anyone know any good site that gives good and clear explanation on Function(Basic) to above. i just cant understand the Fuction chapter in my book.
-
For this program, read the first 4 tutorials on the website that hosts these forums. Here
-
a suggestion would be to attempt the problem first
then we can give you some pointers