Hi, my program is written in C
Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
char in;
/* Read from Standard input */
do
{
in = fgetc(stdin);
printf ("%c",in);
} while ( in != EOF);
return 0;
}
As you can see, the variable "in" is a char type. How can I convert it to a string ?? I tried
Code:
char* new = (char*)in;
but it seems not to work.
Please help me,
Thanks