<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.5">Jekyll</generator><link href="https://clexpectation.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://clexpectation.github.io/" rel="alternate" type="text/html" /><updated>2019-12-16T04:07:12+00:00</updated><id>https://clexpectation.github.io/feed.xml</id><title type="html">Home Of Leon</title><subtitle>-----最具价值的网络资源汇聚之地-----</subtitle><entry><title type="html">C语言基础算法案例</title><link href="https://clexpectation.github.io/C-algorithm-case/" rel="alternate" type="text/html" title="C语言基础算法案例" /><published>2017-01-09T00:00:00+00:00</published><updated>2017-01-09T00:00:00+00:00</updated><id>https://clexpectation.github.io/C-algorithm-case</id><content type="html" xml:base="https://clexpectation.github.io/C-algorithm-case/">&lt;p&gt;1、C语言打印一条语句&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/* C Program to print a sentence. */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;int main()&lt;/p&gt;

&lt;p&gt;{&lt;/p&gt;

&lt;p&gt;printf(“C Programming”); /* printf() prints the content inside quotation */&lt;/p&gt;

&lt;p&gt;return 0;&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;输出：&lt;/p&gt;

&lt;p&gt;C Programming&lt;/p&gt;

&lt;p&gt;2、C语言打印用户输入的一个整数&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main()
{
    int num;
    printf(&quot;Enter a integer: &quot;);  
    scanf(&quot;%d&quot;,&amp;amp;num);  /* Storing a integer entered by user in variable num */
    printf(&quot;You entered: %d&quot;,num);
    return 0;
}
输出：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter a integer: 25
You entered: 25
3、C语言实现两个整数相加&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/*C programming source code to add and display the sum of two integers entered by user */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main( )
{
    int num1, num2, sum;
    printf(&quot;Enter two integers: &quot;);
    scanf(&quot;%d %d&quot;,&amp;amp;num1,&amp;amp;num2); /* Stores the two integer entered by user in variable num1 and num2 */&lt;/stdio.h&gt;&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sum=num1+num2;      /* Performs addition and stores it in variable sum */
printf(&quot;Sum: %d&quot;,sum);  /* Displays sum */
return 0; } 输出：
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Enter two integers: 12
11
Sum: 23
4、C语言实现两个小数相乘&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/*C program to multiply and display the product of two floating point numbers entered by user. */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main( )
{
    float num1, num2, product;
    printf(&quot;Enter two numbers: &quot;);
    scanf(&quot;%f %f&quot;,&amp;amp;num1,&amp;amp;num2);        /* Stores the two floating point numbers entered by user in variable num1 and num2 respectively */
    product = num1*num2;  /* Performs multiplication and stores it */
    printf(&quot;Product: %f&quot;,product);
    return 0;
}
输出：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter two numbers: 2.4
1.1
Product: 2.640000
5、C语言查找字符的ASCII值&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/* Source code to find ASCII value of a character entered by user */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
    char c;
    printf(&quot;Enter a character: &quot;);
    scanf(&quot;%c&quot;,&amp;amp;c);        /* Takes a character from user */
    printf(&quot;ASCII value of %c = %d&quot;,c,c);
    return 0;
}
输出：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter a character: G
ASCII value of G = 71
6、C语言根据用户输入的整数做商和余数&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/* C Program to compute remainder and quotient  */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
    int dividend, divisor, quotient, remainder;
    printf(&quot;Enter dividend: &quot;);
    scanf(&quot;%d&quot;,&amp;amp;dividend);
    printf(&quot;Enter divisor: &quot;);
    scanf(&quot;%d&quot;,&amp;amp;divisor);
    quotient=dividend/divisor;           /*  Computes quotient */
    remainder=dividend%divisor;          /* Computes remainder */
    printf(&quot;Quotient = %d\n&quot;,quotient);
    printf(&quot;Remainder = %d&quot;,remainder);
    return 0;
}
输出：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter dividend: 25
Enter divisor: 4
Quotient = 6
Remainder = 1
7、C语言获取整型、单精度浮点型、双精度浮点型和字符型的长度&lt;/p&gt;

&lt;p&gt;基本语法是：&lt;/p&gt;

&lt;p&gt;temp = sizeof(operand);
/* Here, temp is a variable of type integer,i.e, sizeof() operator 
   returns integer value. */
源代码：&lt;/p&gt;

&lt;p&gt;/* This program computes the size of variable using sizeof operator.*/&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
    int a;
    float b;
    double c;
    char d;
    printf(&quot;Size of int: %d bytes\n&quot;,sizeof(a));
    printf(&quot;Size of float: %d bytes\n&quot;,sizeof(b));
    printf(&quot;Size of double: %d bytes\n&quot;,sizeof(c));
    printf(&quot;Size of char: %d byte\n&quot;,sizeof(d));
    return 0;
}
输出：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Size of int: 4 bytes
Size of float: 4 bytes
Size of double: 8 bytes
Size of char: 1 byte
注：可能会由于系统的不同出来的结果也不尽相同。&lt;/p&gt;

&lt;p&gt;8、C语言获取关键字long的长度范围&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
    int a;
    long int b;                /* int is optional. */
    long long int c;            /* int is optional. */
    printf(&quot;Size of int = %d bytes\n&quot;,sizeof(a));
    printf(&quot;Size of long int = %ld bytes\n&quot;,sizeof(b));
    printf(&quot;Size of long long int = %ld bytes&quot;,sizeof(c));
    return 0;
}
输出：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Size of int = 4 bytes
Size of long int = 4 bytes
Size of long long int = 8 bytes
9、C语言交换数值&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
      float a, b, temp;
      printf(&quot;Enter value of a: &quot;);
      scanf(&quot;%f&quot;,&amp;amp;a);
      printf(&quot;Enter value of b: &quot;);
      scanf(&quot;%f&quot;,&amp;amp;b);
      temp = a;    /* Value of a is stored in variable temp */
      a = b;       /* Value of b is stored in variable a */
      b = temp;    /* Value of temp(which contains initial value of a) is stored in variable b*/
      printf(&quot;\nAfter swapping, value of a = %.2f\n&quot;, a);
      printf(&quot;After swapping, value of b = %.2f&quot;, b);
      return 0;
}
输出：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter value of a: 1.20
Enter value of b: 2.45&lt;/p&gt;

&lt;p&gt;After swapping, value of a = 2.45
After swapping, value of b = 1.2
10、C语言检查数值是奇数还是偶数&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/*C program to check whether a number entered by user is even or odd. */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
      int num;
      printf(&quot;Enter an integer you want to check: &quot;);
      scanf(&quot;%d&quot;,&amp;amp;num);
      if((num%2)==0)      /* Checking whether remainder is 0 or not. */
           printf(&quot;%d is even.&quot;,num);
      else
           printf(&quot;%d is odd.&quot;,num);
      return 0;
}
输出1：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter an integer you want to check: 25
25 is odd.
输出2：&lt;/p&gt;

&lt;p&gt;Enter an integer you want to check: 12
12 is even.
也可以用条件运算符解决：&lt;/p&gt;

&lt;p&gt;/* C program to check whether an integer is odd or even using conditional operator */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
    int num;
    printf(&quot;Enter an integer you want to check: &quot;);
    scanf(&quot;%d&quot;,&amp;amp;num);
    ((num%2)==0) ? printf(&quot;%d is even.&quot;,num) : printf(&quot;%d is odd.&quot;,num);
    return 0;
}
11、C语言检查是元音还是辅音&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
  char c;
  printf(&quot;Enter an alphabet: &quot;);
  scanf(&quot;%c&quot;,&amp;amp;c);
  if(c=='a'||c=='A'||c=='e'||c=='E'||c=='i'||c=='I'||c=='o'||c=='O'||c=='u'||c=='U')
       printf(&quot;%c is a vowel.&quot;,c);
  else
       printf(&quot;%c is a consonant.&quot;,c);
  return 0;
}
输出1：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter an alphabet: i
i is a vowel.
输出2：&lt;/p&gt;

&lt;p&gt;Enter an alphabet: G
G is a consonant.
也可以用条件运算符解决&lt;/p&gt;

&lt;p&gt;/* C program to check whether a character is vowel or consonant using conditional operator */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
 char c;
 printf(&quot;Enter an alphabet: &quot;);
 scanf(&quot;%c&quot;,&amp;amp;c);
 (c=='a'||c=='A'||c=='e'||c=='E'||c=='i'||c=='I'||c=='o'||c=='O'||c=='u'||c=='U') ? printf(&quot;%c is a vowel.&quot;,c) : printf(&quot;%c is a consonant.&quot;,c);
  return 0;
}
输出结果和上面的程序相同。&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;12、C语言实现从三个数值中查找最大值&lt;/p&gt;

&lt;p&gt;实现1：&lt;/p&gt;

&lt;p&gt;/* C program to find largest number using if statement only */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
      float a, b, c;
      printf(&quot;Enter three numbers: &quot;);
      scanf(&quot;%f %f %f&quot;, &amp;amp;a, &amp;amp;b, &amp;amp;c);
      if(a&amp;gt;=b &amp;amp;&amp;amp; a&amp;gt;=c)
         printf(&quot;Largest number = %.2f&quot;, a);
      if(b&amp;gt;=a &amp;amp;&amp;amp; b&amp;gt;=c)
         printf(&quot;Largest number = %.2f&quot;, b);
      if(c&amp;gt;=a &amp;amp;&amp;amp; c&amp;gt;=b)
         printf(&quot;Largest number = %.2f&quot;, c);
      return 0;
}
实现2：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;/* C program to find largest number using if…else statement */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
      float a, b, c;
      printf(&quot;Enter three numbers: &quot;);
      scanf(&quot;%f %f %f&quot;, &amp;amp;a, &amp;amp;b, &amp;amp;c);
      if (a&amp;gt;=b)
      {
          if(a&amp;gt;=c)
            printf(&quot;Largest number = %.2f&quot;,a);
          else
            printf(&quot;Largest number = %.2f&quot;,c);
      }
      else
      {
          if(b&amp;gt;=c)
            printf(&quot;Largest number = %.2f&quot;,b);
          else
            printf(&quot;Largest number = %.2f&quot;,c);
      }
      return 0;
}
实现3：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;/* C Program to find largest number using nested if…else statement */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
      float a, b, c;
      printf(&quot;Enter three numbers: &quot;);
      scanf(&quot;%f %f %f&quot;, &amp;amp;a, &amp;amp;b, &amp;amp;c);
      if(a&amp;gt;=b &amp;amp;&amp;amp; a&amp;gt;=c)
         printf(&quot;Largest number = %.2f&quot;, a);
      else if(b&amp;gt;=a &amp;amp;&amp;amp; b&amp;gt;=c)
         printf(&quot;Largest number = %.2f&quot;, b);
      else
         printf(&quot;Largest number = %.2f&quot;, c);
      return 0;
}
输出结果相同：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter three numbers: 12.2
13.452
10.193
Largest number = 13.45
13、C语言解一元二次方程&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/* Program to find roots of a quadratic equation when coefficients are entered by user. &lt;em&gt;/
/&lt;/em&gt; Library function sqrt() computes the square root. */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
#include &lt;math.h&gt; /* This is needed to use sqrt() function.*/
int main()
{
  float a, b, c, determinant, r1,r2, real, imag;
  printf(&quot;Enter coefficients a, b and c: &quot;);
  scanf(&quot;%f%f%f&quot;,&amp;amp;a,&amp;amp;b,&amp;amp;c);
  determinant=b*b-4*a*c;
  if (determinant&amp;gt;0)
  {
      r1= (-b+sqrt(determinant))/(2*a);
      r2= (-b-sqrt(determinant))/(2*a);
      printf(&quot;Roots are: %.2f and %.2f&quot;,r1 , r2);
  }
  else if (determinant==0)
  {
    r1 = r2 = -b/(2*a);
    printf(&quot;Roots are: %.2f and %.2f&quot;, r1, r2);
  }
  else
  {
    real= -b/(2*a);
    imag = sqrt(-determinant)/(2*a);
    printf(&quot;Roots are: %.2f+%.2fi and %.2f-%.2fi&quot;, real, imag, real, imag);
  }
  return 0;
}
输出1：&lt;/math.h&gt;&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter coefficients a, b and c: 2.3
4
5.6
Roots are: -0.87+1.30i and -0.87-1.30i
输出2：&lt;/p&gt;

&lt;p&gt;Enter coefficients a, b and c: 4
1
0
Roots are: 0.00 and -0.25
14、C语言检查是否是闰年&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/* C program to check whether a year is leap year or not using if else statement.*/&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main(){
      int year;
      printf(&quot;Enter a year: &quot;);
      scanf(&quot;%d&quot;,&amp;amp;year);
      if(year%4 == 0)
      {
          if( year%100 == 0) /* Checking for a century year */
          {
              if ( year%400 == 0)
                 printf(&quot;%d is a leap year.&quot;, year);
              else
                 printf(&quot;%d is not a leap year.&quot;, year);
          }
          else
             printf(&quot;%d is a leap year.&quot;, year );
      }
      else
         printf(&quot;%d is not a leap year.&quot;, year);
      return 0;
}
输出1：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter year: 2000
2000 is a leap year.
输出2：&lt;/p&gt;

&lt;p&gt;Enter year: 1900
1900 is not a leap year.
输出3：&lt;/p&gt;

&lt;p&gt;Enter year: 2012
2012 is a leap year.
15、C语言检查一个数是正数、负数还是零&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main()
{
    float num;
    printf(&quot;Enter a number: &quot;);
    scanf(&quot;%f&quot;,&amp;amp;num);
    if (num&amp;lt;=0)
    {
        if (num==0)
          printf(&quot;You entered zero.&quot;);
        else
          printf(&quot;%.2f is negative.&quot;,num);
    }
    else
      printf(&quot;%.2f is positive.&quot;,num);
    return 0;
}
也可以使用if-else语句&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;/* C programming code to check whether a number is negative or positive or zero using nested if…else statement. */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main()
{
    float num;
    printf(&quot;Enter a number: &quot;);
    scanf(&quot;%f&quot;,&amp;amp;num);
    if (num&amp;lt;0)      /* Checking whether num is less than 0*/
      printf(&quot;%.2f is negative.&quot;,num);
    else if (num&amp;gt;0)   /* Checking whether num is greater than zero*/
      printf(&quot;%.2f is positive.&quot;,num);
    else
      printf(&quot;You entered zero.&quot;);
    return 0;
}
输出1：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter a number: 12.3
12.30 is positive.
输出2：&lt;/p&gt;

&lt;p&gt;Enter a number: -12.3
-12.30 is negative.
输出3：&lt;/p&gt;

&lt;p&gt;Enter a number: 0
You entered zero.
16、C语言检查某字符串是不是字母&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/* C programming code to check whether a character is alphabet or not.*/&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main()
{
    char c;
    printf(&quot;Enter a character: &quot;);
    scanf(&quot;%c&quot;,&amp;amp;c);
    if( (c&amp;gt;='a'&amp;amp;&amp;amp; c&amp;lt;='z') || (c&amp;gt;='A' &amp;amp;&amp;amp; c&amp;lt;='Z'))
       printf(&quot;%c is an alphabet.&quot;,c);
    else
       printf(&quot;%c is not an alphabet.&quot;,c);
    return 0;
}
输出1：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter a character: *&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;is not an alphabet
输出2：&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Enter a character: K
K is an alphabet
17、C语言计算自然数的和&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/* This program is solved using while loop. */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main()
{
    int n, count, sum=0;
    printf(&quot;Enter an integer: &quot;);
    scanf(&quot;%d&quot;,&amp;amp;n);
    count=1;
    while(count&amp;lt;=n)       /* while loop terminates if count&amp;gt;n */
    {
        sum+=count;       /* sum=sum+count */
        ++count;
    }
    printf(&quot;Sum = %d&quot;,sum);
    return 0;
}
也可以使用for循环语句&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;/* This program is solve using for loop. */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main()
{
    int n, count, sum=0;
    printf(&quot;Enter an integer: &quot;);
    scanf(&quot;%d&quot;,&amp;amp;n);
    for(count=1;count&amp;lt;=n;++count)  /* for loop terminates if count&amp;gt;n */
    {
        sum+=count;                /* sum=sum+count */
    }
    printf(&quot;Sum = %d&quot;,sum);
    return 0;
}
输出：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter an integer: 100
Sum = 5050
也可以通过if-else语句&lt;/p&gt;

&lt;p&gt;/* This program displays error message when user enters negative number or 0 and displays the sum of natural numbers if user enters positive number. */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main()
{
    int n, count, sum=0;
    printf(&quot;Enter an integer: &quot;);
    scanf(&quot;%d&quot;,&amp;amp;n);
    if ( n&amp;lt;= 0)
        printf(&quot;Error!!!!&quot;);
    else
    {
       for(count=1;count&amp;lt;=n;++count)  /* for loop terminates if count&amp;gt;n */
       { 
          sum+=count;                    /* sum=sum+count */
       }
       printf(&quot;Sum = %d&quot;,sum);
    }
    return 0;
}
18、C语言计算阶乘&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;对于任意正数n，阶乘指的是：&lt;/p&gt;

&lt;p&gt;factorial = 1&lt;em&gt;2&lt;/em&gt;3*4….n
如果数值是负数，那么阶乘就不存在。并且我们规定，0的阶乘就是1。&lt;/p&gt;

&lt;p&gt;源代码：&lt;/p&gt;

&lt;p&gt;/* C program to display factorial of an integer if user enters non-negative integer. */&lt;/p&gt;

&lt;p&gt;#include &lt;stdio.h&gt;
int main()
{
    int n, count;
    unsigned long long int factorial=1;         
    printf(&quot;Enter an integer: &quot;);
    scanf(&quot;%d&quot;,&amp;amp;n);
    if ( n&amp;lt; 0)
        printf(&quot;Error!!! Factorial of negative number doesn't exist.&quot;);
    else
    {
       for(count=1;count&amp;lt;=n;++count)    /* for loop terminates if count&amp;gt;n */
       {
          factorial*=count;              /* factorial=factorial*count */
       }
    printf(&quot;Factorial = %lu&quot;,factorial);
    }
    return 0;
}
输出1：&lt;/stdio.h&gt;&lt;/p&gt;

&lt;p&gt;Enter an integer: -5
Error!!! Factorial of negative number doesn’t exist.
输出2：&lt;/p&gt;

&lt;p&gt;Enter an integer: 10
Factorial = 3628800
先介绍到这里，下一篇将分享更多的C语言基础算法，敬请期待。&lt;/p&gt;</content><author><name></name></author><summary type="html">1、C语言打印一条语句</summary></entry><entry><title type="html">Free Code Camp homework!</title><link href="https://clexpectation.github.io/FCC-homeworks/" rel="alternate" type="text/html" title="Free Code Camp homework!" /><published>2017-01-08T00:00:00+00:00</published><updated>2017-01-08T00:00:00+00:00</updated><id>https://clexpectation.github.io/FCC-homeworks</id><content type="html" xml:base="https://clexpectation.github.io/FCC-homeworks/">&lt;p&gt;1.简单网页设计-背景图片固定。（&lt;a href=&quot;http://s.codepen.io/clexpectation/debug/wgxNja/VJkxxwvQaKak#contact&quot;&gt;作品集&lt;/a&gt;）&lt;/p&gt;
&lt;p&gt;2.简单网页设计-改进型（&lt;a href=&quot;http://codepen.io/clexpectation/full/YNeBXX/&quot;&gt;兄弟连&lt;/a&gt;）&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/config.png&quot; alt=&quot;_config.yml&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The easiest way to make your first post is to edit this one. Go into /_posts/ and update the Hello World markdown file. For more instructions head over to the &lt;a href=&quot;https://github.com/barryclark/jekyll-now&quot;&gt;Jekyll Now repository&lt;/a&gt; on GitHub.&lt;/p&gt;</content><author><name></name></author><summary type="html">1.简单网页设计-背景图片固定。（作品集） 2.简单网页设计-改进型（兄弟连）</summary></entry><entry><title type="html">You’re up and running!222***1!!********222</title><link href="https://clexpectation.github.io/Hello-word2/" rel="alternate" type="text/html" title="You're up and running!222***1!!********222" /><published>2016-12-29T00:00:00+00:00</published><updated>2016-12-29T00:00:00+00:00</updated><id>https://clexpectation.github.io/Hello-word2</id><content type="html" xml:base="https://clexpectation.github.io/Hello-word2/">&lt;p&gt;Next you can update your site name, avatar and other options using the _config.yml file in the root of your repository (shown below).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/config.png&quot; alt=&quot;_config.yml&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The easiest way to make your first post is to edit this one. Go into /_posts/ and update the Hello World markdown file. For more instructions head over to the &lt;a href=&quot;https://github.com/barryclark/jekyll-now&quot;&gt;Jekyll Now repository&lt;/a&gt; on GitHub.&lt;/p&gt;</content><author><name></name></author><summary type="html">Next you can update your site name, avatar and other options using the _config.yml file in the root of your repository (shown below).</summary></entry></feed>