Chapter 103 Code Specification (1st Update)

(New book period, ask for flowers, ask for collection!) Since Jiang Hua came to the class pretending to be a high school student, Xiao Yuan has lived a life of going in and out with bodyguards, of course, only the two of them know that Jiang Hua is his bodyguard, in the eyes of the classmates, it is Jiang Hua, a transfer student, and Xiao Yuan hit it off at first sight and became inseparable good friends, and there is not much worth paying attention to.

Compared with the two of them at first sight, Jiang Hua was very powerful at the school gate, and the things like chopping melons and vegetables could attract the attention of the students, coupled with this guy's delicate appearance, it added a lot of points to him, so that after coming to school again on Friday afternoon, many girls looked at him with ** spicy eyes, and even some bold girls would take the initiative to talk to him, and then after he responded with a smile, he ran away in an uproar, hid aside and giggled, and cast a few curious and shy glances from time to time.

This situation made Xiao Yuan unbearable, and even a little indignant, thinking that he Xiao Yuan had done a big thing that made the whole school sensational before the National Day, why didn't he attract the attention of so many girls.

On Saturday morning, Xiao Yuan made an appointment with Tang Xinyu and came to the school, preparing to go to the audio-visual education building to find Tang Xinyu, and then use the computer in the school's computer room to make technical documents for the firewall.

came to school with Jiang Hua, because it was the weekend, they didn't save their bicycles in the carport, but rode directly to the audio-visual education building, but they didn't want to meet Yu Zhengfeng halfway.

"You two stop!" Yu Zhengfeng drank them, walked over with a gloomy face, and asked with a sneer, "Xiao Yuan, you are not allowed to ride a bicycle on campus, don't you know?" ”

"Who are you?" Xiao Yuan was about to answer, but Jiang Hua rushed to ask on the side.

"I'm Yu Zhengfeng, the director of the Student Affairs Department, and you, although I just transferred here, I still have to abide by the school's regulations." Yu Zhengfeng said.

"Xiao Yuan, you go to Mr. Tang first, and I'll talk to this director." Jiang Hua ignored Yu Zhengfeng's preaching, and turned to Xiao Yuan and said.

"Okay." Xiao Yuan was too lazy to deal with Yu Zhengfeng, and Jiang Hua was blocking for him, so he was naturally happy to accept it, so he rode to the audio-visual education building, and turned his head to take a look on the way, but found that Yu Zhengfeng was hugged by Jiang Hua's neck and walked aside.

"Heh, isn't this guy looking for a place where no one is and beating Yu Zhengfeng, right?" Xiao Yuan muttered in his heart, but he didn't take it too seriously, came to the audio-visual education building, parked his bicycle downstairs, and went upstairs to Tang Xinyu's office.

After entering the door, he exchanged a few words with Tang Xinyu, and then Tang Xinyu took him to the computer room.

"Oh, by the way, Mr. Tang, I've read the counseling materials you gave me, have you written anything more in-depth, and find me two more?" Before Xiao Yuan started to work, he took out the two tutoring materials for the mathematical modeling competition from his bag, handed them to Tang Xinyu, and said.

"You're done so soon?"

Tang Xinyu felt incredible, to say that these two books are not thin, there are a lot of contents in them, and they are very difficult, he originally thought that Xiao Yuan could read through it before the competition, and it would be enough to do eighty percent of the questions in it, but he didn't want Xiao Yuan to finish it.

"Yes, a lot of things in it are very rare, and they are also very troublesome, and it takes a lot of effort, and they even have to write algorithmic pseudocode, otherwise they would have read it earlier." Xiao Yuan said.

"Done with the questions?" Tang Xinyu swallowed and asked again.

"It's done." Xiao Yuan replied.

"All the pseudo-codes for those design questions have been written?" Tang Xinyu asked again, his voice a little astringent.

"Yes, it's written, what's the problem?" Xiao Yuan asked rhetorically, Tang Xinyu's expression made him feel strange.

"Where, let me see." Tang Xinyu hurriedly asked.

"I didn't bring it, it's all written in the exercise book, if you want to read it, I can go to the classroom and bring it to you, but it's not all, some of it is at home." Xiao Yuan is going home now, it is a bit time-consuming, but it doesn't take much time to go to the classroom, and it just so happens that he also has the key to the classroom, so he said.

"Okay, you go and get it for me, let me see." On the one hand, Tang Xinyu wanted to see the algorithm design of these questions, and more importantly, on the other hand, he was very interested in the pseudocode written by Xiao Yuan, so he said.

Xiao Yuan came out of the computer room, walked downstairs to the audio-visual education, and met Jiang Hua who came upstairs.

"What about Yu Zhengfeng?" Xiao Yuan asked.

"Gone." Jiang Hua said.

"He let you go so easily?" Xiao Yuan asked curiously.

"He wasn't going to invite me to tea, he didn't let me go, and he couldn't detain me, but you, why did you come down again?" Jiang Hua said lightly.

"I'll go to the classroom, you go up first, go to the computer room on the third floor, Teacher Tang is there." Xiao Yuan said.

"I'll go with you."

Jiang Hua didn't go upstairs alone, but turned around, went downstairs with Xiao Yuan, and walked to the teaching building not far away.

"You won't beat Yu Zhengfeng, right?" On the way, Xiao Yuan asked again.

"No, what am I hitting him for?" Jiang Hua denied.

"Then how can he listen to you and let you go easily, this is not in line with his usual style." Xiao Yuan asked.

"I'm not a real student, so it's not difficult to deal with the director of the primary student department of a school." Jiang Hua said with a slight smile.

Xiao Yuan returned to the classroom, rummaged through the desk, found two exercise books full of pseudocode, and took them back to the audio-visual building with Jiang Hua.

Tang Xinyu didn't show much surprise at Jiang Hua's arrival, although Xiao Yuan didn't ask, but he could guess that Tang Sa should have greeted Tang Xinyu in advance, he gave Tang Xinyu the exercise book full of pseudocode, and then sat down next to the computer, opened the office software that came with the computer, and started to work, Jiang Hua found a student machine and sat down, after opening it, he called up the minesweeper game and played it with interest.

Tang Xinyu also sat down, slowly looked at the pseudocode given to him by Xiao Yuan, and as soon as he opened the first page, he felt that his eyes lit up, and he didn't care about looking at the specific algorithm content, but quickly turned a few pages back, and then turned his head to look at Xiao Yuan, and said with emotion: "Is this pseudocode, it is clearly a standard C code." ”

Pseudocode is an algorithm description language, somewhat similar to program code, but the syntax is not so strict, in order to describe the algorithm clearly, it can even be mixed with Chinese, the purpose of using pseudocode is to facilitate reading, and so that it can be easily converted into real program code in the future.

Professionals know that it is easy to write code, but it is difficult to read code, especially to read some code written by half-programmers who have not developed good programming habits.

You can imagine that a large software team, among which there are some programmers, wrote tens of thousands of lines, or even hundreds of thousands of lines of code that they can't understand every once in a while, and one day he leaves, then, what kind of dilemma will the next programmer who takes over his work face, can't understand, delay the construction period, a series of problems will follow, and may even lead to a disaster.

Therefore, in a formal software team, there must be a strict code format specification, in which the code format such as the naming of variable names in the code, blank lines in the code, and comments will be very strict.

Originally, Tang Xinyu thought that Xiao Yuan was still a high school student and had no rigorous programming training, and these pseudo-codes were still written by him in the exercise book, which should be very casual, but when he turned the first page, he found that he was wrong, because what he saw was a very standardized pseudo-code in C language format, these codes have strict indentation, blank lines, and just right, detailed and appropriate comments, reading such code gave Tang Xinyu a pleasing feeling, If Xiao Yuan uses a computer program development environment to write code in this format, because the development environment has an automatic typesetting function, it is nothing, but these codes are handwritten by Xiao Yuan in the exercise book, and they can be written very strictly in accordance with a certain format specification, then it shows that this kind of code specification has formed a basic conditioned reflex for Xiao Yuan.

"Any questions?" Xiao Yuan heard Tang Xinyu muttering, turned his head and asked.

ps: The first update is delivered, today is the first day after the New Year's Day holiday, green tea wishes friends a happy and smooth study, work.