LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-05-2008, 05:35 PM   #1
raskol
Member
 
Registered: Mar 2008
Posts: 51

Rep: Reputation: 15
get first char of a string?


using python.

if i have a string elstringo and want to get the 1st symbol/char/number/whatever and have it removed from the string is there a specific function for this?

btw is a char a string with the length 1 so to speak?
 
Old 04-05-2008, 05:59 PM   #2
raskol
Member
 
Registered: Mar 2008
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by raskol View Post
using python.

if i have a string elstringo and want to get the 1st symbol/char/number/whatever and have it removed from the string is there a specific function for this?

btw is a char a string with the length 1 so to speak?
im talking about sutff like this:

http://www.cppreference.com/cppstring/index.html


i google python string and get nothing really useful.
 
Old 04-05-2008, 06:11 PM   #3
raskol
Member
 
Registered: Mar 2008
Posts: 51

Original Poster
Rep: Reputation: 15
http://eric_rollins.home.mindspring....mming/ch7.html

there we go found it myself
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[] string.spits(char) in C++ manolakis Programming 2 09-24-2007 09:05 AM
Converting string to char xfceslacker Programming 2 10-20-2006 05:15 PM
How to convert string to char? twirl Programming 27 10-13-2005 07:11 AM
prepend char to a string schneidz Programming 6 06-01-2005 08:53 AM
Convert C++ string to C char* nyk Programming 3 06-17-2004 08:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration