码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Android -- 获取视频第一帧缩略图
干货从API 8开始,新增了一个类:android.media.ThumbnailUtils这个类提供了3个静态方法一个用来获取视频第一帧得到的Bitmap,2个对图片进行缩略处理。public static Bitmap createVideoThumbnail (String filePath,...
分类:移动开发   时间:2015-01-14 00:50:47    阅读次数:293
Fraction to Recurring Decimal 166
题目描述:给出一个小数的分子和分母,将这个小数转化成string类型表示的小数形式当小数出现循环时,用小括号将循环节括起来题目分析:这个题目重点是找到循环节对于存在循环节的情况,找到循环节是重点,我们 当什么情况下循环节完整的出现出现了呢? 我们不断的做除法,每次都会有一个余数,如果当前的余数在.....
分类:其他好文   时间:2015-01-14 00:50:21    阅读次数:229
C++ String
1.std::stringstring 是C++中basic_string模板的char类型的实例,在Debian 7.0中,其定义包含在 /usr/include/c++/4.7/bits/stringfwd.hbasic_string模板类在/usr/include/c++/4.7/bits/....
分类:编程语言   时间:2015-01-14 00:42:59    阅读次数:275
boost.log在项目中应用
#pragma once#include #include using std::string;#define LOG_DEBUG\ BOOST_LOG_SEV((MyLog::s_slg),(boost::log::trivial::debug))#define LOG_INFO\ B...
分类:其他好文   时间:2015-01-14 00:39:58    阅读次数:219
[LeetCode][Algorithms]String to Integer (atoi)
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/string-to-integer-atoi/Implement atoi to convert a string...
分类:其他好文   时间:2015-01-14 00:36:59    阅读次数:143
String to Integer (atoi) leetcode
题目的意思是要将一个字符串转换成数字 这个题目的重点是要处理    各种各样的输入情况 在题目下面有一大段英文: Requirements for atoi: The function first discards as many whitespace characters as necessary until the first non-whitespace character is...
分类:其他好文   时间:2015-01-13 23:22:36    阅读次数:428
Jquery 调用.net WebService 返回Json、XML方法
由于项目需要,使用前端、手机客户端调用ASP.NET的Webservice来获取信息.所以这段时间重温一下Jquery与Web Serivce,过程中碰到不少问题,也有不少的收获。Service代码 [WebMethod] public string HelloWorld...
分类:Web程序   时间:2015-01-13 23:13:20    阅读次数:353
zzzzz
Extension Method: Return another string if string is null or emptyJust a tiny little extension method. You may know the ?? operator for null checks:va...
分类:其他好文   时间:2015-01-13 23:00:25    阅读次数:211
无废话Android之listview入门,自定义的数据适配器、采用layoutInflater打气筒创建一个view对象、常用数据适配器ArrayAdapter、SimpleAdapter、使用ContentProvider(内容提供者)共享数据、短信的备份、插入一条记录到系统短信应用(3)
1.listview入门,自定义的数据适配器 public class ListViewActivity extends Activity { private ListView lv; public String tag = "ListViewActivity"; @...
分类:移动开发   时间:2015-01-13 22:58:32    阅读次数:243
c++学习笔记——个单词转换的map程序详解
实现功能:给定一个string,将它转换为另一个string。程序输入是两个文件,第一个文件保存转换规则,第二个文件为将要进行转换的文本。IDE:Windows7+VS2013[cpp]view plaincopy#include"stdafx.h"#include#include#include#...
分类:编程语言   时间:2015-01-13 22:56:45    阅读次数:303
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!