码迷,mamicode.com
首页 >  
搜索关键字:_exit    ( 5821个结果)
[CSharp]2 Application、Page、NavigationWindow和Frame
1.ApplicationApplication 是封装 WPF 特定功能的类,包括:应用程序生存期: Activated,Current,Deactivated,DispatcherUnhandledException,Exit,Run,SessionEnding,Shutdown,Shutdow...
分类:移动开发   时间:2015-01-24 19:57:08    阅读次数:446
用fcntl()设置堵塞函数的堵塞性质
#include #include #include #include #include #include #include #define ERR_EXIT(m) \ do { \ perror(m);\ exit(EXIT_FAILURE);\ }whil...
分类:其他好文   时间:2015-01-24 18:36:52    阅读次数:201
Linux系统root密码修改
重启系统。 进入系统引导界面: 按下e键: 选择第二项,内核启动参数设置,按下e键: 在结尾处,输入数字 1或者 英文 " single",再回车: 按下b键启动,此时以单用户模式级别引导启动程序: 启动完之后,命令passwd修改密码,修改完之后,再命令exit,退出重启,登录时使用刚刚修改后.....
分类:系统相关   时间:2015-01-24 14:23:48    阅读次数:219
常用工具类1
Runtime类的使用、执行其他程序、 利用currentTimeMillis()记录程序执行的时间。——System类的使用、exit()退出方法、获取和设置环境属性、Date类的简单使用、使用SimpleDateFormat格式化输出时间、Calendar类的特色、利用GregorianCale...
分类:其他好文   时间:2015-01-24 14:18:07    阅读次数:203
Linux下利用fork()创建子进程并使父进程等待子进程结束
int status;pid_t t = fork();if(t){waitpid(t, &status, 0);}else{system("vi temp.txt");exit(0);}//父进程和子进程均执行完毕后继续执行下去分析过程:if和else还是选择分支。主要的原因是,fork()函数调...
分类:系统相关   时间:2015-01-24 11:27:03    阅读次数:170
Codeforces Round #287 (Div. 2)C. Guess Your Way Out!
Amr bought a new video game "Guess Your Way Out!". The goal of the game is to find an exit from the maze that looks like a perfect binary tree of heig...
分类:其他好文   时间:2015-01-24 08:57:37    阅读次数:240
shell IFS readLine.sh
processLine() { line="$@" echo $line } FILE="" if [ "$1" == "" ]; then FILE="/dev/stdin" else FILE="$1" if [ ! -f $FILE ]; then echo "$FILE : does not exists" exit 1 ...
分类:系统相关   时间:2015-01-23 20:07:29    阅读次数:242
Windows下return,exit和ExitProcess的区别和分析
通常,我们为了使自己的程序结束,会在主函数中使用return或调用exit()。在windows下还有ExitProcess()和TerminateProcess()等函数。本文的目的是比较以上几种结束程序的方式的区别,并分析其原理。首先我们用一个例子来说明几种结束方式的区别。测试代码如下:#inc...
分类:Windows程序   时间:2015-01-23 12:40:32    阅读次数:324
another app is currently holding the yum lock;waiting for it to exit解决
有时用yum升级一些文件时,会出现以下情况:another app is currently holding the yum lock;waiting for it to exit...可以通过强制关掉yum进程: www.2cto.com #rm -f /var/run/yum.pid然后就可以使...
分类:移动开发   时间:2015-01-22 12:40:27    阅读次数:138
批量缩放图片的脚本
#!/bin/bash # author : jiangxf 2015.1.21 if [ $# -lt 2 ]; then     echo "Usage: resizePng.sh {pngName} {percentage}";     exit; fi width=`sips -g pixelWidth $1 | tail -n1 | awk...
分类:其他好文   时间:2015-01-21 13:27:40    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!