码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
JNI笔记之 初体验
JavaNativeInterface提供了java与c语言写的代码之间互相调用的方式。在c语言方面jni.h中声明了许多的类型和方法,有很多java的数据类型和c语言类型的转换方法函数。java里的int,String,byte[]等对应于C方面的jint,jstring,jbyteArray.i...
分类:其他好文   时间:2014-06-10 00:20:53    阅读次数:380
20140606
1、求一串字符串中连续出现次数最多的字串 #include#include#includeusing namespace std;pair fun(const string &str){ vector substrs; int maxcount=1,count=1; string substr; i...
分类:其他好文   时间:2014-06-10 00:18:57    阅读次数:266
ZOJ 1151 Word Reversal反转单词 (string字符串处理)
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=151For each list of words, output a line with each word reversed without changing the or...
分类:其他好文   时间:2014-06-10 00:14:19    阅读次数:300
全局方法&Number对象
//js端function println(string){ document.write(string+""); }//html端
分类:其他好文   时间:2014-06-10 00:10:30    阅读次数:196
03 java基本
输入输出流标准输出流比较简单, 只需要使用 System.out.println 就可以了, 标准输入流步骤如下:Scanner in = new Scanner(System.in); 然后可以使用 Scanner 类的各种方法实现输入操作. 例如: nextLine 方法String name ...
分类:编程语言   时间:2014-06-10 00:00:16    阅读次数:310
enum与字符串转换
public enum CacheControlMode { DisableCache, UseExpires } string s = CacheControlMode.UseExpires.ToString(); CacheContro...
分类:其他好文   时间:2014-06-08 07:19:44    阅读次数:200
poj2253青蛙跳跃
1.floyd。一个点到另一个点的最大距离,为所有路径最大距离的最小值(二分)。2.答案输出。%.3lf,%.3f,遇到精度问题,要多尝试。**********************************************#include#include#include#includeus...
分类:其他好文   时间:2014-06-08 06:51:38    阅读次数:202
C++ 中 int,char*,string,CString之间相互转换-整理
#include //使用C++标准库的string类时using namespace std;//同上#include #include #include //要将string类和int类型直接转换最好有这些包含,//因为自己写一个转换函数比较方便,函数定义参考如下string getstring...
分类:编程语言   时间:2014-06-08 06:37:42    阅读次数:304
我没发现Mvc里的 web.config 有什么用。
实验过程由于 Mvc2+ 引入 Area ,导致文件夹结构发生变化。 Mvc下的 web.config 所在的位置是:~/Areas/MySystem/Views/Web.config对应的请求的URL是:~/MySystem/Home/Index这时, 在根目录下添加 AppSetting 项: ...
分类:Web程序   时间:2014-06-08 01:18:55    阅读次数:348
2014年6月7日04:23:23
1 //将一个字符串数组的元素的顺序进行反转。{"3","a","8","haha"} {"haha","8","a","3"}。第i个和第length-i-1个进行交换。 2 string[] strs = { "3", "a", "8", "ha...
分类:其他好文   时间:2014-06-07 16:53:41    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!