Posted by Gazza on 2000-05-25
hi all,i have a problem whereas I have a number of strings (5) that i wish to concatenate together each seperated by a comma , and beginning with a comma, I have done it as so char str[75]; strcat(str,comma); strcat(str,s1); strcat(str,comma); ... strcat(str,s5); is it possible to make this a bit cleaner,i hav thought of a loop,but hav no idea how to implement it,any suggestions appreciated Cheers Gazza
Previous post | Next post | Timeline | Home