aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinweiClarkChao <[email protected]>2014-08-22 17:23:02 +0800
committerJinwei Zhao <[email protected]>2017-01-13 15:07:42 +0800
commit80255411ee7040e0cebbf6b05d2ce323f6f2596e (patch)
tree295b0ef6c85e7cb091b63719ab041596879690fa /Back/Blocks/code.html
parent13be3d058713e1467ffc573a90cc694b80526135 (diff)
downloadjinwei.me-80255411ee7040e0cebbf6b05d2ce323f6f2596e.tar.gz
backup
Diffstat (limited to 'Back/Blocks/code.html')
-rw-r--r--Back/Blocks/code.html97
1 files changed, 97 insertions, 0 deletions
diff --git a/Back/Blocks/code.html b/Back/Blocks/code.html
new file mode 100644
index 0000000..40ff107
--- /dev/null
+++ b/Back/Blocks/code.html
@@ -0,0 +1,97 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3<head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>World of Codes</title>
6 <script type="text/javascript" src="syntax/scripts/shCore.js"></script>
7 <script type="text/javascript" src="syntax/scripts/shBrushCpp.js"></script>
8 <link type="text/css" rel="stylesheet" href="syntax/styles/shCoreDefault.css"/>
9 <style type="text/css">
10 body {
11 background-color: #FF0000;
12 background-image: url();
13}
14 </style>
15 <script type="text/javascript">SyntaxHighlighter.all();</script>
16</head>
17
18<body style="background: white; font-family: Helvetica">
19
20<h1>A gift of code</h1>
21<pre class="brush: cpp;">
22/**
23* We are both from Lanxi No.1 Middle School,where we met for the first time
24* I write some code to celebrate your birthday.
25*/
26#include "stdio.h"
27int main()
28{
29 int i,j;
30 for(i=0;i< 9;i++)
31 {
32 if(i==0||i==8)
33 {
34 for(j=0;j< 11;j++)
35 printf("*");
36 }
37 else
38 {
39 for(j=0;j< 11;j++)
40 {
41 if(j< 7 && j>3)
42 printf("*");
43 else
44 printf(" ");
45 }
46 }
47 printf("\n");
48 }
49 for(i=0;i< 2;i++)
50 {
51 for(j=0;j< 2-i;j++)
52 printf(" ");
53 for(j=0;j< 2*i+1;j++)
54 printf("*");
55 for(j=0;j< 5-2*i;j++)
56 printf(" ");
57 for(j=0;j< 2*i+1;j++)
58 printf("*");
59 printf("\n");
60 }
61 printf("***********\n");
62 for(i=0;i< 6;i++)
63 {
64 for(j=0;j< i;j++)
65 printf(" ");
66 for(j=0;j< 11-2*i;j++)
67 printf("*");
68 printf("\n");
69 }
70 for(i=0;i< 5;i++)
71 {
72 for(j=0;j< 11;j++)
73 if((j<=1&&j>=0)||(j<=10&&j>=9))
74 printf("*");
75 else
76 printf(" ");
77 printf("\n");
78 }
79 for(i=0;i< 5;i++)
80 {
81 for(j=0;j< i;j++)
82 printf(" ");
83 printf("**");
84 for(j=0;j< 7-2*i;j++)
85 printf(" ");
86 if(i==4)
87 printf("*");
88 else
89 printf("**\n");
90 }
91 printf("\n");
92 return 0;
93}
94
95
96</pre>
97</html>
Powered by cgit v1.2.3 (git 2.41.0)