码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
GUI使用1——基础函数使用
1 GUI.Window 窗口static function Window (id : int, clientRect : Rect, func : WindowFunction, text : String, style : GUIStyle) : RectwindowRect = GUI.Win...
分类:其他好文   时间:2015-06-09 16:55:53    阅读次数:115
POJ 1503
1 #include 2 #include 3 #define MAXN 100000 4 using namespace std; 5 6 //string _s[MAXN]; 7 int ans[MAXN]; 8 9 int main()10 {11 //freopen("ac...
分类:其他好文   时间:2015-06-09 16:45:47    阅读次数:117
Java Solution (Basic Calculator) 还没测,晚上回去册
class Count{ public int Count(String a){ int n = a.length(); int result = 0; int num = 0; int p = 0; int L1 = a.indexOf('('); int R1 = a.inde...
分类:编程语言   时间:2015-06-09 16:42:58    阅读次数:125
[LeetCode] Basic Calculator
Basic CalculatorImplement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), t...
分类:其他好文   时间:2015-06-09 16:40:54    阅读次数:115
输入一段文字(里面仅有汉字和数字组成),输出这段文字中汉字的个数。
Console.WriteLine("请输入一段文字;"); string str = Console.ReadLine(); int sum =str.Length;//定义一个值变量用来记录汉字的个数。 ...
分类:其他好文   时间:2015-06-09 16:39:36    阅读次数:97
POJ 1013
#include"string.h"char left[3][7],right[3][7],result[3][5];bool isHeavy(char x ){ int i; for(i=0;i0) { for( i=0;i<3;i++) scanf("%s%s%s",left[i],right[...
分类:其他好文   时间:2015-06-09 16:34:00    阅读次数:137
POJ 1131
#include #include using namespace std;int ans[3000];int main(){ //freopen("acm.acm","r",stdin); string s; int index; int i; int j; i...
分类:其他好文   时间:2015-06-09 16:32:21    阅读次数:86
POJ 1488
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 string s; 8 int i; 9 bool boo;10 bool boo_1;11 boo = false;1...
分类:其他好文   时间:2015-06-09 16:31:45    阅读次数:91
POJ 1326
1 #include 2 #include 3 using namespace std; 4 int main(){ 5 string original_city=" "; 6 string distance_city=" "; 7 int length; 8 ch...
分类:其他好文   时间:2015-06-09 16:31:17    阅读次数:100
文件较验及Google Gson的使用
一,CRC32文件较验 文件校验可以确保文件内容不被篡改的方法,刚在工作中用到,记录下来。 1 private void doCheckSum(String fileName){ 2 try { 3 4 Log.d("checksum"...
分类:其他好文   时间:2015-06-09 16:29:06    阅读次数:111
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!