Thread: search word in array

  1. #1
    Registered User
    Join Date
    May 2011

    search word in array

    i want search a word in example. ex: search word "name" in this array. "what is your name"
    Last edited by captain_turkiye; 12-05-2011 at 12:29 PM.

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Oregon, USA
    Then I say do it. Are you looking for cheerleaders or something?
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    May 2011
    but i don't know how to do that.

  4. #4
    Registered User
    Join Date
    Nov 2010
    Long Beach, CA
    Well, do you know how to do anything in C? If not, start here: C, C++ Programming Tutorials - Google some more tutorials, and find a good book or ten. Read, study, and work the examples.

    Then, take your best shot at solving this. Post your attempt with specific problems/questions you have, and we will help you out.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Look up strstr(). It searches a string (a char array), and reports the position of any substring you want it to look for.

    You need to include string.h in your list of include files.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Word Search Using C
    By CProgramming11 in forum C Programming
    Replies: 15
    Last Post: 11-07-2010, 11:58 PM
  2. Word Search -- Recursively
    By tofugirl in forum C Programming
    Replies: 9
    Last Post: 11-20-2005, 06:36 PM
  3. File search by word in C
    By muk_luk in forum C Programming
    Replies: 10
    Last Post: 03-25-2004, 10:01 AM
  4. Word Search
    By _Cl0wn_ in forum C Programming
    Replies: 2
    Last Post: 01-29-2003, 08:59 AM
  5. open file, search of word, replace word with another
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 06-05-2002, 01:16 PM