当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: intInit_Comm(){CHARport_name[10
 

 

    摘要: #include "stdafx.h"#include "stdio.h"#include "string.h"#include "mstcpip.h"#include "winsock2.h"#pragma comment(lib,"ws2_32.lib")#define s......
 ·^ & || >> << ~ 基础 (大家改正)    »显示摘要«
    摘要: a ^ b a|| b a & b a b 1 1 0 1 0 0 1 1 1 10 0 0 0 01 1 0 0 1101000001~101000001 结果 010111110正数符号位是0,负数符号位是1左移一位 可以等价 x2右移一位 可以等价 /2正数来说,最高位是0,其余各位代表数值本身的二进制数;      对于负数来说,把该数的绝对值的补码按位取反,然后对整个数+1,取......


vc6.0利用API实现串口通讯

int init_comm(){ char port_name[10]; dcb  dcb; bool status; dword error_number;  status = ok; memset(port_name,0,sizeof(port_name)); memcpy(port_name,"com1",4);

 if(handle_com == invalid_handle_value)  return(comm_error); 【程序编程相关:VC用ADO访问数据库全攻略

 handle_com = createfile(port_name,    generic_read | generic_write,    0,    null,    open_existing,    null,    null); 【推荐阅读:Using ADO from C++

 dcb.baudrate = 9600; dcb.bytesize = 8; dcb.parity  = noparity; dcb.stopbits = onestopbit; dcb.foutxctsflow = 0; dcb.frtscontrol = rts_control_enable ; 【扩展信息:VC中利用ADO共同实现数据库的操作

 if(!getcommstate(handle_com,&dcb))  return(comm_error);


...   下一页
    摘要:引言  融合(blending)、雾化(fog)与反走样(antialiasing)是opengl中的三种特殊效果处理方法。融合提供了一种透明或半透明显示的技术;雾化处理则根据物体距离视点的远近对其进行恰当的模糊处理;反走样则可减少在绘制离散化的图形时所产生的误差走样。  实现融合特效  融合可将两种颜色的r、g、b分量按一定比例混在一起形成一种新的颜色,rgba颜色模式中的a即表示alpha值,......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE