• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
4℃空间
众人笑我痴 我笑他人看不懂
   首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  C++

字符串回文算法

摘要:在一个QQ群里看到一位朋友发这个题目:假设称正向读和反向读都相同的字符序列为“回文”,例如,“abba”和“abcba”是回文,“abcde”和“ababab”则不是回文。试设计一个算法判别读入的一个以“@”为结束符的字符序列是否是回文[代码]#inclu... 阅读全文
posted @ 2010-10-19 23:26 magic_evan 阅读(4881) 评论(0) 推荐(0)
【转】C++Builder中开发Activex

摘要:1.创建自己的ActiveX控件C++Buider开发ActiveX的功能非常强,但是这方面的资料却比较少,本人经过摸索终于搞定了创建Web方式Activex的基本方法⑴打开BCB6,新建一个Activex工程,选择时注意选择ActiveX标签页的Active Form⑵在弹出的对话框中设置ActiveX Name为 ActFrm,后面的实现单元和工程名都会自动更改]... 阅读全文
posted @ 2010-10-14 17:18 magic_evan 阅读(1925) 评论(0) 推荐(0)
【转】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 阅读(284) 评论(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 阅读(380) 评论(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 阅读(267) 评论(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)
C++ Builder 全部API函数列表

摘要:1.API之网络函数WNetAddConnection创建同一个网络资源的永久性连接WNetAddConnection2创建同一个网络资源的连接WNetAddConnection3创建同一个网络资源的连接WNetCancelConnection结束一个网络连接WNetCancelConnection2结束一个网络连接WNetCloseEnum结束一次枚举操作WNetConnectionDialog... 阅读全文
posted @ 2010-10-08 21:53 magic_evan 阅读(967) 评论(0) 推荐(0)

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3