#include
#include
void main(int argc,char *argv[])
{
FILE *in,*out;
if(argc!=3)
{
printf("you forgot to enter a file name\n");
exit(0);
}
if((in=fopen(argv[1],"r"))==NULL)
{
printf("cannot...
分类:
编程语言 时间:
2014-05-14 21:37:56
阅读次数:
321
1.简单Java多线程例子(继承Thread)publicclasshelloextendsThread{
privateStringname;
publichello(Stringname){
this.name=name;
}
publicvoidrun(){
for(inti=0;i<5;i++){
System.out.println(name+"运行..."+i);
}
}
publicstaticvoidmain(String[]args){
hellohel..
分类:
编程语言 时间:
2014-05-14 17:45:57
阅读次数:
318
数据库解锁SELECTA.OWNER,A.OBJECT_NAME,B.XIDUSN,B.XIDSLOT,B.XIDSQN,B.SESSION_ID,B.ORACLE_USERNAME,B.OS_USER_NAME,B.PROCESS,B.LOCKED_MODE,C.MACHINE,C.STATUS,C.SERVER,C.SID,C.SERIAL#,C.PROGRAMFROMALL_OBJECTSA,V$LOCKED_OBJECTB,SYS.GV_$SESSIONCWHERE(A.OBJECT_ID=..
分类:
数据库 时间:
2014-05-14 17:43:54
阅读次数:
331
{
"cmd":["g++","${file}","-o","${file_path}/${file_base_name}"],
"file_regex":"^(..[^:]*):([0-9]+):?([0-9]+)?:?(.*)$",
"working_dir":"${file_path}",
"selector":"source.c,source.c++",
"encoding":"cp936",
"variants":
[
{
"name":"Run",
"shell":true,
"cmd":["st..
分类:
编程语言 时间:
2014-05-14 17:25:25
阅读次数:
300
Sometimesthemavenbuildingjustneedsoneormore3rdpartyjars,andthejarscannotbedownloadedandinstalledautomaticallybyInternet.Thenyoucaninstallthesejarsmanually.1st.Installa3rdpartyjarpackageintomavenrepositormvninstall:install-file-DgroupId=<jar‘sgroupdId>..
分类:
其他好文 时间:
2014-05-14 17:23:24
阅读次数:
343
-------android培训、java培训、期待与您交流!----------MyEclipse相关知识Workspace与project切换工作空间:File---SwitchWorkspace---Other一个工作间包含多个工程,切换工作间之后,会影响里面的工程,例如快捷键什么的都要重新配置如果重新配了之后快捷键还没有用就要考虑..
分类:
其他好文 时间:
2014-05-14 17:01:52
阅读次数:
304
expdpsystem/oracledirectory=DB_BAKdumpfile=zhzy.dmpschemas=zhzyexpdpsystem/SYSTEMdirectory=DB_BAKdumpfile=sde__zyyh_zhzy.dmpschemas=(sde,zyyh,zhzy)logfile=expdp_all.logexpdpsystem/SYSTEMdirectory=DB_BAKdumpfile=sde__zyyh_zhzy.dmpschemas=(sde,zyyh,zhzy)logfi..
分类:
数据库 时间:
2014-05-14 16:12:39
阅读次数:
360
date--help用法:date[选项]...[+格式]或:date[-u|--utc|--universal][MMDDhhmm[[CC]YY][.ss]]以给定的格式显示当前时间,或是设置系统日期。-d,--date=字符串显示指定字符串所描述的时间,而非当前时间-f,--file=日期文件类似--date,从日期文件中按行读入时间描述-r,--refer..
分类:
系统相关 时间:
2014-05-14 16:11:37
阅读次数:
863
staticint_osip_message_parse(osip_message_t*sip,constchar*buf,size_tlength,intsipfrag){inti;constchar*next_header_index;char*tmp;char*beg;tmp=osip_malloc(length+2);if(tmp==NULL){OSIP_TRACE(osip_trace(__FILE__,__LINE__,OSIP_ERROR,NULL,"Couldnotallocatememory..
分类:
其他好文 时间:
2014-05-14 16:06:25
阅读次数:
296
项目要写个DLL调用硬件,因为人力资源的原因只能用Delphi7开发,结果发现传递中文有点问题,研究了一番后解决,其实很简单,关键是使用system.pas下的编码解码方法。以下在本机测试通过。环境:Win764位旗舰版JDK1.6x86MyEclipse8.6Delphi7Delphi代码:libraryProject2;
uses
S..
分类:
其他好文 时间:
2014-05-14 15:54:07
阅读次数:
405