Questions tagged [string-building]
19 questions
0
votes
1 answer
How to "split" Map values among different JSON arrays?
I have a multiMap with following values:
a=1,b=2,c=3
I want to create a JSON out of it in following format:
[{"data":["a","b","c"],"StaticData":"HELLO"},{"Categories":[1,2,3]}]
I am trying to use String buffer but am completely lost how to put…

user2093576
- 3,082
- 7
- 32
- 43
0
votes
2 answers
C - Building my string before writing it
I'm quite new to C and implementing a function that writes a sparse matrix to a file.
I'm wondering what the correct way is in C to build a string before I write it to the file.
I'm currently calling write() a lot which results in poor performances.…

francoisr
- 4,407
- 1
- 28
- 48
0
votes
2 answers
How to convert a double value to a string in order to output it to a window title bar under Win32
Possible Duplicate:
How do I convert a double into a string in C++?
Convert double to string C++?
Total C++ and Win32 noob here playing around in Visual Studio 2012 land, so bear with me as I sometimes bite off more than I can chew :)
I have a…

Darren Evans
- 665
- 10
- 17
-1
votes
1 answer
Should I use StringBuilder?
I have a code (C# .Net 3.5) that looks like that:
string s1, s2;
for (i=0; i

yossi
- 37
- 6