Thread: Help on functions

  1. #1
    Registered User
    Join Date
    Jun 2006

    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:

    CPP / C++  Code:
    int num; 
    cout << “Enter a number : “; 
    cin >> 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.

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    For this program, read the first 4 tutorials on the website that hosts these forums. Here
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Registered User
    Join Date
    May 2006
    a suggestion would be to attempt the problem first
    then we can give you some pointers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Void Functions Help
    By bethanne41 in forum C++ Programming
    Replies: 1
    Last Post: 05-09-2005, 05:30 PM
  2. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 11:50 AM
  3. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 03:35 AM
  4. Factory Functions HOWTO
    By GuardianDevil in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2004, 01:41 PM
  5. Shell functions on Win XP
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-19-2004, 05:39 AM