Thread: Blow up a string

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    115

    Blow up a string

    Hello

    I was wondering if it is possible to blow up a string like you can do in php.

    for example

    string: "Hello how are you doing ?"

    So you get a pointer to "Hello", a pointer to "how", a pointer to "are", ....

    I dont think it is possible with a standard function, but if someone can explain what the best way is to do this?

    Thank you in advance

  2. #2
    Registered User
    Join Date
    Feb 2010
    Posts
    115
    Found the answer, damn it was a stupid moment

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    thescratchy found theitchy? Sweet!

  4. #4
    Registered User
    Join Date
    Feb 2010
    Posts
    115
    Everyone knows that thescratchy is the stupid one. The mouse is the smart one! :P

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Although in the non-php world, this is called splitting, not exploding.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OOP Question DB Access Wrapper Classes
    By digioz in forum C# Programming
    Replies: 2
    Last Post: 09-07-2008, 04:30 PM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  3. Something is wrong with this menu...
    By DarkViper in forum Windows Programming
    Replies: 2
    Last Post: 12-14-2002, 11:06 PM
  4. Classes inheretance problem...
    By NANO in forum C++ Programming
    Replies: 12
    Last Post: 12-09-2002, 03:23 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM