Like Tree1Likes
  • 1 Post By itsme86

search word in array

This is a discussion on search word in array within the C Programming forums, part of the General Programming Boards category; i want search a word in example. ex: search word "name" in this array. "what is your name"...

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    26

    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
    Location
    Oregon, USA
    Posts
    3,171
    Then I say do it. Are you looking for cheerleaders or something?
    CommonTater likes this.
    If you understand what you're doing, you're not learning anything.

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

  4. #4
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,629
    Well, do you know how to do anything in C? If not, start here: C, C++ Programming Tutorials - Cprogramming.com. 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
    Posts
    8,868
    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, 02:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21