In the first chapter of "Boulevard to Jane", Mr. Greatlypraised quoted a parable of "Yugong Yishan", which leads to the fundamental of programming: order, selection and circulation. Soup asked in the Yugong Yishan of this incident, we saw the original demand for the emergence of the---"Correctional Mountain north of the plug, access to the roundabout." Foolish public A pedestrian "gather room and seek", finally foolish public established a goal---Biliping risk, refers to the south of the South, Tatsu and Hanyin. The foolish public leads his family "buckle stone ken Soil, Ji Hod and the tail of Bohai Sea". In this program, he is the project organizer, team manager, programmer, technical analyst and many other outstanding roles. "Though I die, there is a son," "Son and Born Sun, sun and children, descendants, infinite chamber also." As a good program analyst, the foolish public discussed the feasibility of this cycle. The project of "Yugong Yishan" is huge, but it can be accomplished by the extremely simple. Some of the people around me once said, "I was born without programming." If they looked at Mr. Zhou's book and did not know that he would not think so, Mr. Zhou in the "will or do not write a program problem" to give his own view: In addition to the congenital retarded or late lazy, will write the program. I think programming is a certain difficulty.
1. The fine meaning of programming
Yugong Yishan
public class yugong{
public static void Main (String[]args) {
while (mountain not flat) {
If (The Foolish man dies) has the son to reply the Yan;
His son replaced him;
Buckle stone Ken Soil, Ji Hod transported in the tail of the Bohai Sea;
}
System.out.println ("The mountain has been flat, referring to the south of Henan, up to Hanyin");
}
2. Question of whether the program will be written
public class Write Program
{
public static void Main (string[] args)
{
If (you're not retarded//You're not lazy)
System.out.println ("You will compile the program.") ”);
Else
SYSTEM.OUT.PRINTLN ("You won't make up the program.") ”);
if (know cold weather can first wear clothes after washing | | You know it's hot, you can wear it and wash it first.
If (you know there are special cases that can be special on that day)
System.out.println ("You will make the program and show it to the designer.") ”);
}
}
3.
. program = algorithm + structure
public class chengxu{
public static void Main (String[]args) {
If (a task is received) {
To analyze the events clearly;
Code implementation;
}
If (you are diligent) System.out.println ("You are the most hardworking programmer");
}
}
4. Programming languages
if (you== "familiar with a language")
{
string problem;
Switch (problem)
{
Case "like": Break;
Case "does not like": break;
Dafult:break;
}
string others;
if (others = = "Talk about the quality of the language")
{
System.out.pringtln ("You will find this to be wrong, even sad");
}
}
String age;
if (Times = = "No Project")
SYSTEM.OUT.PRINTLN ("No Engineering Master");
}
}
Java pseudo-code (Chapter I.)