码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
基础加强第三天 练习总结
5、数字转大写案例 #region 练习:把123转换为:壹贰叁。Dictionary             //提示用户输入             Console.WriteLine("请输入一个数");             //接受用户的输入             string number = Console.ReadLine();             string...
分类:其他好文   时间:2015-03-22 06:56:51    阅读次数:154
C++ primer plus (chapter4-1)
前半部分简单,仅记录独特之处。而指针重要,另开一篇。 C-风格字符串以空字符结尾。strlen(char []); //(cstring和string.h)计算可见的字符数而不包含空字符关于函数一般只记录其原型,有时为了会不符合语法,注释()是其所在头文件 cin处理字符串时,使用空白来确定...
分类:编程语言   时间:2015-03-22 01:38:20    阅读次数:185
LeetCode Algorithm 06
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:其他好文   时间:2015-03-22 01:37:27    阅读次数:143
解密字符串
给一字符串如a2bc3d1 转换成aabcbcbcd 1 String decode(String str) { 2 String word=""; 3 StringBuilder result=new StringBuilder(""); 4 f...
分类:其他好文   时间:2015-03-22 00:20:11    阅读次数:154
对象2 构造,析构
#include #include #include class StoreQuote{public: std::string quote, speaker; std::ofstream fileOutput; StoreQuote(); ~StoreQuote(); ...
分类:其他好文   时间:2015-03-22 00:18:50    阅读次数:103
new关键字的理解
//输出的结果是?????????//The answer is good and gbcpublic class Example { String str=new String("good");//new 一下分配一次内存空间,在new就又的分配一次内存空间 char []ch={'a','b'....
分类:其他好文   时间:2015-03-22 00:07:36    阅读次数:145
对象 作用域解析符
1 对象举例#include using namespace std;class Car {public: string color; string engine; float gas_tank; unsigned int wheel; void running(voi...
分类:其他好文   时间:2015-03-21 22:56:30    阅读次数:205
Item 5 避免创建不必要的对象
场景一:这个是经常出现的问题,因为我们经常误用String。public class Test { public static void main(String[] args) { //参数"terrible"会创建一个对象 //然后,new String(),这个语句会创建...
分类:其他好文   时间:2015-03-21 22:56:05    阅读次数:172
OpenCV Haar AdaBoost源码改进据说是比EMCV快6倍
#include "Haar.h"#include "loadCascade.h"#include "Util.h"#include "stdio.h"#include "string.h"#include #include #include /*******************Global**...
分类:其他好文   时间:2015-03-21 22:48:36    阅读次数:367
数组-条件求和(Code)
static void Main(string[] args){ // Generate data int arraySize; int[] data; Random rnd; arraySize = 32768; data = new int[arraySize...
分类:编程语言   时间:2015-03-21 22:44:20    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!