Appending different field in C++
<pre><code>char  name;
char* id;
int   salary;
char  department[5];
</code></pre>

<p>How I want to append all these datas into a single stream of data? eg: JoeA1250002 where Joe is the name, A12 is the member id, 5000 is the salary and 2 is the department number.</p>

<p>Thank you</p>
