Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. Sample codes of SEARCH function in VC++..pls

Sample codes of SEARCH function in VC++..pls

Scheduled Pinned Locked Moved Article Writing
c++algorithmshelp
2 Posts 2 Posters 6 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I'm urgently searching for the sample codes of SEARCH function written in VC++.. hope that someone can help me on this....thanks..

    A 1 Reply Last reply
    0
    • L Lost User

      I'm urgently searching for the sample codes of SEARCH function written in VC++.. hope that someone can help me on this....thanks..

      A Offline
      A Offline
      Andreas
      wrote on last edited by
      #2

      ================== The original message was: I'm urgently searching for the sample codes of SEARCH function written in VC++.. hope that someone can help me on this....thanks..
      Take a look at strstr() char hello[1234]; strcpy(hello,"My name is Andreas and i am a programmer"); char *pnt; pnt=strstr(hello,"Andreas"); int len=pnt-hello; char space[100]; ::MessageBox(0,_itoa(len,space,10),"Found at",0);

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups