- 博客(4)
- 收藏
- 关注
原创 C语言函数指针数组的使用
函数指针的数组定义: 返回值类型( * 指针变量名[Number]) (形参列表) 简单代码示例: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> void function1(); void function2(); void function3(); void function1(){ puts("Good"); } void function2() { puts("Better"); } void function3() {
2021-10-11 10:44:43 276
原创 C语言字符串函数s_gets()
C语言字符串函数s_gets() 《C Primer Plus》335-336页 char* s_gets(char* st, int n) { char* ret_val; int i = 0; ret_val = fgets(st, n, stdin); if (ret_val) { while (st[i] != '\n' && st[i] != '\0') i++; if (st[i] == '\n') st[i] = '\0'; else
2021-09-23 22:26:07 817
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人