#include <stdio.h>
#include <stdlib.h>
int main()
{
system("color 2f");
char *msg = malloc(sizeof(char));
gets(msg);
printf("%s",&msg);
gets(name);
puts(name);
return 0;
}
#include <stdlib.h>
int main()
{
system("color 2f");
char *msg = malloc(sizeof(char));
gets(msg);
printf("%s",&msg);
// you can also use array of char
char name[2];gets(name);
puts(name);
return 0;
}
No comments:
Post a Comment