How to print superscript 2 in c/c++?
<p>I'm trying to do print a square mark in following code: </p>

<p>code 1:  </p>

<p><code>char* exp = new char[300];<br>
*(exp) = 178// which is 2's extended ascii code<br>
*(exp+1) = '\0'// end of string<br>
printf("%s",exp);</code> </p>

<p>it will print "?" </p>

<hr>

<p>and seems like the little 2 will join the next letter automagically:  </p>

<p>code 2:  </p>

<p><code>char* exp = new char[300];<br>
*(exp) = 178// which is 2's extended ascii code<br>
*(exp+1) = '4'// or anything '5' 'a' '#'...<br>
*(exp+2) = '\0'// end of string<br>
printf("%s",exp);</code>  </p>

<p>it will print a Chinese word or maybe not but really likes.</p>

<hr>

<p>What supposed to do? I just want to print the "little 2".</p>

<p>PS:</p>

<p>in windowsXP console, really thanks for your help.</p>
