Thread: Recursive function for "vowels" and Recursive function for "sum of array"

  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    1

    Recursive function for "vowels" and Recursive function for "sum of array"

    Hello,


    Will you please write a c++ program which includes all functions,


    1) Recursive function for "vowels", that returns number of vowels in string.


    2) Recursive function for "sum of array"


    3) Program that uses a recursive function to check whether a string is Palindrome


    4) Program that uses recursive function to print string backward


    5) write a Recursive function for "backword number"(i.e: reversedigits, that takes an integer as a parameter and returns the number with digits)


    6) Recursive function for "power"


    Please find the attached screenshot if you have any doubts.


    Thank you so much

    Recursive function for "vowels" and Recursive function for "sum of array"-recursive-jpg

  2. #2
    Stoned Witch Barney McGrew's Avatar
    Join Date
    Oct 2012
    Location
    astaylea
    Posts
    420
    4 and 6 are simple as ........, so start by doing those. Then proceed to implement fold/reduce in a generic way that works with arrays and you can easily knock off 1 and 2. Then, after you've done those four, you should be able to figure out 3 and 5 without much trouble.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    All your answers are here
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. "light" recursive function explodes stack
    By Babouche in forum C++ Programming
    Replies: 7
    Last Post: 04-29-2011, 05:08 PM
  2. recursive function call to "_main"
    By Evade in forum C Programming
    Replies: 2
    Last Post: 11-02-2010, 01:23 PM
  3. Replies: 3
    Last Post: 03-27-2008, 11:44 PM
  4. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  5. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM