码迷,mamicode.com
首页 >  
搜索关键字:cpp    ( 13186个结果
【Longest Palindromic Substring】cpp
题目:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest...
分类:其他好文   时间:2015-05-06 17:07:28    阅读次数:140
odom->base_link
turtle_tf_listener.cpp#include #include #include using namespace std; double x,y,z,ww,zz,hh,ii,Aww,Azz,Ahh,Aii; int main(int argc, char** argv){ ros::init(argc, argv, "my_tf_listener"); ros::N...
分类:其他好文   时间:2015-05-06 13:24:26    阅读次数:272
看数据结构写代码(67) 置换 _ 选择排序(完结篇)
杂谈: 严蔚敏版《数据结构(C语言版)》 一书 终于看完了。这是 一个完结,也是 一个新的开端。《算法导论》 已到手。 置换选择排序的思想 是 将 归并段 尽量 变的 更大,而不是根据 内存 大小 限制在 固定的 大小。 这样 可以 利用赫夫曼树 来 进行 最优归并树,从而 使 外存 读写次数 最少。 下面给出 具体 代码:欢迎指出代码不足。 // Replace_Selcetion.cpp...
分类:编程语言   时间:2015-05-06 11:10:18    阅读次数:160
【Add binary】cpp
题目:Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".代码:class Solution {public: string addBina...
分类:其他好文   时间:2015-05-06 10:53:29    阅读次数:107
cocos2d-x—使用shader使图片背景透明
这里用shader处理了像素,使黑色背景透明,直接上代码ShaderSprite.h[cpp]view plaincopyprint?#ifndef__TestShader__ShaderSprite__#define__TestShader__ShaderSprite__#include"coco...
分类:其他好文   时间:2015-05-06 09:15:58    阅读次数:414
线程池QueueUserWorkItem
// Test1.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include DWORD WINAPI TestThreadPool(PVOID pContext);...
分类:编程语言   时间:2015-05-05 21:39:05    阅读次数:134
【String to Integer (atoi) 】cpp
题目:Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below a...
分类:其他好文   时间:2015-05-05 21:33:48    阅读次数:193
Android5.0 Gallery2上编译Gallery模块出错
在L上面,编译整个project可以编译通过,但是单独编译Gallery2模块出错,build gallery模块出现refocus的error target C++: libjni_jpegstream <= packages/apps/Gallery2/jni_jpegstream/src/outputstream_wrapper.cpp target C++: libjni_jpegs...
分类:移动开发   时间:2015-05-05 19:35:28    阅读次数:156
VS2010中添加lib库引用
一.VS2010中添加lib库引用: 1 菜单 ?项目---> 属性--->配置属性-->链接器---->输入---附加依赖项, ?加入库名,如: my_API.lib; ?或是在cpp源文件中用代码#pragma comment(lib,"my_API.lib")代替. ?此时再编译会...
分类:其他好文   时间:2015-05-05 17:02:31    阅读次数:160
Qt5 从头学(2)--手动构建HelloWold
在上一篇随笔中已经搭建好了Qt5的的开发环境,并且通过Qt Creator自动构建了一个视窗程序。在这篇文章中我们将手动编写一个HelloWold程序,简单了解一下Qt的构建过程。这里我们不会涉及到Qt代码部分,因此可以先不用理会代码是怎么回事,复制粘贴就行。 首先编写helloworld.cpp ...
分类:其他好文   时间:2015-05-05 16:12:57    阅读次数:115
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!