echo 命令rem 命令pause 命令call 命令start 命令goto 命令set
命令编辑本段批处理符号简介回显屏蔽 重定向1 与重定向2 管道符号 转义符
逻辑命令符编辑本段常用DOS命令释义文件夹管理文件管理网络命令系统管理编辑本段语句结构释义if语句选择结构for语句循环结构编辑本...
分类:
其他好文 时间:
2014-07-22 23:11:55
阅读次数:
519
原题地址:http://oj.leetcode.com/problems/insertion-sort-list/题意:对链表进行插入排序。解题思路:首先来对插入排序有一个直观的认识,来自维基百科。
代码循环部分图示:代码:class Solution:# @p...
分类:
编程语言 时间:
2014-07-22 23:11:32
阅读次数:
411
1、单链表循环体用while(p->next!=NULL)而不用while(p!=NULL)的原因 node *Find_MidNode(node
*head){ if(head->next==NULL||head->next->next==NULL) return
head->next; node...
分类:
其他好文 时间:
2014-07-22 23:11:15
阅读次数:
374
给定 ab 与飞 f1 f2 求f(n) = (A * f(n - 1) + B * f(n
- 2)) mod 7.分析:1 因为mod7 0using namespace std;int main(){ int a,b,n; int f[1005];
while(cin>>a>...
分类:
其他好文 时间:
2014-07-22 23:06:34
阅读次数:
391
1. 指针使用2. 在循环体内使用 return 的坏处3. quick and dirty,
performance and design strategy
分类:
编程语言 时间:
2014-07-22 23:06:33
阅读次数:
356
PHP 后台定时循环刷新某个页面如果间隔时间过长的话
会出现apache自动停止的现象。出现的原因则是设置了 ThreadsPerChild 450 MaxConnectionsPerChild
3000错误日志报错[mpm_winnt:notice] [pid 126...
分类:
Web程序 时间:
2014-04-30 20:07:28
阅读次数:
520
foreach(System.Windows.Forms.Controlcontrolinthis.groupBox2.Controls)//遍历groupBox2上的所有控件{
if(controlisSystem.Windows.Forms.PictureBox) { ...
#includeusing namespace std;int main(){ char
a,b,c; while(scanf("%c%c%c",&a,&b,&c)!=EOF) { getchar();
cout<<a<<b<<c<<endl; } retur...
分类:
其他好文 时间:
2014-04-30 14:00:36
阅读次数:
346
//冒泡排序publicclassbubblesorter{publicvoidsort(int[]list){inti,j,temp;booldone=false;j=1;while((jlist[i+1]){done=false;temp=list[i];list[i]=list[i+1];li...
分类:
其他好文 时间:
2014-04-29 17:21:45
阅读次数:
429
#include#include#include#include #includeusing
namespace std;char c[1000005];int main(int argc, char* argv[]){ int
n; scanf("%d", &n); while(n--) { .....
分类:
其他好文 时间:
2014-04-29 16:31:46
阅读次数:
286