C Language Cultivation

Chapter 26: Object Oriented (2)

Views:

.{^,^,First^post}^.^.First^post Input address: м..

Xiaoyaozi withdrew quickly. Lin Xun has no doubt that if he withdraws more slowly, Old Man Huo will have a few more apprentices.

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

After a brief embarrassment, new news emerged.

Xiaoyaozi: Congratulations, Brother Qingshan! /applause/applause

The seniors below also quickly copied it, and the group was full of harmony.

Three minutes later, in order to prove the authenticity of his "self-healing meridians due to a good mood", old man Huo shared a WeChat article "Mentality determines health" in the group. Several seniors also took out the articles they collected on weekdays and began to discuss how to maintain health.

Fairy Bihai, who is proficient in Dan Dao, came out to refute the rumor: "It's not that tofu and spinach can't be eaten together, and fellow Daoists should not believe that food is mutually exclusive."

Xiaoyaozi was the first to refute: "I would rather believe what it is than not believe it."

Lin Xun smiled at the chat interface for a while, turned off the phone, and entered the system space with a deep heart.

The interface is still that interface.

The tasks are still those tasks.

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

- That tree.

Lin Xun stepped forward, the root of the tree was bright, and an equally bright letter C was written next to it.

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

The first branch on the right that extends from the trunk has "C++" written next to it.

Lin Xun's breath trembled a little for an instant.

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

The second root on the right, H.

The second root from the left, Java.

Further up, nothing changes. The top half of the tree is still blank.

- And the names that appear at present are all mainstream high-level programming languages, which are qualitatively different from the C language.

C is a procedural language, and now these four languages are object-oriented languages.

The biggest difference between the two languages is modularity—the principle, if presented in detail, is very complex, but it can be illustrated with a simple metaphor.

There is a home, he created a new document and started to create a long article in it. This article is placed in this ord document from beginning to end.

Therefore, every time I create, I have to open the document, pull it to the bottom, and start writing. If he writes and realizes that there is a logical problem ahead, or that new plots need to be added, he must rummage from bottom to top, find the corresponding position, and start revising. If the document crashes, the entire content will be lost

- This process is very daunting to think about, but no one with a normal mind would do this.

A normal person will create a new document every time he writes a new chapter and write in it. If he wants to modify, he only needs to quickly locate the document that should be modified according to the chapter name. If the document is broken, it will only affect the content of one chapter.

The first approach is procedural-oriented programming, and the second, object-oriented programming.

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

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

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

All in all, object-oriented programming is a significant invention in human history.

Lin Xun was faintly excited.

If he could master one of these languages, he would be able to support a sword cultivator of Jindan stage like Shang Yanyangzi, and he would be able to support him for more time, so that he would not fall to the point of being disconnected from the Internet to ensure safety.

So, how do you learn these languages

He tentatively pressed his finger on one of the branches.

The mechanical voice sounded: "Light up the skill tree, required spiritual power: 120, existing spiritual power: 95, insufficient spiritual power, lighting failed."

Lin Xun narrowed his eyes.

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

Complete the tasks released by the system, obtain spiritual power, meet the requirements of spiritual power, and light up the skill tree.

-Lin Xun felt a bigger surprise than the previous keyboard modification. As soon as he thought that he would be able to use a more convenient language in the future, and maybe even light up Gx here one day, he was eager to try it.

Lin Xun, who was eager to try, came to the task interface.

The task interface is really updated.

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

Mission Objective: Reach the Golden Core Stage

Mission Reward: Sect Fund +100, Sect Territory Level +1, Spiritual Power +50

Mission Progress: 0/100

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

To the left of the golden task, there is an additional blue scroll.

He opens.

Daily Quest: Killing Evils and Destroying Demons

Mission Objective: Destroy monsters

Quest Reward: Spiritual Power +5

Mission time limit: 24 hours

Mission Progress: 0/5

Yes, first there are main quests that reward funds and territories, side quests that reward treasure chests, and now there are even daily quests.

Lin Xun felt that he had a lot to do for a while.

However, what attracted him the most was the reward from the main quest.

Facts have proved that the sect's territory is the land owned by the Luo Company, and the sect's funds are the money in reality.

Among them, 1 sect fund is equivalent to 10,000 in reality.

The reward for reaching the Qi refining period is sect territory +1, and they have an extra house that can be used that day. The reward for reaching the foundation-building stage is the sect fund +50, and the old man Huo immediately rewarded him with 500,000.

Another obvious thing is that the 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 with a new text message.

Luo will filter the information, and will block all those who take out loans, sell houses, and sell on Taobao stores. Call bill notices, bank news, and government announcements such as "sweeping gangs and evil" and "protecting green mountains and green waters" are only received, not alerted.

Therefore, Lin Xun hardly receives text message reminders.

Then, there is only one possibility, this is Dongjun's information.

really.

A very simple message.

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

Lin Xun calculated tomorrow's itinerary countless times.

Then, he replied: OK.

Back, Lin Xun opened his suitcase and fell into deep thought.

In the end, he had to take a photo and send it to Zhao Jiji to ask about tomorrow's clothes.

The next morning, it was time to prepare to return to the imperial capital.

Xiaoyaozi really got a big truck. They put the Scarlet Sky Dragon Sparrow Sword and Jade Coffin into the carriage and locked them on the road.

- The person in charge of driving the truck is Yufeng Zhenren, who is famous for his sword-wielding skills. It is said that he flew recklessly over the Bohai Sea and was considered by radar to be an aircraft of a neighboring country, which almost caused a dispute between the two countries.

And one can tell the other way, one pass will make everything, Yufeng Zhenren's driving skills are also very superb, and even holds the corresponding driver's license. Let him drive, everyone is very relieved.

Old man Huo was familiar with the imperial capital and had a deep cultivation base, so the position of the co-pilot naturally belonged to him.

Therefore, Lin Xun could only go back alone.

The plane was not delayed and landed at 1:00 pm.

The second-hand Jetta shared by the three of them had arrived at the airport parking apron on time according to the autopilot program, and Lin Xun was accurately picked up by it as soon as he landed.

Then, at three o'clock, he was already at the Milky Way.

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

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

The phone suddenly lit up, Dongjun's phone.

Lin Xun picked it up.

Dongjun's voice was still familiar and deep and pleasant: "Have you set off yet?"

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

The opposite Dong Jun seemed to laugh a little, and Lin Xun couldn't hear a very light voice.

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

"get off."

Lin Xun was stunned by these two words of Dongjun.

After a while, Dong Jun continued: "I'm on the eleventh floor."

Lin Xun ended the call and got out of the car obediently.

The sky was cloudy and the wind was strong, but the genius Zhao Jiji had expected this.

The clothes he arranged for Lin Xun's distance were of the right thickness. It was a hooded black coat one size larger than the normal size, with graffiti and some messy letters on the coat.

Last night, Zhao Zhixian blew this outfit into hype and said, "Algorithm, I have already imagined you wearing it, a kind of naive melancholy - like a genius hacker whose parents have died, who just hacked the intelligence of the Federation. system, looking up at the sky and feeling a sense of loneliness with nowhere to go.”

Lin Xun gave him a clapping expression.

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

Lin Xun pulled the zipper to the top, looked at the glass of the car, and felt like a truant boy with no emotion.

He reached the eleventh floor, and in front of him was an empty long corridor and a closed conference room door.

He took out his mobile phone and wanted to confirm with Dongjun again, but at this moment, the door closest to him opened and a person came out.

—A person that Lin Xun did not expect.

Chen Xi, the boss of Lions. This man stepped out of the office door, dressed in a suit and leather shoes, with a straight back, an elite look, and a smug look all over his body.

Of course, thinking about it is also true, he has a successful career and one step to the sky, of course he is proud of the spring breeze, 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 Lions' invitation, he had a holiday with this person. In the past two years, Luo has not had a little splash, so I don't know how many times Chen Xi laughed in his heart.

Chen Xi raised his eyebrows and said, "Why are you here?"

Lin Xun lowered his eyes and said in a flat tone, "Look for someone."

Chen Xi: "Are you still working on that project?"

Lin Xun: "Well."

Chen Xi smiled, shook his head again, and seemed to feel sorry for him: "Okay."

Lin Xun didn't really want to talk to him, and after a few words of laziness, he wanted to move on.

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