Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

More c++ problems

  • 12-05-2011 09: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