![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C C++
文章平均质量分 74
忠哥-听雨楼
全栈工程师到项目经理
展开
-
打印机的端口设置
<br />// PrintPortTest.cpp : Defines the entry point for the console application.<br />//<br />#include "stdafx.h"<br />#include <windows.h><br />#include <winspool.h><br />#include <iostream><br />using namespace std;<br /><br /><br />#defin原创 2010-09-02 11:24:00 · 1315 阅读 · 0 评论 -
visual studio 6 背景主题
<br />Windows Registry Editor Version 5.00<br />[HKEY_CURRENT_USER/Software/Microsoft/DevStudio/6.0/Format]<br />[HKEY_CURRENT_USER/Software/Microsoft/DevStudio/6.0/Format/Calls Window]<br />"FontFace"="Fixedsys"<br />"FontSize"=dword:0000000B<br />"Text"=原创 2010-11-29 14:34:00 · 957 阅读 · 0 评论 -
检测IP地址有效性
bool checkIp(char *ip){ if (ip == NULL || *ip '9') { return false; } if(strlen(ip) 15) return false; if(strstr(ip, "..") != NULL) return false; int i = 0, count = 0; char arr[5] = {0}; while (*ip != '/0') { printf("char原创 2010-10-23 09:53:00 · 1347 阅读 · 0 评论 -
Ansi、Unicode、UTF8字符串之间的转换和写入文本文件
<br />Ansi、Unicode、UTF8字符串之间的转换和写入文本文件<br />转载请注明出处http://www.cppblog.com/greatws/archive/2008/08/31/60546.html<br />最近有人问我关于这个的问题,就此写一篇blog<br />Ansi字符串我们最熟悉,英文占一个字节,汉字2个字节,以一个/0结尾,常用于txt文本文件<br />Unicode字符串,每个字符(汉字、英文字母)都占2个字节,以2个连续的/0结尾,NT操作系统内核用的是<br /原创 2010-10-26 21:28:00 · 603 阅读 · 0 评论 -
visual studio 添加调试串口
开发中使用printf,cout等函数能够很方便地从console监控程序运行,但是对于GUI程序,虽然程序中使用了printf,cout但是无法查看stdout,stderr的输出 有几种方法可以查看GUI程序的输出(VS)1.使用VC的trace函数代替printf,但是必须include StdAfx.h,输出会显示在ouput窗口中,但是会跟其他的信息混在一起,不是很方便转载 2012-02-24 08:53:27 · 3727 阅读 · 0 评论 -
国外书籍推荐
一、 科学哲学和管理哲学【1】 "程序开发心理学"(The Psychology of Computer Programming : Silver Anniversary Edition)nbsp;【2】 "系统 化思维导论"(An Introduction to Systems Thinking, Silver Anniversary Edition)【3】 "系统设计的一般原理"(转载 2012-02-27 21:24:40 · 2915 阅读 · 0 评论