ping 192.168.1.150
开启telnet服务:
net start telnet//start telent
telnet 192.168.1.150 1433
解决类似80端口被占用问题:
netstat -ano 显示端口和pid
禁用http.sys:(可以看到pid 4 80端口的被NT kernel & System 占用)
1. net st...
1.Joiner用处
Joiner用来将一系列的字符串进行合并,合并之后的每个字符串之间可以用特定的分隔符,并且可以用来处理含有null的字符串的情况。
2.Jointer的常用方法
1.public static Joiner on(String separator)或者public static Joiner on(char separator);
该方法设置合并字符串之间的分隔符。...
分类:
其他好文 时间:
2014-05-09 14:01:17
阅读次数:
338
一、实验代码#include void print(char s[]);int main(){
print((char *)"abcdef"); return 0;}void print(char s[]){
printf("%s\n",s);}二、实验结果输出:abcdef三、调...
分类:
其他好文 时间:
2014-05-09 09:37:30
阅读次数:
414
没考虑到的情况有:input: [, expected: false; 语法上也犯了错误:
我定义的stack的泛型为char,泛型不能为primitive datatype,Primitive types such ascharcannot be
used as type parameters i...
分类:
其他好文 时间:
2014-05-09 09:19:01
阅读次数:
252
http://acm.hdu.edu.cn/showproblem.php?pid=3309
1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7
8 char s[30][3...
分类:
其他好文 时间:
2014-05-09 07:52:24
阅读次数:
328
void fun(char *str){ char *a = new
char[strlen(str)+1]; memcpy(a, str, strlen(str)+1); if (...) { return; } else if
(...) {return; } delete a; return;...
分类:
其他好文 时间:
2014-05-09 07:35:24
阅读次数:
257
http://subclipse.tigris.org/update_1.8.x1,打开‘Help’->‘InstallnewSoftware’,点击"add"按钮,随便起个名字,把上面的url输入一下。2,在Subclipse下拉列表只选中Subclipse–RequiredSubversionClientAdapter–RequiredSubversionNativeLibraryAdapter(JavaHL)–St..
分类:
其他好文 时间:
2014-05-09 06:53:13
阅读次数:
236
最近无聊,再学学unp吧。学学网络编程。下面是一个demo:intro/daytimetcpcli.c#include
"unp.h"intmain(int argc, char **argv){ int sockfd, n; char ...
分类:
其他好文 时间:
2014-05-09 06:39:40
阅读次数:
333
The ? 1 ? 2 ? ... ? n = k problem
The problem
Given the following formula, one can set operators '+' or '-' instead of each '?', in order to obtain a given k
? 1 ? 2 ? ... ? n =...
分类:
其他好文 时间:
2014-05-09 06:10:40
阅读次数:
285
/*
* uva575
* Date:2014/5/7
* State: AC
*/
#include
#include
#include
#include
#include
using namespace std;
const int MAXN=34;
char Arr[MAXN];
int main()
{
//cout << "Hello world!" << end...
分类:
其他好文 时间:
2014-05-09 02:25:56
阅读次数:
269