码迷,mamicode.com
首页 >  
搜索关键字:cpp    ( 13186个结果
【Anagrams】 cpp
题目:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.代码:class Solution {public: vect...
分类:其他好文   时间:2015-05-11 21:30:23    阅读次数:206
android JB2连拍降速原理介绍
1、HAL层(1)alps\mediatek\platform\mt6589\hardware\camera\core\camshot\MultiShot\MultiShot.cpp sleep实现降速。在sendCommand处理ECamShot_CMD_SET_CSHOT_SPEED。ECamS...
分类:移动开发   时间:2015-05-11 21:24:03    阅读次数:172
【Count and Say】cpp
题目:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as...
分类:其他好文   时间:2015-05-11 20:03:26    阅读次数:109
Qt Creator 中,如何更改h,cpp,ui的文件并不让ui失效
这个星期在使用qt,碰到一个很蛋疼的问题:创建对话框的时候,不小心输错了名字。而且是在很迟才发现的。这个时候对话框都已经布局差不多了,为了改名字,碰到更蛋疼的问题,改了名字后就无法使用转到槽的功能了。具体的错误显示如下: this application failed to start because … 经过一场大战,终于知道如何改名字,下面说下步骤: 1:更改h,cpp,ui的名字...
分类:其他好文   时间:2015-05-11 17:57:34    阅读次数:97
复数中的运算符重载(续)
输入代码: /* *Copyright (c)2015,烟台大学计算机与控制工程学院 *All rights reserved. *文件名称:sum123.cpp *作 者:林海云 *完成日期:2015年5月11日 *版 本 号:v2.0 * *问题描述:在复数类中的运算符重载基础上 (1)再定义一目运算符 -,-c相当于0-c。 (2)定义Complex类中的>运算符...
分类:其他好文   时间:2015-05-11 17:53:38    阅读次数:120
【Roman To Integer】cpp
题目:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.代码:class Solution {public: int romanTo...
分类:其他好文   时间:2015-05-11 17:35:39    阅读次数:150
iOS7隐藏状态栏 status Bar
IOS7中,不仅应用的风格有一定的变化,状态栏变化比较大,我们可以看到UIVIEWCONTROLLER的状态栏与导航栏基本是一体的。因此UIVIEWCONTROLLER的HIDE/SHOW状态的方法也跟其他版本的不一样了。 在IOS7以前的版本,HIDE/SHOW是通过以下代码实现[cpp]view...
分类:移动开发   时间:2015-05-11 17:35:14    阅读次数:138
转载-求一个数转换成为二进制中1的个数
转载自:求一个数转换为二进制中1的个数// Count1--01.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include using namespace std;int coutn1(int num){ int result = 0; whil...
分类:其他好文   时间:2015-05-11 16:06:24    阅读次数:138
自动生成ACM-ICPC模版的Latex版本
Github地址:ACM-ICPC-Code-Template-Latex 首先你要有:你自己的ACM-ICPC模版库,Latex发行版软件。 然后你可以:生成一个漂亮的pdf文件,里面是你的模版。 效果图:template.pdf 用法:Linux用户直接make就可以了(如果没有安装latex,安装一下texlive-full就okay);Windows用户编译运行main.cpp之后...
分类:其他好文   时间:2015-05-11 14:52:13    阅读次数:143
【Valid Number】cpp
题目:Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem s...
分类:其他好文   时间:2015-05-11 12:51:36    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!