设置 | 登录 | 注册

【程序】根据scanf的返回值判定输入的有效性

【示例程序】
#include <stdio.h>
void test(char *str)
{
    int d, n, r;...
巨大八爪鱼 6-13 巨大八爪鱼 (点击/回复: 1192/3)

【表格】log2对数表

log2(1)=0.000000
log2(2)=1.000000
log2(3)=1.584963
log2(4)=2.000000
log2(5)=2.321928...
巨大八爪鱼 5-23 巨大八爪鱼 (点击/回复: 1346/4)

【程序】time.h中函数的使用

#include <stdio.h>
#include <string.h>
#include <time.h>
void display(str...
巨大八爪鱼 5-21 巨大八爪鱼 (点击/回复: 1134/1)

【方法】C语言用库函数获取指定日期是星期几

【代码】
#include <stdio.h>
#include <string.h> // memset函数所在头文件
#include <time...
巨大八爪鱼 5-21 巨大八爪鱼 (点击/回复: 1217/1)

返回函数指针的函数写法

【函数定义】
int abc(char *s)
{
    puts(s);
    return 0;
}...
巨大八爪鱼 5-7 巨大八爪鱼 (点击/回复: 1258/1)

【程序】C语言用字典排序法列举一个数组的所有全排

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void swap(int...
巨大八爪鱼 3-18 巨大八爪鱼 (点击/回复: 1296/5)

【方法】在Linux C程序中嵌入汇编语言

首先,编写一个简单的C程序:
#include <stdio.h>
void fun(int *num, int *num2);
int main()
{...
巨大八爪鱼 2-26 巨大八爪鱼 (点击/回复: 2154/17)

Linux系统下编译libxml2程序的方法

Makefile:
# 连接
test: test.o
    gcc test.o -o test -lxml2
# 编译
test.o:...
巨大八爪鱼 2-20 巨大八爪鱼 (点击/回复: 1422/3)

【C程序】Linux下直接用套接字发送HTTP请求并获取HTML内容

【C程序文件:client.c】
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib...
巨大八爪鱼 2-17 巨大八爪鱼 (点击/回复: 5949/9)

【程式】選擇排序法C語言程式

#include <stdio.h>
#define COMPARE <
int main()
{
    int nums[]...
巨大八爪鱼 1-9 巨大八爪鱼 (点击/回复: 1093/0)

【图解】插入排序法的原理 [图片]

巨大八爪鱼 1-9 巨大八爪鱼 (点击/回复: 1202/3)

【原创函数】C语言字符串的连接,插入和替换函数

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *str_crea...
巨大八爪鱼 12-19 巨大八爪鱼 (点击/回复: 1244/5)

今天,我把C语言课本上第211页的那个程序改成了Windows窗口程序的版本 [图片]

运行结果:
巨大八爪鱼 12-19 巨大八爪鱼 (点击/回复: 2670/21)

我发现,上完学校的C语言课程之后,我编写C语言程序确实要熟练很多了

以前虽然会写C语言程序,但是很多关键函数没有记住,用的时候需要频繁地去网上查函数用法。
巨大八爪鱼 12-12 巨大八爪鱼 (点击/回复: 1146/2)

【程式】C語言判斷User-Agent是否為手機設備的程式

#include <ctype.h>
#include <stdio.h>
#include <string.h>
char *device_li...
巨大八爪鱼 12-12 巨大八爪鱼 (点击/回复: 1435/4)
本吧共有主题数50个,帖子数252篇,会员1位。

内容转换:

发表帖子
标题:
内容:
用户名: 您目前是匿名发表。
验证码:
看不清?换一张