Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Insert a character in a string

Reply
Thread Tools

Insert a character in a string

 
 
madmars madmars is offline
Junior Member
Join Date: Feb 2011
Posts: 2
 
      02-07-2011
Hi!
Lets say I have a string with numbers "123456789". How can I insert commas to the string to make it look like this "123,456,789"?I want to do this in C and i've tried all kind of methods but i did'n manage to do it.
Can anyone help me please?

Marius
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert string with control character in caret notation to realcontrol character string. Bart Vandewoestyne C Programming 8 09-25-2012 12:41 PM
Insert a character in a string madmars General Computer Support 1 02-24-2011 05:00 PM
Insert an hidden character in text string using JavaScript Amol Javascript 15 05-22-2009 12:51 PM
8 bit character string to 16 bit character string Brand Bogard C Programming 8 05-28-2006 05:05 PM
Insert a new line character into a string literal Water Cooler v2 Javascript 4 04-18-2006 12:02 PM



Advertisments