praisel.c
This commit is contained in:
parent
d2a6e99010
commit
4776aee4f3
14
c04_string/praisel.c
Normal file
14
c04_string/praisel.c
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/* praisel.c - 使用不同类型的字符串 */
|
||||||
|
#include <stdio.h>
|
||||||
|
#define PRAISE "You are an extraordinary being."
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
char name[40];
|
||||||
|
|
||||||
|
printf("What's your name?");
|
||||||
|
scanf("%s", name);
|
||||||
|
printf("Hello, %s. %s\n", name, PRAISE);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user