• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
4℃空间
众人笑我痴 我笑他人看不懂
   首页    新随笔    联系   管理    订阅  订阅
2010年10月11日
【转】sscanf和sprintf是scanf和printf家族的一对成员
摘要: sscanf和sprintf是scanf和printf家族的一对成员,用于处理和分析字符串非常强大得两个函数头文件 stdio.h原型int sscanf(const char *buffer,const char *format,...);int sprintf(char *buffer,const char *format,...);功能:类似于scanf和printf 但把字符串*buffe... 阅读全文
posted @ 2010-10-11 22:48 magic_evan 阅读(344) 评论(0) 推荐(0)
经典冒泡排序
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//冒泡排序方法声明voidSort(intarg[],intlen);intmain(intargc,char*argv[]){intargs[]={2,1,5,4,6,8,3,7};//获取数组的... 阅读全文
posted @ 2010-10-11 01:02 magic_evan 阅读(282) 评论(2) 推荐(0)
高斯消去法
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include"stdio.h"#include"math.h"#include"stdlib.h"typedefdoublearrtype;//高斯消去法voidGuassScale(arrtyp... 阅读全文
posted @ 2010-10-11 00:14 magic_evan 阅读(379) 评论(0) 推荐(1)
如何求出三角形的面积
摘要: 1、验证输出参数是否符合要求2、求出三角形面积AreaMath.h Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include <math.h>//验证输入的值是否符合要求boolValidateInputValue(doublex,... 阅读全文
posted @ 2010-10-11 00:12 magic_evan 阅读(266) 评论(0) 推荐(0)
如何编写参数个数不定函数
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<stdio.h>//重要引用#include<stdarg.h>voidsum(char*msg,...);intmain(intargc,char*argv... 阅读全文
posted @ 2010-10-11 00:01 magic_evan 阅读(299) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3