自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 资源 (3)
  • 收藏
  • 关注

原创 【OpenGL 学习笔记】Nehe OpenGL + Visual Studio 2015 环境配置+ vs编译基础

前文:http://blog.csdn.net/wly95/article/details/50838719大概介绍了OpenGL库文件的下载,以及在visual studio 2015中的配置,并且调用了库中的一些函数试运行了一遍。本章主要介绍OpenGL考古教程NEHE,在visual studio 2015中是如何生存的。NEHE可以说是一个技术达人自己写的O

2016-06-25 23:06:04 4145 1

原创 【计算机基础】Unicode字符集 与 多字节字符集

=======================事情是这样的==========================在调试某程序时,发生了这样的错误:char 与 LPCWSTR 类型不兼容搜索了一下发现是字符集的原因。项目>>属性>>字符集>>使用多字节字符集或者,每个字符串“xxxxx”改为_T("xxxxx"),char类型改为wchar

2016-06-15 15:13:28 5041 4

原创 【LeetCode】011 Swap Nodes in Pairs 两两换位

【题目】Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant sp

2016-06-06 22:59:23 544

原创 【LeetCode】Best Time to Buy and Sell Stock 程序员炒股 part.3

FINAL PART。填坑。【题目】Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete at most k transact

2016-06-06 15:36:18 576

原创 【MATLAB 学习笔记】 SimMechanics 流程攻略(4)

Parker教授一共五集教学,我浓缩了一下,分成四章攻略,本章写完,SimMechanics入门攻略也告一段路,准备继续填其他的坑。

2016-05-23 13:01:00 9025 8

原创 【MATLAB 学习笔记】 SimMechanics 流程攻略(3)

承接前两章的内容,本章要做的是用阻尼弹簧将多个质量块mass连接起来构成的系统。主要介绍以下几个知识点:1. 子系统的建立2. 外力或外力矩元件的使用=====================================================================在之前两次教程中,多次使用环境配置三兄弟元件:重复使用,很少修改

2016-05-19 17:55:48 9464 3

原创 【MATLAB 学习笔记】 SimMechanics 流程攻略 (2)

本章主要内容:1. 制作斜坡上以及悬挂的弹簧阻尼系统;2. 用m文件修改系统中的参数,达到可编程控制的目的。====================================================================首先研究一下各个坐标系的位置关系:接下来研究一下滑块mass自身的坐标系,可以看到在定义mass尺寸的时

2016-05-18 11:28:42 7588 3

原创 【MATLAB 学习笔记】 SimMechanics 流程攻略(1)

在寻找虚拟样机的漫漫长路中,最终回归到了传统的办法——MATLAB概念摘自百科:SimMechanics 立足于Simulink 之上,是进行控制器和对象系统跨领域/学科的研究分析环境。SimMechanics 为多体动力机械系统及其控制系统提供了直观有效的建模分析手段,一切工作均在 Simulink 环境中完成。中文学习资料不多,在YouTube上找到密歇根大学的

2016-05-17 12:25:40 34455 21

原创 【Linux 学习笔记】戏说Git (上)

本文为《廖雪峰Git教程》学习笔记,原地址:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000萌新入门,略有心得,戏说一番。先来个正版概念镇个贴:Git是目前世界上最先进的分布式版本控制系统(没有之一)。假设,我是一个单机游戏爱好

2016-05-10 15:18:59 771

原创 【Linux 学习笔记】关于Makefile

前一章体验了一把Linux环境下的C语言编程。不像Windows下,VS中一键F5看结果,保存个代码万事大吉。其实,在Linux环境下才能真正体会到,从printf(“hello world”); 到 屏幕上出现这么一行小字,计算机经历了多少不为人知的辛酸历程。复习一下,首先,将c代码进行编译,产生.o目标文件,再将一个或者多个目标文件进行链接,生成一个可执

2016-05-06 17:21:40 593

原创 【Linux 学习笔记】gcc初体验

大部分内容转自:http://www.linuxidc.com/Linux/2014-08/105302.htm用VMware装了个Ubuntu的虚拟机吗,前坑未填,又增新坑。在这里学了一下,基本的目录结构:http://www.linuxidc.com/Linux/2015-07/120815p4.htm目录管理的生存向命令:http://

2016-05-05 17:16:00 3126 4

原创 【LeetCode】Best Time to Buy and Sell Stock 程序员炒股 part.2

【题目】Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete at most two transactions.一个数组pri

2016-04-20 19:00:54 516

原创 【LeetCode】Best Time to Buy and Sell Stock 程序员炒股 part.1

【题目一】Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the

2016-03-28 17:54:42 500

原创 【LeetCode】010 番外篇 Dynamic Programming 动态规划

【例一:最优路径】现有表格如上,从坐上走到右下(不重复不回头),每步累加,求累加之和最大是多少。解:首先将最左和最上进行依次的累加。再对空白部分进行填充,红色空格代表当前空格,红格对应表1的数字(如B2=9),分别加上上方数字13以及左方数字15,取两者中较大。即max(13+4,15+4)=19,填充进去19,如此完成接下来的操作。综上,按照红色的路径

2016-03-21 20:36:58 662

原创 【Qt学习笔记】001 基础篇——多窗口&登录界面

多窗口程序教程链接登录对话框教程链接由实例切入,打开新世界的大门,可能笔记做的不是很系统,但是是一个萌新不断发现的过程。和VS的MFC的项目管理界面很类似,把各个类型的文件统一做了分类。以main.cpp为例 因为其余的程序都还没能读懂#include "mainwindow.h"#include #include "logindialog.h"int ma

2016-03-16 08:49:44 895

原创 【Qt学习笔记】000 引言

前段时间,为了研究如何开发虚拟样机接触到了OpenGL,查了一些教程,NeHe虽然经典但是画风各种陈旧,就没有向下深入研究的兴趣了。辗转各种国内外网站,如获至宝的找到了上两篇博客转载翻译的,用visual studio配置环境配置了n久,一边翻译一边欣喜若狂的调通了Hello World,准备开坑!然而做到第二个例子,死活调试不出,出现各种无法打开.h库的情况。绝望之下,无意中发现了这个教程是用D

2016-03-15 20:40:02 615

翻译 【OpenGL】 001 Open a window

在上一节中,我们用一个简单的程序调试了编程环境。从本节开始,对http://ogldev.atspace.co.uk/index.html网站上的教程进行学习翻译,欢迎批评指正。【背景】OpenGL规范没有指定为任何API来创建和操作窗口。现代的视窗系统,包括支持OpenGL的一个子系统,提供了一个OpenGL上下文和视窗系统之间的结合。在X窗口系统的接口称为GLX。微软提供的WGL在Wi

2016-03-09 21:28:51 520

转载 【OpenGL】000 Visual Studio 2015 搭建OpenGL环境

1. 下载gult库glut库地址为:http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zipglut全称为:OpenGL Utility Toolkit,也就是OpenGL应用工具包,它建立在OpenGL基础之上,方便开发OpenGL的某些功能,比如我们后面要创建的Windows程序,就可以用glut来方便地构

2016-03-09 21:04:29 823

原创 【LeetCode】009 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.For example, given nums = [0, 1, 0, 3, 12], after calling

2016-03-08 14:11:43 410

原创 【LeetCode】008 Fraction to Recurring Decimal 六点六六六循环

【题目】Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating, enclose the repeating part in parentheses

2016-03-04 11:39:06 482 5

原创 【LeetCode】007 Majority Element 少数服从多数

【题目】 Given an array of size n, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋ times.You may assume that the array is non-empty and the major

2016-03-02 16:50:30 760 2

原创 【LeetCode】006 Bitwise AND of Numbers Range 区间内整数按位与

【题目】Given a range [m, n] where 0 For example, given the range [5, 7], you should return 4. 令0 【解析】思路一:循环​​程序如下:int rangeBitwiseAnd(int m, int n) {    while(m    n &

2016-03-01 09:59:31 564

原创 【LeetCode】005 Implement strStr() 函数strStr()的功能实现

【题目】Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.编写一个函数完成strStr(str1,str2)的功能,即判断字符串str2是否是str1的子串,如果是则该函数返回s

2016-03-01 09:58:51 404

原创 【LeetCode】004 First Bad Version 寻找老鼠屎

【题目】You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed base

2016-03-01 09:58:13 393

原创 【LeetCode】003 Unique Paths 唯一路线

【题目】A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to re

2016-03-01 09:56:56 443

原创 【LeetCode】002 Single Number 寻找单身狗

【题目】Given an array of integers, every element appears twice except for one. Find that single one.​在一个数组中​,每个数字都有另一个与之相同,只有一个例外,请找出它。【解析】一、我的方法(即最笨的方法):把每个数字都检索一遍,检索不到相同的就输出。​​从

2016-03-01 09:55:57 443

原创 【LeetCode】001 Nim Game 尼姆游戏

【题目】You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone wil

2016-03-01 09:53:35 442

linux内核与rt-preempt补丁

提供了目前最新的赛灵思zynq的arm-linux内核,可支持ZC702开发板。内核版本为4.14,并提供了相对应的rt-preempt补丁,通过patch命令可让标志的linux软实时变为硬实时,通过实践代码能顺利编译,并完美生成uImage和devicetree.dts。

2018-07-01

OpenGL库文件+NeHe中文教程及源代码+nehe_sdk+WhyGL演示程序平台

OpenGL库文件+NeHe中文教程及源代码+nehe_sdk+WhyGL演示程序平台

2016-06-25

Nehe的OpenGL教程中文版

2016-06-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除