- 博客(10)
- 资源 (1)
- 收藏
- 关注
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
转载 C++ override及虚函数的讲解
胡马依北风随笔 - 46 文章 - 0 评论 - 11 博客园 首页 新随笔 联系 管理 订阅 C++11 之 override1 公有继承 公有继承包含两部分:一是 "接口" (interface),二是 "实现" (implementation) 基类 Shape 中
2017-11-21 11:23:48
2770
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 D3D 基础彩色矩形的绘制
#include #include #pragma comment(lib, "D3D9.lib") const TCHAR *kClassName = "Rectangle_D3D"; IDirect3D9 *d3d9 = nullptr; IDirect3DDevice9 *device9 = nullptr; IDirect3DVert
2017-10-29 23:13:52
1646
1
转载 JPEG图像解压缩操作
解压缩操作过程1. 为JPEG对象分配空间并初始化2. 指定解压缩数据源3. 获取文件信息4. 为解压缩设定参数,包括图像大小,颜色空间5. 开始解压缩6. 取出数据7. 解压缩完毕8. 释放
2017-11-21 17:57:28
1600
转载 先码一个贪吃蛇小游戏,有空在改进
#include#include#include#include#includeusing namespace std;#pragma warning(disable: 4996#define N 25void gotoxy(int x, int y)//位置函数{COORD pos;pos.X = 2 * x;pos.Y = y;
2017-11-04 17:39:50
353
原创 快速排序,二分法排序,插入排序算法
#include #include #includeusing namespace std;/*int a[7];//定义全局变量,这两个变量需要在子函数中使用 void quicksort(int left, int right){int i, j, t, temp;if (left>right)return;temp = a[left]; //temp中
2017-10-29 23:08:17
446
原创 输入两个字符串的比对,输出从哪一个元素匹配
#include #include#includeusing namespace std;int main(){char s1[50],s2[50];int k = 0;cout cin >> s1 >> s2;int i = 0, j;while (i {j = 0;while (s1[i] == s2[j] && j
2017-10-29 23:05:58
537
原创 单向指针链表的使用
//list.h#pragma oncestruct student{int i;struct student *pnext;};typedef struct student STU;class list{STU*phead;int count;public:list();STU*create();void print();void
2017-10-29 22:57:20
332
原创 函数指针及从文件读取的列子
#include#include #include#includeusing namespace std;struct student{int i;char sname[20];float f;};struct student array[20] = {0};void sortbyname(student a[], int n)
2017-10-29 22:54:51
310
原创 输入两个数求之间的平方数
#include #include//#include#includeusing namespace std;void PF(int a, int b){ int c = a>b?b:a;int d = a>b?a:b;for (int i = c; i {for(int j = 1; j {if (j*j == i){c
2017-10-29 22:49:00
1145
原创 堆内简单申请指定字节数的int型变量的空间并且返回地址
#include #include #includeusing namespace std;bool mall(int size,int *p){if (sizecout p = (int*)malloc(sizeof(int)*size);if (p != 0)cout elsecout }void main(){
2017-10-29 19:12:30
413
adb1.0.32.rar
2020-01-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人