Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

More c++ problems

  • 12-05-2011 10:13AM
    #1
    Registered Users, Registered Users 2 Posts: 578 ✭✭✭


    Hey guys, thanks foor the help in the other thread really helped me out alot. Here is some more problems I am stuck on. Thanks.

    Code the following functions in C++ that determine whether a given string, representing an input
    line, is blank.
    1. f1: based on iteration across the string using the indexing operator
    2. f2: based on iteration across the string using an iterator
    3. f3: based on the use of a predicate and an appropriate generic library function to perform the necessary iteration. Explain why the predicate is necessary.
    4. f4: based on the use of a functor (function object) and an appropriate standard library function to perform the necessary iteration.


Comments

  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Let's see your work before we give any hints about it. You won't learn anything by us doing your homework for you.


  • Registered Users, Registered Users 2 Posts: 578 ✭✭✭neilk32


    It was a question off an exam paper, exam is over now anyway but thanks.


Advertisement