home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:16455 comp.lang.c++:16216
- Newsgroups: comp.lang.c,comp.lang.c++
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!magnus.acs.ohio-state.edu!yhtao
- From: yhtao@magnus.acs.ohio-state.edu (Yu-Hui Tao)
- Subject: Converting an int or a float into a string*???
- Message-ID: <1992Nov13.135058.5330@magnus.acs.ohio-state.edu>
- Sender: news@magnus.acs.ohio-state.edu
- Nntp-Posting-Host: top.magnus.acs.ohio-state.edu
- Organization: The Ohio State University
- Date: Fri, 13 Nov 1992 13:50:58 GMT
- Lines: 15
-
- Hi, netters:
-
- I have an array of numerical numbers of type either int or float.
- What I want is to convert this array into of type char*. For example,
- converting num[0]=1.02 into num[0]="1.02".
-
- How do I do this in C and C++? Hope this is not too trival!
-
-
- Thanks!
-
- Yu-Hui Tao
- ISE, OSU
- tao@CSEL.eng.ohio-state.edu
- ===========================
-