Chereads / C Language Cultivation / Chapter 26 - Chapter 26 - Object-oriented (2)

Chapter 26 - Chapter 26 - Object-oriented (2)

Xiaoyaozi withdrew quickly. Lin Xun had no doubt that if he withdrew more slowly, Old Huo would have more apprentices.

He also has no doubt that at this moment, many people must have seen this rollover accident-the seniors simply lived on WeChat.

After a brief embarrassment, new news appeared.

Xiaoyaozi: Congratulations to Aoyama! Applause applause

The seniors below also quickly copied it, and the scene of harmony in the group.

After three minutes, Mr. Huo shared a WeChat article "Mentality determines health" in the group in order to prove the authenticity of his "self-healing due to comfortable mood". Several seniors also took out articles they had collected on weekdays and began to discuss how to keep in good health.

Fairy Master Bihai Fairy came out to refute the rumor: "Tofu spinach is not impossible to eat with, and all Taoists should not believe in food."

Xiaoyaozi took the lead in refuting: "It's better to believe than to have nothing."

Lin Xun smiled at the chat interface for a while, turned off his phone, and sank his mind into the system space.

The interface is still that interface.

Tasks are still those tasks.

However, when he turned to look behind his back, his eyes widened suddenly.

-That tree.

Lin Xun stepped forward, the roots of the tree were bright, and an equally bright letter c was written beside it.

Further up, the trunk and branches are still dim, but now, some letters appear next to them.

The first branch on the right extending from the trunk is written with "c" next to it.

Lin Xun's breath shuddered a moment.

Then go up, the first branch on the left, python.

The second root on the right, php.

The second root on the left, java.

Further up, nothing will change. The upper part of the tree is still blank.

——The names that appear now are all mainstream high-level programming languages, which are qualitatively different from the C language.

c is a process-oriented language, and now these four languages ​​are object-oriented languages.

The biggest difference between the two languages ​​is modularity-the principles in it are very complicated if they are to be presented specifically, but they can be explained with a simple analogy.

At one family, he created a new document and started to write a long article in it. This article was placed in this word document from beginning to end.

Therefore, every time you create, you must open the document, pull it to the bottom, and start writing. If he writes and realizes that there is a logic problem in front of him, or if he needs to add a new plot, he must search from the bottom to the top, find the corresponding position, and start to modify. If the document crashes, all content will be lost

——This process is very big to think about, but anyone with a normal head will not do so.

Every time a normal person writes a new chapter, he creates a new document and writes in it. If he wants to modify, he can quickly locate the document to be modified according to the chapter name. If the document is broken, it will only affect the content of one chapter.

The first method is process-oriented programming, and the second method is object-oriented programming.

Process-oriented programming is like a doll whose joints are welded to death. Object-oriented programming components can be disassembled and used in other dolls. Obviously, object-oriented is more flexible and playable.

What's more, because of the different structures, each language has its special strengths.

Lin Xun uses the C language crawler to observe the environment and obtain information, but if he uses a Python language crawler to do this-the efficiency will be greatly increased.

In short, object-oriented programming is a significant invention in human history.

Lin Xun faintly excited.

If he can master one of these languages, he can also support more time for the Jindan period sword repair like Yanyangzi, so as not to fall so quickly to the point of disconnecting the network to ensure safety.

So, how do you learn these languages?

He tentatively pressed his hand…finger on one of the branches.

From mechanical sound: "Lighting the skill tree, required spiritual power: 120, existing spiritual power: 95, insufficient spiritual power, lighting failure."

Lin Xun narrowed his eyes.

It turns out that spiritual power is used to do this!

Complete the tasks issued by the system, obtain spiritual power, spiritual power meets the requirements, and light up the skill tree.

—— Lin Xun felt a bigger surprise than the previous keyboard was transformed. As soon as he thought that he could use more convenient language in the future, he might even try to light up glax here one day.

Lin Xun eager to try came to the task interface.

The task interface has been updated.

After completing the foundation, the main task of the first stage was completed. He unfolded the new golden scroll and saw that it read:

Mission objective: Reaching the golden age

Mission Rewards: Martial School Fund 100, Martial School Territory Level 1, Spirit Power 50

Task progress: 0100

After taking this task, he looked to the other side.

On the left side of the golden mission, there is an additional blue scroll.

He opened.

Daily tasks: blame evil

Mission objective: eliminate monsters

Mission Reward: Spiritual Power 5

Mission time limit: 24 hours

Task progress: 05

Yes, first of all, there are main tasks for rewarding funds and territory, and side tasks for rewarding treasure chests. Now even daily tasks are available.

Lin Xun felt that there were a lot of things to do at one time.

However, what attracted him most was the reward of the main task.

Facts have proved that the martial land is the land owned by Luoshen Company, and the martial capital is the money in reality.

Among them, one faction fund is equivalent to 10,000 in reality.

The reward for reaching the gas refining period is Martial Territory 1. On that day they have an extra house available. The reward for reaching the foundation period is 50 yuan from the school. Old man Huo immediately awarded him 500,000.

Another obvious thing is that rewards are not given out of thin air, but in accordance with the logic of real life-can the power of the system affect the real world?

Lin Xun didn't know.

Leaving from the system space, he returned to reality.

The phone screen lights up and there are new text messages.

Luo will filter the information, and loans, houses, and sales in Taobao stores will all be stopped. Telephone bill notifications, bank news, and government announcements such as "suppressing evil and eliminating evil" and "protecting green mountains and green waters" are all received, and no prompts are skipped.

Therefore, Lin Xun hardly receives SMS reminders.

Then, there is only one possibility. This is Dongjun's message.

really.

A very simple message.

"Tomorrow at four o'clock in the Milky Way."

Lin Xun counted countless trips tomorrow.

Then he replied: Okay.

After returning, Lin Xun opened his suitcase and fell into contemplation.

In the end, he had to take a picture and sent Zhao Jianji the past, asking about tomorrow's clothing.

Early the next morning, it was about to return to the imperial capital.

Xiaoyaozi really got a big truck, they put the Chixiao Longque sword and the jade coffin into the carriage, and locked the road.

——The person responsible for driving the truck is Yufeng Zhenren, who is known for his skill in swordsmanship. It is said that he flew freely over the Bohai Sea and was regarded by radar as an aircraft of a neighboring country.

While one can reverse the other three, one pass will lead to one pass, and Yufeng's real driving skills are also very good, even holding a corresponding driver's license. Everyone was relieved to drive by him.

Old Huo was familiar with the imperial capital, and he was deeply trained. The position of the first officer naturally belonged to him.

So Lin Xun could only go back alone.

There was no delay in the plane. The landing was at 1 pm.

The second-hand Jetta shared by the three of them has arrived at the airport parking apron on time according to the automatic driving procedure, and Lin Xun was accurately received as soon as he landed.

Then…after three o'clock, he was already on the galaxy.

This is not the same as Lin Xun's prediction-after all, there are many accidental factors in the real world, and today there is no traffic jam at all.

He was sitting in the car, looking at the Galaxy Building with his cheeks, a little confused.

Suddenly the cell phone lit up, Dongjun's phone.

Lin Xun took it.

Dongjun's voice is still familiar and low-pitched: "Have you set off?"

Lin Xun: "…I seem to be early."

The opposite Dongjun seemed to laugh a little, a very light breath, Lin Xun didn't hear clearly.

Lin Xun was a bit desperate: "I'll go to the cafe opposite for a while."

"get off."

These two words of Dongjun made Lin Xun stunned.

After a moment, only listen to Dongjun continued: "I am on the eleventh floor."

Lin Xun ended the conversation and got off the train.

The sky is overcast and the wind is very strong, but the genius Zhao Fang actually predicted this.

The clothing he arranged remotely for Lin Xun was of a suitable thickness. It was a hooded black jacket one size larger than the normal version, with graffiti and some messy letters on the jacket.

Zhao Jizhuo blown up the suit last night, saying, "Algorithm, I have imagined how you put it on, a naive melancholy-like a genius hacker whose parents died, just hacked the federal The intelligence system looked up at the sky and felt a loneliness with nowhere to go."

Lin Xun gave him an applause.

It can be seen that the emotional cells of the architecture have accumulated to nowhere to play, and he should be a poet.

Lin Xun pulled the zipper to the top, looked at the car glass, and felt like a schoolboy who had no emotion.

He reached the eleventh floor, in front of a long empty corridor, and the closed meeting room door.

He took out his phone and wanted to confirm with Dongjun again, but at this moment, the nearest door opened and he came out alone.

——An unexpected person from Lin Xun.

Chen Xi, the boss of lions. The man stepped out of the office door, in a suit and leather shoes, his back was straight, his face was elite, and his body was full of pride.

Of course, think about it too. He has a successful career. He is proud of himself in one step, which is different from Lin Xun.

Lin Xun looked at him, of course, he also saw Lin Xun.

I saw him walking towards Lin Xun's position.

——Lin Xun thought, when he refused the invitation of Lions, he had a holiday with this person. In the past two years, Luoshen did not have any water splashes. I am afraid I don't know how many times Chen Xi laughed at him.

Chen Xi raised an eyebrow and said, "Why are you here?"

Lin Xun lowered his eyes, and his tone was flat: "Find someone."

Chen Xi: "You are still working on that project?"

Lin Xun: "Well."

Chen Xi smiled and shook his head again, and seemed to regret him: "Come on."

Lin Xun didn't want to talk to him very much, he lazily dealt with two sentences, and wanted to move on.

Chen Xi didn't let him go. After adjusting his tie, he lifted his chin to Lin Xun: "Do you recognize the way? Who are you looking for? I will take you there."