我的程序:#include#include#include#includeusing namespace std;int main(){ string s; cin>>s; int bl,m; cin>>bl; cin>>m; int count=0; vectors1; for(int i=...
分类:
其他好文 时间:
2015-05-19 18:23:31
阅读次数:
200
1 package main 2 3 import ( 4 "os" 5 "os/exec" 6 "fmt" 7 "flag" 8 "strings" 9 )10 11 func main() {12 command := flag.String("cmd", "pwd"...
分类:
编程语言 时间:
2015-05-19 18:05:42
阅读次数:
214
publicstaticvoidmain(String[]args){Map<String,String>map=newHashMap<String,String>();map.put("1","a");map.put("222","aa");map.put("33","aaa");Set<String>set=newHashSet<String>();set=map.keySet();for(Stringkey:set){//循环取出了你map里..
分类:
其他好文 时间:
2015-05-19 16:53:24
阅读次数:
105
#include<stdio.h>
#include<time.h>
#include<sys/time.h>
#include<string.h>
#include<iostream>
usingnamespacestd;
char*GetTime(char*pszTime)
{
charszTempTime[222]={0};
time_tt=time(NULL);
structtm*Local=localtime(&t);
struct..
分类:
其他好文 时间:
2015-05-19 16:53:06
阅读次数:
224
/*-----函数指针+出参-----*/
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
char*GetString(char**p)
{
*p=(char*)malloc(11);
strcpy(*p,"helloworld");
return*p;
}
intmain()
{
char*pStr=NULL;
char*pStr2=GetString(&pStr);
printf("-..
分类:
其他好文 时间:
2015-05-19 16:51:24
阅读次数:
116
在swift 里引用循环的造成,主要有两个方法,
1.类之间的引用
2.clourse 闭包引用
解决办法:
weak references and unowned references. 也就是weak,unowned
weak, 来修饰可选的,? 结尾的,如:var weak city: String ?
unowned 来修身 一直存在的。 var unowned city: S...
分类:
其他好文 时间:
2015-05-19 16:43:14
阅读次数:
165
canvas.drawText(text, 0, 0, paint);屏幕上没有显示我的text内容,原因是
drawText(String text, float x, float y,
Paint paint)
x为左上坐标,y为右下坐标,如果都置为0 0,明显没结果咯。
如果想正确显示文字信息,应该如何做呢:
Rect rect = new Rect...
分类:
其他好文 时间:
2015-05-19 16:40:11
阅读次数:
227
superobject.pas单元对json的解析非常方便, 力荐procedure TForm1.btn1Click(Sender: TObject);var s:String; i: Integer; jfields,jitems,jo:ISuperObject;begin jitems...
前台页面(aspx文件):--伪装按钮发送--隐藏触发按钮后台页面(cs文件):protected void lkSend_Click(object sender, EventArgs e){ string args = Request.Form["__EVENTARGUMENT"]; ...
分类:
Web程序 时间:
2015-05-19 16:20:38
阅读次数:
155
NSScanner: nil string argumentNSScanner: nil string argumentlibc++abi.dylib: terminate_handler unexpectedly threw an exception这个错误多数都是由于空字符串引起的,请仔细检查,...
分类:
移动开发 时间:
2015-05-19 16:19:22
阅读次数:
161