比如有语句selectusernamefromEmployee返回结果是:username张三李四王五怎么输出一个字符串类似:张三,李四,王五答:declare@svarchar(1000)select@s=isnull(@s+',','')+usernamefromEmployeeselect@s...
分类:
其他好文 时间:
2014-07-06 23:43:57
阅读次数:
370
1 #include 2 #include 3 using namespace std; 4 int main(){ 5 string s; 6 int i,sum; 7 getline(cin,s); 8 for(i=0;i='0')10 ...
分类:
其他好文 时间:
2014-07-06 23:41:23
阅读次数:
279
将Best Time to Buy and Sell Stock的如下思路用到此题目思路1:第i天买入,能赚到的最大利润是多少呢?就是i + 1 ~ n天中最大的股价减去第i天的。思路2:第i天买出,能赚到的最大利润是多少呢?就是第i天的价格减去0~ i-1天中最小的。和前两道题比起来的话,这道题最...
分类:
其他好文 时间:
2014-07-06 23:40:44
阅读次数:
284
//题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。 //1.程序分析:(a>b)?a:b这是条件运算符的基本例子。package com.mumu.ready;import java.util.Scanner;public ...
分类:
其他好文 时间:
2014-07-06 23:34:13
阅读次数:
298
open a cmd window and type reg query "HKCU\Control Panel\International" which will show you the values as you want them.Then to modify them, use REG A...
分类:
其他好文 时间:
2014-07-06 23:26:01
阅读次数:
1227
-(IBAction)abc:(id)sender{ NSString *a = @"abcdef"; NSMutableString *newA = [[NSMutableString alloc]init]; int length = a.length; for (int i = 0; ...
分类:
其他好文 时间:
2014-07-06 23:22:46
阅读次数:
210
突然想着在一个cube物体上播放视频会是怎样的情景。今天终于有时间来尝试下了。结果=>成功下面来说说详细的步骤吧准备阶段:1、unity pro 专业版 => 需正版(当然破解版也ok,你懂的)。2、安装QuickTime Player。必须要安装,否则导入movie资源时,unity会自动报错提醒...
分类:
其他好文 时间:
2014-07-05 20:28:43
阅读次数:
261
Sql Server中暂停几秒再执行后面的命令!-- 语法WAITFOR{ DELAY 'time_to_pass' | TIME 'time_to_execute' | [ ( receive_statement ) | ( get_conversation_group_statement ) ....
分类:
数据库 时间:
2014-07-05 20:26:55
阅读次数:
215
package com.shawearn.download;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.DataInputStream;import java.io.Dat...
分类:
编程语言 时间:
2014-07-05 20:23:22
阅读次数:
256
1 #include 2 using namespace std; 3 int main(){ 4 int i,j,k=0,l,a[20],b[20],c[40],m,n; 5 cin>>m; 6 for(i=0;i>a[i]; 8 cin>>n; 9 fo...
分类:
其他好文 时间:
2014-07-05 20:19:27
阅读次数:
164