1 #include 2 #include 3 using namespace std; 4 5 6 int main() 7 { 8 string str("some thing"); 9 for(auto &c:str)10 if(!isspace(c)...
分类:
其他好文 时间:
2015-04-16 12:19:40
阅读次数:
91
#include #include using namespace std;typedef struct _ShoolGirl { string name;} ShoolGirl;/* 公共接口 */class GiveGift { virtual void GiveDolls() = ...
分类:
其他好文 时间:
2015-04-16 12:11:35
阅读次数:
110
URL的获取很简单,ASP.NET通用: 【1】获取 完整url (协议名+域名+虚拟目录名+文件名+参数)string url=Request.Url.ToString();【2】获取 虚拟目录名+页面名+参数:string url=Request.RawUrl; (或 string url=Re...
分类:
Web程序 时间:
2015-04-16 12:09:52
阅读次数:
147
Delphi的Format函数大家都用得很多,第二个参数用着确实很方便。最近在数据库开发应用中需要自己创建一个带array of const参数的函数,对于常用的类型String,Integer,Pointer处理都没什么问题,但当用到Widestring类型时却出错,摸索了一上午,感觉获益良多。现...
分类:
其他好文 时间:
2015-04-16 12:09:07
阅读次数:
113
找给定s集合里面word全部是同一个字符的,这样的word有几个,如果数量#include#include#includeusing namespace std;int main(void){ int t; string a; cin>>t; while(t--) { ...
分类:
其他好文 时间:
2015-04-16 12:04:20
阅读次数:
167
查询xml这个是我获取前台菜单的xmlprivate void getMenu(string[] cidlist, string[] idlist) { //获取菜单文件 string sPath = System.Web.HttpConte...
分类:
Web程序 时间:
2015-04-16 11:58:54
阅读次数:
128
源:Delphi 中Format的字符串格式化使用说明(转)一、Format函数的用法Format是一个很常用,却又似乎很烦的方法,本人试图对这个方法的帮助进行一些翻译,让它有一个完整的概貌,以供大家查询之用:首先看它的声明:function Format(const Format: string;...
static void Main(string[] args) { ArrayList al = new ArrayList(); Console.Write("请输入人数"); int n = Convert.ToInt32(Console.ReadLine()); for (int i = 0....
分类:
其他好文 时间:
2015-04-16 11:51:03
阅读次数:
123
Given a string ‘str’ of digits and an integer ‘n’, build the lowest possible number by removing ‘n’ digits from the string and not changing the order ...
分类:
其他好文 时间:
2015-04-16 11:49:38
阅读次数:
179
static void Main(string[] args) { int n = 1; while (n < 6) //在括号内直接限制循环条件 { Console.WriteLine( "打印结果{0},{1}",n,2*n); n = n + 1; //需要在中括号内给出改变方式,否则将进入....
分类:
其他好文 时间:
2015-04-16 11:43:44
阅读次数:
132