Article View: alt.comp.lang.learn.c-c++
Article #123Re: convert *char to string
From: Maciej Arciuch
Date: Fri, 14 Jan 2000 00:00
Date: Fri, 14 Jan 2000 00:00
27 lines
1693 bytes
1693 bytes
hi, i am a beginner, but i think i can help you. create a pointer: char *name = "string_here" now you can access each character using name[i], where i is number of char you want read/change. macar Jarne Cook wrote: > > Can anyone tell me how to convert a char* to a string or get access to each > charater one by one. > > I am trying to get char* argv[1] ( the first argument) so that I can > manipulate each character. Can someone PLEEEZE tell me if there is a > standard c++ call to do that. > ---------------------------------------------------------------------------- > ---- > Jarne Cook Public Email: jarne_cook@hotmail.com > Uni Email : j2.cook@student.qut.edu.au > ICQ # : 27100420 > ---------------------------------------------------------------------------- > ----
Technical Details
Message-ID:
<387F81D6.43AE3CAF@gry.koti.com.pl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<387ed1c7@grissom>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114592,9c3f098f257151c0 X-Google-Attributes: gid114592,public X-Google-Thread: 109fba,9c3f098f257151c0 X-Google-Attributes: gid109fba,public X-Google-Thread: 10d4ba,9c3f098f257151c0 X-Google-Attributes: gid10d4ba,public From: Maciej Arciuch <macar@gry.koti.com.pl> Subject: Re: convert *char to string Date: 2000/01/14 Message-ID: <387F81D6.43AE3CAF@gry.koti.com.pl> X-Deja-AN: 572703540 Content-Transfer-Encoding: 7bit References: <387ed1c7@grissom> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@tpsa.pl X-Trace: news.tpnet.pl 947880674 212.244.128.47 (Fri, 14 Jan 2000 21:11:14 MET) Organization: TPNET - http://www.tpnet.pl MIME-Version: 1.0 NNTP-Posting-Date: Fri, 14 Jan 2000 21:11:14 MET Newsgroups: alt.comp.lang.learn.c-c++,att.lang.c++,comp.lang.c++