📄 length.c
字号:
/*-*//******************************************************** * Name: * * length * * * * Purpose: * * Computes the length of a line * * * * Usage: * * Run it, type in a line, get the length. * * * * Limitations * * Line must be 99 characters long or less * ********************************************************//*+*/#include <string.h>#include <stdio.h>char line[100]; /* Line we are looking at */int main(){ printf("Enter a line: "); fgets(line, sizeof(line), stdin); printf("The length of the line is: %d\n", strlen(line)); return (0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -