What language are you talking about? On Mon, Apr 18, 2011 at 9:58 PM, Luke Pebody <[email protected]> wrote: > Slightly cleaner STL version at http://www.ideone.com/GJgjy . > > On 18 Apr 2011 08:07, "Sakthi Priyan" <[email protected]> wrote: >> *C++:* >> >> string line = "this is a string", temp; >> >> istringstream liness( line ); >> >> getline( liness, temp, ' ' ); >> >> vector<string> splittedstrings; >> >> while (temp != "") >> { >> >> splittedstrings.push_back (temp); >> >> getline( liness, temp, ' ' ); >> >> } >> >> >> >> On Mon, Apr 18, 2011 at 12:22 PM, Vinay Julme <[email protected]> >> wrote: >> >>> Java: >>> String []str = "this is a string".split(" "); >>> for(int i = str.length-1; i >=0; i--) >>> System.out.println( str[ i ] ); >>> >>> >>> 2011/4/18 João Víctor Rocon Maia <[email protected]> >>> >>>> Python: >>>> tokens = raw_input().split(' ') >>>> for i in tokens: >>>> print i >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups >>>> "google-codejam" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> For more options, visit this group at >>>> http://groups.google.com/group/google-code?hl=en. >>>> >>>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "google-codejam" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/google-code?hl=en. >>> >> >> >> >> -- >> - Thanks and Regards, >> >> *Sakthipriyan* >> >> -- >> You received this message because you are subscribed to the Google Groups >> "google-codejam" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-code?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "google-codejam" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-code?hl=en. >
-- You received this message because you are subscribed to the Google Groups "google-codejam" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-code?hl=en.
