题目解题过程://物理数学题#include#include#includeusing namespace std;int main(){ double h,l,v,ans; while(scanf("%lf%lf%lf",&h,&l,&v)!=EOF) { if(h...
分类:
其他好文 时间:
2014-06-28 10:17:39
阅读次数:
182
#include #define MAXLINE 20int main(void){char line[MAXLINE];while(fgets(line,MAXLINE,stdin) != NULL && line[0] != '\n') fputs(line, stdout);return 0;...
分类:
其他好文 时间:
2014-06-26 00:18:04
阅读次数:
256
#coding = utf-8import osstr1 = 'd:/v3/'str2 = 'd:/v3/'fobj = open('D:/V3/txt/1.txt','rb')line = fobj.readline()while line: if(line.find('a') > 0):...
分类:
其他好文 时间:
2014-06-25 23:22:26
阅读次数:
270
For a period before the recent nationwide gold industry shutdown, Duration was Zimbabwe’s second largest gold producer. Up until that point, it had en...
分类:
其他好文 时间:
2014-06-25 23:20:27
阅读次数:
274
了解存储过程之前,先了解一下mysql的控制结构。
类似C语言(if……else、while循环等)SQL也有自己的控制结构。
if……else控制结构:
例如:
(1)
if 判断表达式
then 执行语句;
end if;
与c语言进行比较
if(判断表达式)
执行语句;
(2)
if 判断表达式1
then 执行语句1;
else...
分类:
数据库 时间:
2014-06-22 16:39:46
阅读次数:
295
1.忽略额外的换行符do{c=getchar();}while(c==‘\n’);用处:Linux会暂存用户输入的内容,知道用户按下回车键,然后将用户输入字符及紧随其后的回车符一起传给程序,所以\n也会被getchar()获取,造成程序产生不想见的输出。忽略的原理即当c通过getchar函数获得一个...
分类:
系统相关 时间:
2014-06-22 09:36:18
阅读次数:
216
DFS太慢,用SCR好点点
Python 只有 22 行,其实可以更短,但是得排成很长很长的一行
while True:
table = [ [ 0 for j in range( 300 ) ] for i in range( 12 ) ]
table[0][0] = 1
boardsize, chessnum = map( int, raw_input().spli...
分类:
其他好文 时间:
2014-06-22 06:49:10
阅读次数:
239
转载请注明出处:http://www.openext.org/2014/06/virt-install-erro1使用virt-install安装vm的时候出现了一下错误,解决方法如下:$sudo ./create-vm-demo.shStarting install…ERROR internal error process exited while connecting to monitor: ...
分类:
其他好文 时间:
2014-06-22 06:34:56
阅读次数:
271
/*实现函数:
void f(int a, int b, int c)
编码中不允许出现燃和if,switch,for,while之类的关键词以及"?:"表达式,并要求:
a=1时,打印b+c的值;
a=2时,打印b-c的值;
a=3时,打印b*c的值;
a=4时,打...
分类:
其他好文 时间:
2014-06-22 06:09:03
阅读次数:
197
题目31:八进制转换为十进制
1.程序分析:
2.程序源代码:
main()
{ char *p,s[6];int n;
p=s;
gets(p);
n=0;
while(*(p)!='\0')
{n=n*8+*p-'0';
p++;}
printf("%d",n);
}
题目32:求0—7所能组成的奇数个数。
......
分类:
其他好文 时间:
2014-06-21 20:45:13
阅读次数:
150