码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果)
Opengl_12_相机控制
1,使用键盘控制位置的移动没有使用glutSpecialFunc,glutKeyboardFunc因为我这个win32程序。2,相机类里面定义了相机的三个方向成员:位置(position),target向量和up向量前后移动是最简单的,因为这俩种移动方向和tartget向量在一条线上,我们只需要从起... ...
分类:其他好文   时间:2017-02-02 10:43:24    阅读次数:179
167. 找两个数,数组已排序 Two Sum II - Input array is sorted
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The function ... ...
分类:编程语言   时间:2017-02-01 20:45:24    阅读次数:253
81. Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed? Would this affect the run-time complexity? How and why? Suppose an arra ...
分类:其他好文   时间:2017-02-01 10:48:31    阅读次数:169
Chapter 3 Phenomenon——8
I turned to sit up, and this time he let me, releasing his hold around my waist and sliding as far from me as he could in the limited space. 我开始站起来,放开 ...
分类:其他好文   时间:2017-01-29 23:13:20    阅读次数:306
Chapter 3 Phenomenon——7
"Bella? Are you all right?" “贝拉?你还好吗?” "I'm fine." My voice sounded strange. “我还好”我的声音听起来很奇怪。 I tried to sit up, and realized he was holding me agains ...
分类:其他好文   时间:2017-01-28 22:10:31    阅读次数:270
POJ 2653 Pick-up sticks [线段相交 迷之暴力]
Pick-up sticks Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 12861 Accepted: 4847 Description Stan has n sticks of various length. He thr ...
分类:其他好文   时间:2017-01-27 18:43:20    阅读次数:235
1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:其他好文   时间:2017-01-27 08:44:26    阅读次数:153
nagios监控cloudstack的主机的状态
cloudstack中的host主机因为一些原因导致状态不为up状态,希望nagios通过cloudmonkey来监控这个状态,如下:#!/usr/bin/python #desc:thisscriptistocheckthestatusofhostsincloudstack #canuse-htoshowusage importos,sys importjson fromoptparseimportOptionParser E_OK=0..
分类:移动开发   时间:2017-01-25 23:26:20    阅读次数:413
微信小程序 快键键
快捷键 格式调整 - Ctrl+S:保存文件 - Ctrl+[, Ctrl+]:代码行缩进 - Ctrl+Shift+[, Ctrl+Shift+]:折叠打开代码块 - Ctrl+C Ctrl+V:复制粘贴,如果没有选中任何文字则复制粘贴一行 - Shift+Alt+F:代码格式化 - Alt+Up ...
分类:微信   时间:2017-01-25 17:56:05    阅读次数:283
java_保留小数
//法一 double f=11.45564645656; BigDecimal b= new BigDecimal(f); double f1=b.setScale(7,BigDecimal.ROUND_HALF_UP).doubleValue(); System.out.println(f1); ...
分类:编程语言   时间:2017-01-24 18:00:41    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!