📄 intro.c
字号:
#include <stdio.h>
#include <string.h>
void main()
{
char name[25];
char first[25];
char space[] = " ";
int pos;
printf("Type your name, first and last?");
gets(name);
pos = strcspn(name,space);
strncpy(first,name,pos);
first[pos] = '\0';
printf("Pleased to meet you, %s.\n",name);
printf("Or should I call you %s?\n",first);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -