Thread: most efficient method?

  1. #1
    random number generator reRanger's Avatar
    Join Date
    Oct 2004
    Posts
    44

    most efficient method?

    In your opinion, what is the most efficient method for locating a word within a string, then matching it to an initialized value to use in a function such as a cout? Example: word to find in string is "cat". Input to scan: " I cannot find my cat" The word "cat" is found in string and flagged, triggering a function, of say an output (cout)?
    cheers,
    reRanger
    "Nay! But you love the present life!"

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681

  3. #3
    random number generator reRanger's Avatar
    Join Date
    Oct 2004
    Posts
    44
    Thanks much, Lord Thantos
    "Nay! But you love the present life!"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. on method pointers and inheritance
    By BrownB in forum C++ Programming
    Replies: 2
    Last Post: 03-02-2009, 07:50 PM
  2. stuck on display method
    By shintaro in forum C++ Programming
    Replies: 2
    Last Post: 02-01-2009, 05:17 PM
  3. Best communication method to thousand childs?
    By Ironic in forum C Programming
    Replies: 8
    Last Post: 11-08-2008, 12:30 AM
  4. Overriding a method in C
    By DavidDobson in forum C Programming
    Replies: 1
    Last Post: 07-05-2008, 07:51 AM
  5. which method is more efficient?
    By lambs4 in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-28-2001, 12:32 AM