Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Jun 28, 2016
0 parents commit a1f3851
Show file tree
Hide file tree
Showing 179 changed files with 17,268 additions and 0 deletions.
251 changes: 251 additions & 0 deletions Java应用技术/考点 2015秋冬.html

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 大学英语Ⅲ/作业答案.rar
Binary file not shown.
Binary file added 大学英语Ⅲ/背诵材料音频.zip
Binary file not shown.
Binary file not shown.
Binary file added 大学英语Ⅳ(H)/听力音频.zip
Binary file not shown.
1 change: 1 addition & 0 deletions 操作系统原理/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
一定要去听 JJM 的复习课!
Binary file added 操作系统原理/作业/简答/1-2.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/简答/10.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/简答/11.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/简答/12-13.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/简答/3-4.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/简答/5.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/简答/6.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/简答/7.doc
Binary file not shown.
Binary file added 操作系统原理/作业/简答/8.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/简答/9.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/选择/1-2.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/选择/10-11.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/选择/12-13.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/选择/3-4.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/选择/5.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/选择/6.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/选择/7.pdf
Binary file not shown.
Binary file added 操作系统原理/作业/选择/8-9.pdf
Binary file not shown.
Binary file not shown.
Binary file added 操作系统原理/试卷/2000.doc
Binary file not shown.
Binary file added 操作系统原理/试卷/2003-2004 答案.doc
Binary file not shown.
Binary file added 操作系统原理/试卷/2003-2004.doc
Binary file not shown.
Binary file added 操作系统原理/试卷/2004-2005 答案.doc
Binary file not shown.
Binary file added 操作系统原理/试卷/2004-2005.doc
Binary file not shown.
Binary file added 操作系统原理/试卷/2005-2006.doc
Binary file not shown.
Binary file added 操作系统原理/资料/A4.doc
Binary file not shown.
Binary file added 操作系统原理/资料/A4(未使用).doc
Binary file not shown.
Binary file not shown.
Binary file added 操作系统原理实验/试卷/2003-2004.doc
Binary file not shown.
Binary file added 操作系统原理实验/试卷/2003-2004.pdf
Binary file not shown.
Binary file not shown.
Binary file added 操作系统原理实验/试卷/2004-2005.doc
Binary file not shown.
Binary file added 操作系统原理实验/试卷/2004-2005.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 操作系统原理实验/试卷/2005-2006.doc
Binary file not shown.
Binary file added 操作系统原理实验/试卷/2005-2006.pdf
Binary file not shown.
Binary file added 操作系统原理实验/资料/A4.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions 程序设计基础/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
如果有兴趣,可以移步我的博客,查看我的 C 语言易错点清单。

http://blog.zhanghai.me/c-exam-notes/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions 程序设计基础/练习/代码/1/1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <stdio.h>

int main(void)
{
printf("Hello World!\n");
return 0;
}
7 changes: 7 additions & 0 deletions 程序设计基础/练习/代码/1/2.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <stdio.h>

int main(void)
{
printf("What is a computer?\n");
return 0;
}
10 changes: 10 additions & 0 deletions 程序设计基础/练习/代码/1/3.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <stdio.h>

int main(void)
{
printf("****\n");
printf("***\n");
printf("**\n");
printf("*\n");
return 0;
}
7 changes: 7 additions & 0 deletions 程序设计基础/练习/代码/1/4.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <stdio.h>

int main(void)
{
printf("Welcome to You!\n");
return 0;
}
7 changes: 7 additions & 0 deletions 程序设计基础/练习/代码/1/5.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <stdio.h>

int main(void)
{
printf("Programming in C is fun!\n");
return 0;
}
10 changes: 10 additions & 0 deletions 程序设计基础/练习/代码/1/6.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <stdio.h>

int main(void)
{
printf("* * * *\n");
printf(" * * *\n");
printf(" * *\n");
printf(" *\n");
return 0;
}
9 changes: 9 additions & 0 deletions 程序设计基础/练习/代码/30001.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <stdio.h>
#include "genlib.h"

int main(void)
{
int celsius = 37, fahr = 100;
printf("fahr = %d, celsius = %d\n", fahr, celsius);
return 0;
}
9 changes: 9 additions & 0 deletions 程序设计基础/练习/代码/30002.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <stdio.h>
#include "genlib.h"

int main(void)
{
int celsius = 66, fahr = 150;
printf("fahr = %d, celsius = %d\n", fahr, celsius);
return 0;
}
9 changes: 9 additions & 0 deletions 程序设计基础/练习/代码/30003.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <stdio.h>
#include "genlib.h"

int main(void)
{
int celsius = 26, fahr = 78;
printf("celsius = %d, fahr = %d\n", celsius, fahr);
return 0;
}
12 changes: 12 additions & 0 deletions 程序设计基础/练习/代码/30004.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <stdio.h>
#include "genlib.h"

int main(void)
{
int celsius, fahr;

fahr = GetInteger();
celsius = 5 * (fahr - 32) / 9;
printf("celsius = %d\n", celsius);
return 0;
}
9 changes: 9 additions & 0 deletions 程序设计基础/练习/代码/30005.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <stdio.h>
#include "genlib.h"

int main(void)
{
int math = 87, eng = 72, comp = 93, average = 84;
printf("math = %d, eng = %d, comp = %d, average = %d\n", math, eng, comp, average);
return 0;
}
16 changes: 16 additions & 0 deletions 程序设计基础/练习/代码/30006.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"

int main(void)
{
int a, b, c;
double average;

a = GetInteger();
b = GetInteger();
c = GetInteger();
average = (a + b + c) / 3.0;
printf("average = %.2f\n", average);
return 0;
}
9 changes: 9 additions & 0 deletions 程序设计基础/练习/代码/30007.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <stdio.h>
#include "genlib.h"

int main(void)
{
int n = 152, digit1 = 2, digit2 = 5, digit3 = 1;
printf("整数%d的个位数字是%d, 十位数字是%d, 百位数字是%d\n", n, digit1, digit2, digit3);
return 0;
}
10 changes: 10 additions & 0 deletions 程序设计基础/练习/代码/30008.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <stdio.h>
#include "genlib.h"

int main(void)
{
int x,y;
printf("9 = 3 * 3\n");
printf("3 * 3 = 9\n");
return 0;
}
17 changes: 17 additions & 0 deletions 程序设计基础/练习/代码/30009.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <stdio.h>
#include <math.h>
#include "genlib.h"
#include "simpio.h"

int main(void)
{
int money, year;
double interest, rate;

money = GetInteger();
year = GetInteger();
rate = GetReal();
interest = money * pow(1 + rate, year) - money;
printf("interest = %.2f\n", interest);
return 0;
}
17 changes: 17 additions & 0 deletions 程序设计基础/练习/代码/30010.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"

int main(void)
{
int looptimes, ri;
double x, y;

looptimes = GetInteger();
for (ri = 1; ri <= looptimes; ++ri) {
x = GetReal();
y = x == 0 ? 0 : 1 / x;
printf("f(%.2f) = %.1f\n", x, y);
}
return 0;
}
17 changes: 17 additions & 0 deletions 程序设计基础/练习/代码/30011.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <stdio.h>
#include <math.h>
#include "genlib.h"

int main(void)
{
int rep,ri;
double x, y;

rep = GetInteger();
for (ri = 1; ri <= rep; ++ri) {
scanf("%lf", &x);
y = x >= 0 ? sqrt(x) : (pow(x + 1, 2) + 2 * x + 1 / x);
printf("f(%.2f) = %.2f\n", x, y);
}
return 0;
}
17 changes: 17 additions & 0 deletions 程序设计基础/练习/代码/30011_2.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <stdio.h>
#include <math.h>
#include "genlib.h"

int main(void)
{
int rep,ri;
double x, y;

rep = GetInteger();
for (ri = 1; ri <= rep; ++ri) {
x = GetReal();
y = x >= 0 ? sqrt(x) : (pow(x + 1, 2) + 2 * x + 1 / x);
printf("f(%.2f) = %.2f\n", x, y);
}
return 0;
}
17 changes: 17 additions & 0 deletions 程序设计基础/练习/代码/30012.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"

int main(void)
{
int looptimes, ri;
double x, y;

looptimes = GetInteger();
for (ri = 1; ri <= looptimes; ++ri) {
x = GetReal();
y = x != 10 ? x : 1 / x;
printf("f(%.1f) = %.1f\n", x, y);
}
return 0;
}
17 changes: 17 additions & 0 deletions 程序设计基础/练习/代码/30013.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <stdio.h>
#include <genlib.h>
#include "simpio.h"

int main(void)
{
int looptimes, ri;
int x, y;

looptimes = GetInteger();
for (ri = 1; ri <= looptimes; ++ri) {
x = GetInteger();
y = x < 0 ? -1 : (x == 0 ? 0 : 1);
printf("sign(%d) = %d\n", x, y);
}
return 0;
}
9 changes: 9 additions & 0 deletions 程序设计基础/练习/代码/30019.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <stdio.h>
#include "genlib.h"

int main(void)
{
int i = 0, sum = 5050;
printf("sum = %d\n", sum);
return 0;
}
17 changes: 17 additions & 0 deletions 程序设计基础/练习/代码/30020.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"

int main(void)
{
int i, m, sum;
int looptimes, ri;

looptimes = GetInteger();
for (ri = 1; ri <= looptimes; ++ri) {
m = GetInteger();
sum = (m + 100) * (101 - m) / 2;
printf("sum = %d\n", sum);
}
return 0;
}
41 changes: 41 additions & 0 deletions 程序设计基础/练习/代码/30027.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"

int main(void)
{
int choice, i;
double price;

for (i = 1; i <= 5; ++i) {
printf("[1] apples\n");
printf("[2] pears\n");
printf("[3] oranges\n");
printf("[4] grapes\n");
printf("[0] Exit\n");
choice=GetInteger();
if (choice == 0) {
break;
} else {
switch (choice)
{
case 1:
price = 3.0;
break;
case 2:
price = 2.5;
break;
case 3:
price = 4.1;
break;
case 4:
price = 10.2;
break;
default:
price = 0;
}
printf("price = %0.1f\n", price);
}
}
return 0;
}
9 changes: 9 additions & 0 deletions 程序设计基础/练习/代码/30034.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <stdio.h>
#include "genlib.h"

int main(void)
{
int i, sum = 816;
printf("%d", sum);
return 0;
}
34 changes: 34 additions & 0 deletions 程序设计基础/练习/代码/30035.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#include "stdio.h"
#include "genlib.h"
#include "simpio.h"

int main(void)
{
int i, j, n, o, p, q, r;
int looptimes, ri;

looptimes = GetInteger();
for (ri = 1; ri <= looptimes; ++ri) {
n = GetInteger();
/* Print lines */
o = 2 * n;
/* i is line number */
for (i = 1; i != o; ++i) {
/* Print leading spaces */
p = 2 * (n - i);
if (p < 0) { p = -p; }
for (j = 0; j != p; ++j) { printf(" "); }
/* Print asterisks and spaces between */
q = 2 * i - 1;
r = 2 * n - 1;
if (q > r) { q = 2 * r - q; }
for (j = 0; j != q; ++j) {
if (j != 0) { printf(" "); }
printf("*");
}
/* Print new line */
printf("\n");
}
}
return 0;
}
Loading

0 comments on commit a1f3851

Please sign in to comment.