- 博客(6)
- 收藏
- 关注
原创 使用标准库:文本查询程序
最近打算学习c++11 中智能指针的使用,写了一个文本查询程序。功能有读入一个“.txt”文件,在其中找单词“london”,具体格式见图: //TextQuery.cpp #include "TextQuery.h" #include<iostream> #include<fstream> using namespace std; void runQueries(s...
2018-10-16 21:13:48
198
原创 合并两个有序链表,合并之后任然是有序的并输出。
合并链表相信大家都特别熟悉,但是如果要加上一定的输出格式,难度就会有所增加,不说了,见代码。 #include<iostream> using namespace std; struct Node{ Node *next; int data; }; void nodeprint(Node *head){ Node *node=head; while...
2018-10-12 15:21:07
244
原创 LEETCODE 283. Move Zeroes 三种解体方案
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Example: Input: [0,1,0,3,12] Output: [1,3,12,0,0] Note: You must do this in-place without making a copy of the arr
2018-08-13 15:18:22
145
原创 leetcode 刷题
题目一:leetcode200Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically....
2018-07-10 15:36:58
512
原创 opengl 实现人体骨骼点的绘制
最近,想实现怎么利用opengl将Kinect扫到人体骨骼坐标点在opengl 中绘制出来,第一个想到的难点就是,在Kinect中的是世界坐标点,我怎么转换到opengl中的屏幕坐标,一开始陷入的就是觉得要改摄像机的参数,这是不对的,摄像机改变的只是你看物体的角度。所以经历一番折腾,看过网上许多有关opengl坐标系统转换的博客,我具体渲染出的人体骨骼点如下:代码:#include <ios...
2018-04-18 12:21:29
2491
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人