Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

More c++ problems

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