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

More c++ problems

Options
  • 12-05-2011 10:13am
    #1
    Registered Users 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 Posts: 578 ✭✭✭neilk32


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


Advertisement