pch=strstr?

This is a discussion on pch=strstr? within the C++ Programming forums, part of the General Programming Boards category; Good Day: I have included pch=strstr (input1, 'good'); in my code, but I am receiving erorrs O' plenty; the code ...

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

    pch=strstr?

    Good Day:
    I have included pch=strstr (input1, 'good'); in my code, but I am receiving erorrs O' plenty; the code is supossed to detect a selected word ('good', for example) from a string and return it, I would think, to be stored in an array for use as a trigger in a following, Boolean function. Do I need to include a pointer such as, pch * strstr (input1, 'good') the variable being char*str[]="good"; ? I am not sure, but I know something is incorrect. Any suggestions would be greatly appreciated ...
    thank-you,
    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
    1) Post the actual code
    2) Post the actual errors

Popular pages Recent additions subscribe to a feed

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