![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
江南烟雨梦
一把吉他走遍天涯,一台Mac闯荡互联网…
展开
-
typedef用法
typedef int AryInt[4]; 定义 AryInt为 含有4个元素的int型数组 类型;typedef int (*PAryInt)[4];定义PAryInt为指向含有4个元素的int型数组的指针类型;/*-----------------------未完成-----------------------*/原创 2010-12-14 15:13:00 · 646 阅读 · 0 评论 -
C/C++读写文件
读取文件/*-------------------读取文件------------------*/void ReadFile(const char *strFileName, string &strCont)//文件名称和用于存储读取内容的str{ char *pBuf = new char[1024]; string str(""); FILE *pFin; pFin= fopen(strName.c_str(), "rb"); if (pFin) { while原创 2011-01-04 14:39:00 · 965 阅读 · 1 评论 -
指针常量和常量指针
越来越厌恶CSDN的盈利模式本文已转移至https://www.cnblogs.com/isky0824/p/12096634.html原创 2011-01-11 14:00:00 · 634 阅读 · 0 评论 -
C++的new和delete
越来越厌恶CSDN的盈利模式本文已转移至https://www.cnblogs.com/isky0824/p/12096612.html原创 2011-01-13 16:55:00 · 551 阅读 · 0 评论 -
指向数组的指针
/*-------------------------一维数组------------------------*/int Ary[3] = {3, 2, 1};int *pInt = Ary; //指向int变量的指针,Ary的值代表第一个元素的地址,此时*pIn=3int (*pIntAry)[3] = &Ary; //指向int数组的指针int a1 = pI原创 2010-12-14 17:04:00 · 637 阅读 · 0 评论 -
C/C++产生随机数
越来越厌恶CSDN的盈利模式本文已转移至https://www.cnblogs.com/isky0824/p/12096575.html原创 2010-11-15 13:34:00 · 286112 阅读 · 16 评论 -
Qt无边框窗口的移动、拉伸边框、鼠标滚轮缩放大小
越来越厌恶CSDN的盈利模式本文已转移至https://www.cnblogs.com/isky0824/p/12096415.html原创 2016-10-18 17:04:00 · 4927 阅读 · 0 评论