📄 moresto.c
字号:
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
void main()
{
char input[10];
struct stuff
{
char c;
int n;
} mystuff, hisstuff;
/* Here's someone else's info */
hisstuff.c = 'Y';
hisstuff.n = 199;
puts("Your Own Stuff");
printf("Enter your favorite letter: ");
mystuff.c = getche();
putchar('\n');
printf("Enter your favorite number: ");
mystuff.n = atoi(gets(input));
printf("Okay. Your favorite letter is %c\n",mystuff.c);
printf("And your favorite number is %i.\n",mystuff.n);
printf("His favorite letter is %c\n",hisstuff.c);
printf("And his favorite number is %i.\n",hisstuff.n);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -