
C/C++基础学习研究
和海风
难得所爱,忠之无悔
展开
-
C/C++数据类型
c---------------------------------------------------------------------------------1、标识符 由英文字母、数字和下划线组成(不允许以数字开头)同C++ 3、命名规范2、保留字(Reseve Word)又称关键字(KeyWord)3、数据类型 1) Char 使用用8位(1B)来存放数据(原创 2009-04-18 10:00:00 · 521 阅读 · 0 评论 -
C控件台模拟用户登录系统
//例:用户登录系统// UserLogin.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include int main(int argc, char* argv[]){ //变量声明 char Y原创 2009-04-18 17:35:00 · 420 阅读 · 0 评论 -
C变量输出/输入练习
// 20090418.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include int main(int argc, char* argv[]){ //输出“” printf("练习输出双引号:/n"); printf("C# 读做 /"原创 2009-04-18 17:32:00 · 740 阅读 · 0 评论 -
Hello Windows
// win32 Application#include// hInstance 应用 程序当前句柄// hPrevInstance 应用程序前一个句柄// lpCmdLine 启动程序时的命令参数// nShowCmd 程序启动时的显示方式int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, L原创 2009-05-05 16:44:00 · 406 阅读 · 0 评论 -
VC6.0 GDI 引用报错
c:/vc/hehfpictool/gdiplus//gdiplusinit.h(39) : error C2065: ULONG_PTR : undeclared identifierc:/vc/hehfpictool/gdiplus//gdiplusinit.h(39) : error C2065: token : undeclared identifierc:/vc/hehfpict原创 2009-05-05 09:18:00 · 1648 阅读 · 0 评论 -
CheckBox使用
// WM_ERASEBKGND消息的响应函数,先将"Class Info"标签页的Message filter修改为Windows// 才能在MESSAGES MAPS页中看到此消息BOOL CCheckBoxDemoDlg::OnEraseBkgnd(CDC* pDC) { // TODO: Add your message handler code here and/or c原创 2009-05-05 18:18:00 · 366 阅读 · 0 评论 -
C DLL模板
//.h#ifndef _DLLMAIN_H#define _DLLMAIN_H#ifdef _EXPORTDLL#define _LIBAPI __declspec(dllexport)#else#define _LIBAPI __declspec(dllimport)#endif/* Export following functions */_LIBAPI void C原创 2012-03-26 12:16:23 · 419 阅读 · 0 评论