今天从函数传参的角度来理解指针。如果想交换两个变量a,b的值,我们会这么做:int temp;temp = a;a = b;b = a;如果要把以上功能封装成一个函数,最开始的反应是:func(int a,int b){int temp;temp = a;a = b;b = a;}但是func(a,...
分类:
其他好文 时间:
2015-11-03 20:55:36
阅读次数:
124
java.io.tmpdir在什么位置 ? 操作系统不同 这个系统属性所表示的目录也不同 On Windows: java.io.tmpdir:[C:\DOCUME~1\joshua\LOCALS~1\Temp\] On Solaris: java.io.tmpdir:[/var/tmp/] On Linux: java.io.tmpd...
分类:
编程语言 时间:
2015-11-03 17:59:55
阅读次数:
179
(二)应用部署1.Tomcat的目录结构[root@localhosttomcat]#ls
binconflibLICENSElogsNOTICERELEASE-NOTESRUNNING.txttempwebappsworkbin:脚本及启动时用到的类conf:配置文件lib:类库logs:日志文件temp:临时文件目录webapps:应用程序默认部署目录work:工作目录tomcat配置文..
分类:
其他好文 时间:
2015-11-03 17:58:17
阅读次数:
359
引用传递class Ref1{int temp=10;}public class RefDemo01{public static void main(String args[]){Ref1 r1=new Ref1();//实例化对象r1.temp=20;System.out.println(r1.t...
分类:
其他好文 时间:
2015-11-03 00:29:55
阅读次数:
165
去除两端空格: NSString*temp=[textField.textstringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceCharacterSet]]; 去除两端空格和回车: NSString*text=[tempstringBy.....
分类:
移动开发 时间:
2015-11-02 21:17:16
阅读次数:
182
oracle创建表空间 SYS用户在CMD下以DBA身份登陆:在CMD中打sqlplus /nolog然后再conn / as sysdba--如果路径不存在则要创建路径--创建临时表空间 create temporary tablespace txwh_temp tempfile 'E:\or.....
分类:
数据库 时间:
2015-11-02 17:41:31
阅读次数:
249
1 private string GetByteString(string center, int maxlen, string endStr) 2 { 3 string temp = center.Substring(0, (center.Length ...
执行如下SQL将test_temp表中的数据恢复到 2013-04-26 21:06:00 注意,这里一定要先删除全部数据,否则可能会导致数据重复 delete from test_temp; insert into test_temp select * from test_temp as of t...
分类:
数据库 时间:
2015-11-02 09:08:40
阅读次数:
217
重定向$echo "test redirect" > temp.txt --将输出写入temp.txt,temp.txt文件中的内容首先被清空。$echo "test redirect second" > temp.txt --将输出追加到temp.txt。文件描述符0 --stdin标准输入1 -...
分类:
系统相关 时间:
2015-10-30 13:54:50
阅读次数:
198
#include<stdio.h>intmain(){ inti,temp,count=0,num=0,sum=0; scanf("%d%d",&count,&num); temp=num; for(i=1;i<=count;i++) { sum=sum+num; num=num*10+temp;//常犯错误,初次编程会写成num=num*10+mun,但是忘记了num每次都会递归调用会变化的 } printf("..
分类:
其他好文 时间:
2015-10-30 02:15:06
阅读次数:
143