Join us at IRC!
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill
Wednesday, May 23, 2012
Navigation
Members Online
Total Online: 32
Web Spiders: 15
Guests Online: 31
Members Online: 1

Registered Members: 70170
Newest Member: bahmx
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

C++ splitting a string?

xJorDyx
Member

Posts: 40
Location:
Joined: 15.07.05
Rank:
Active User
Posted on 10-04-06 21:16
ok i can split a string with a delimiter fine but i cant just get the individual chars without using a delimiter:( any ideas?
Author

RE: C++ splitting a string?

BobbyB
Member



Posts: 260
Location: England
Joined: 16.03.05
Rank:
Monster
Posted on 13-04-06 13:24
Well, if you just want to retrieve individual characters, how about using the at() method.

if a string variable 'str' is the string you want to retrieve a character from, and an integer variable 'i' is the location of the character in the string, and a char variable 'a' is what you wish to load it on to, then you could just use

a = str.at(i);


Author

RE: C++ splitting a string?

xJorDyx
Member

Posts: 40
Location:
Joined: 15.07.05
Rank:
Active User
Posted on 14-04-06 22:41
i love you mate!! perfect:D
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.