Like Tree2Likes
  • 1 Post By Elysia
  • 1 Post By Salem

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

This is a discussion on Recursive function for "vowels" and Recursive function for "sum of array" within the C++ Programming forums, part of the General Programming Boards category; Hello, Will you please write a c++ program which includes all functions, 1) Recursive function for "vowels", that returns number ...

  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

    Name:  recursive.jpg
Views: 513
Size:  24.5 KB

  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
    Posts
    23,012
    Salem likes this.
    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
    32,824
    All your answers are here
    Elkvis likes this.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 06:08 PM
  2. recursive function call to "_main"
    By Evade in forum C Programming
    Replies: 2
    Last Post: 11-02-2010, 02:23 PM
  3. Replies: 3
    Last Post: 03-28-2008, 12:44 AM
  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21