随笔分类 -  C++

主要是VC++6.0应用随笔
摘要:1第一种位操作方法#ifndef _Use_AdvancedPortCommand# define _Use_AdvancedPortCommand# define PAInUse 0xff# define PBInUse 0xff# define PCInUse 0xff# define PDInUse 0xff# define PEInUse 0x00# define PFInUse 0x00# define PGInUse 0x00# define PHInUse 0x00# define PIInUse 0x00# define PJInUse 0x00# define PKInUse 阅读全文
posted @ 2012-12-16 15:14 璇星 阅读(407) 评论(0) 推荐(1)
摘要:作者:gfree.wind@gmail.com博客:blog.focus-linux.net linuxfocus.blog.chinaunix.net本文的copyleft归gfree.wind@gmail.com所有,使用GPL发布,可以自由拷贝,转载。但转载请保持文档的完整性,注明原作者及原链接,严禁用于任何商业用途。======================================================================================================其实浮点数使用时的注意事项,是一个老生常谈的问题,我本来不想写这个东. 阅读全文
posted @ 2012-10-05 08:55 璇星 阅读(746) 评论(0) 推荐(0)
摘要:本文的copyleft归gfree.wind@gmail.com所有,使用GPL发布,可以自由拷贝,转载。但转载请保持文档的完整性,注明原作者及原链接,严禁用于任何商业用途。作者:gfree.wind@gmail.com博客:linuxfocus.blog.chinaunix.net (下面所有的测试为Linux平台,gcc编译器)#include <stdio.h>#include <stdlib.h>int main (){ int a = 0x80000000; unsigned int b = 0x80000000; printf("a right s 阅读全文
posted @ 2012-10-05 08:30 璇星 阅读(2998) 评论(0) 推荐(0)
摘要:int isalpha(int ch) 若ch是字母('A'-'Z','a'-'z')返回非0值,否则返回0 int isalnum(int ch) 若ch是字母('A'-'Z','a'-'z')或数字('0'-'9') 返回非0值,否则返回0 int isascii(int ch) 若ch是字符(ASCII码中的0-127)返回非0值,否则返回0 int iscntrl(int ch) 若ch是作废字符(0x7F)或普通控制字符(0x 阅读全文
posted @ 2012-08-08 19:29 璇星 阅读(3318) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2012-06-15 21:59 璇星
摘要:/*串口基础类库(WIN32) ver 0.1 编译器 : BC++ 5; C++ BUILDER 4, 5, 6, X; VC++ 5, 6; VC.NET; GCC;class _base_com : 虚基类 基本串口接口;class _sync_com : 同步I/O 串口类;class _asyn_com : 异步I/O 串口类;class _thread_com : 异步I/O 辅助读监视线程 可转发窗口消息 串口类(可继承虚函数on_receive用于读操作);class _com : _thread_com 同名copyright(c) 2004.8... 阅读全文
posted @ 2012-06-14 20:15 璇星 阅读(2674) 评论(0) 推荐(0)
摘要:/*** FILENAME CSerialPort.h**** PURPOSE This class can read, write and watch one serial port.** It sends messages to its owner when something happends on the port** The class creates a thread for reading and writing so the... 阅读全文
posted @ 2012-06-12 21:01 璇星 阅读(8121) 评论(2) 推荐(3)
摘要: 阅读全文
posted @ 2012-02-22 23:09 璇星 阅读(974) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-02-18 14:38 璇星 阅读(9254) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-02-16 22:28 璇星 阅读(597) 评论(0) 推荐(0)