Search Results

Search: Posts Made By: dhanamurthy
Forum: Programming 05-19-2008
16,205
Posted By dhanamurthy
equivalent of sprintf in C++
Hi
My requirement is to convert the following to C++

char buffer[90];
sprintf(buffer,"%s %-50s %6s %-6d %s\n",a.substr(0,5),a.substr(10,20))

Since the buffer is of varying length, i cannot...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 06:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy