5、数字转大写案例
#region 练习:把123转换为:壹贰叁。Dictionary
//提示用户输入
Console.WriteLine("请输入一个数");
//接受用户的输入
string number = Console.ReadLine();
string...
分类:
其他好文 时间:
2015-03-22 06:56:51
阅读次数:
154
前半部分简单,仅记录独特之处。而指针重要,另开一篇。 C-风格字符串以空字符结尾。strlen(char []); //(cstring和string.h)计算可见的字符数而不包含空字符关于函数一般只记录其原型,有时为了会不符合语法,注释()是其所在头文件 cin处理字符串时,使用空白来确定...
分类:
编程语言 时间:
2015-03-22 01:38:20
阅读次数:
185
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
#include #include #include class StoreQuote{public: std::string quote, speaker; std::ofstream fileOutput; StoreQuote(); ~StoreQuote(); ...
分类:
其他好文 时间:
2015-03-22 00:18:50
阅读次数:
103
//输出的结果是?????????//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
场景一:这个是经常出现的问题,因为我们经常误用String。public class Test { public static void main(String[] args) { //参数"terrible"会创建一个对象 //然后,new String(),这个语句会创建...
分类:
其他好文 时间:
2015-03-21 22:56:05
阅读次数:
172
#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
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