C Language Cultivation

Chapter 3: Infinite loop (3)

Views:

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

Lin Xun told Wang Anan and Zhao Jianshe about the situation.

Zhao Jiji was confused: "Above our heads, there is a turbo c interface? How many years ago is this an antique?"

Wang An'an was even more confused: "The problem is not that it is an antique, but why do you have this hallucination?"

Said, he looked up at the top of his head: "There is nothing."

Lin Xun stared at the interface: "It is indeed a turbo c, very high-definition."

He said, "Luo, which subject should I be in?"

Luo Dao: "I have registered Jingke for you."

Wang An'an laughed out loud: "Jingke day trip, Lin Shuhe."

Zhao Jiji's voice is straight, like the announcer of the Science and Education Channel: "Xun, a person who is different even when he is sick."

The Jetta drove towards the nearest hospital.

A middle-aged doctor in a white coat sat in the consulting room, and asked kindly, "What's the matter?"

Lin Xun: "I had hallucinations."

Halfway through his words, the doctor frowned and looked at him: "How old are you? Twenty?"

Lin Xun: "Twenty-four."

"You're still very young, you look young too," the doctor said while typing on the keyboard to record information, "What are you doing? Are you still studying?"

"No reading, programmer."

"Programmers..." The doctor's attitude became more cautious: "Programmers are prone to problems. Is there any specific content for the hallucinations?"

Lin Xun looked at the blank program interface above the doctor's head: "I saw a... projection-like program input interface appearing above everyone's head."

The doctor's action of typing the information paused, and he was very serious: "Is it clear?"

"Clear."

"Have you heard hallucinations?"

"No."

"Any other hallucinations?"

"Never had."

"Do you have a history of semen?"

"No."

"How long?"

"Starting this morning."

"You have a very clear mind," the doctor said, turning to Wang Anan, who was accompanying the doctor: "Does he usually behave strangely?"

Wang Anan: "No, it's just programming the computer all day."

"How is your sperm state?"

"Pretty refined."

"What's your personality like, is it easy to go to extremes?"

Lin Xun wondered if I was that kind of person.

But he heard Wang An'an say, "A little bit."

Lin Xun: "?"

The doctor also said, "Huh?"

Wang An'an scratched his head: "He's a bit… kind of competitive. For example, if a program cannot be written, he will keep writing it until it is written. If someone writes it before him, he will be angry."

The doctor said: "This is also understandable."

He turned to Lin Xun and asked again, "Did you experience any stimulation when you had a sudden hallucination?"

Lin Xun: "I met me today... Idol, I may be a little excited."

"Tsk." The doctor passed him a scale: "Let's do an evaluation first."

Lin Xun filled out more than 200 assessment questions.

When the doctor got the result, he swiped it: "I'm still very positive. But I'm really paranoid, and it looks like a little lemon."

Lin Xun: "..."

Didn't he just sour lions today

"There is nothing wrong with the essence." The doctor said: "It is not a psychological reason. It is recommended to go to the internal medicine department for an MRI."

Lin Xun was thrown into the consultation room of the Department of Economics.

Then, like a ball, he was thrown to the ophthalmology department by the economics department.

The final conclusion is that no matter where there is no problem, go back and get a good night's sleep.

After a toss, it was already dark.

As soon as Wang Anan and Zhao Jianshe returned, they fell on the sofa and laughed, saying that Lin Algorithm also had a day when programming went crazy.

Lin Xun didn't want to pay attention to them, so he took a glass of ice water from the refrigerator and took a few sips.

Wang An An went over and grabbed his cup: "I'm going to get drunk and drink it!"

Then threw him a thermos cup soaked in wolfberry.

Lin Xun was watched by these two people and drank wolfberry soaked in water, and then said to them: "I really don't like hot and sweet."

Wang An An: "Go away, you lost 30 million today, so you don't have the right to speak."

Lin Xun: "..."

He was driven to sleep.

The doctor said that there was no substantive problem, so he didn't worry too much, thinking that he might really go into trouble, just take a nap.

The overall framework of "Luo" is already set up. He pondered the optimization algorithm for a while, painted a few scratch papers, and was about to sleep.

Before going to bed, I was still a little excited when I thought about my experience in the galaxy today.

So he turned on his mobile phone, clicked on Weibo, and then clicked on Dongjun's homepage in the special attention.

The id of Dongjun is very simple, it is called: Galaxy-dongjun.

The avatar was written in gray on a white background, extremely cold, with two random numbers, like some kind of password.

Dongjun does not seem to use social networks. This account only posted a Weibo 10 years ago when Galaxy had not yet been created—at that time, Dongjun was only seventeen or eighteen years old, and the content of the Weibo was:

"lo asked me why I looked at the stars.

I think galaxy and code are the same thing, which is also an answer. "

There are more than 100,000 comments on Weibo, and I can't get it to the end. Some of them are tourist groups: "Meet Dong, gx is the best language in the world."

Part of it is howling: "Aaaaaa Dongjun!"

Another part is more perverted: "Teenage Dongjun hee hee hee hee hee."

The remaining small part is lemon essence: "Who is lo? I'm dead."

This kind of lemon speech is understandable, after all, the man only has one Weibo, and on this significant and only Weibo, another person's name is also mentioned. Therefore, some people guess that this is Dongjun's best friend, and some people guess that this is his first love. In short, there are different opinions.

Lin Xun has no desire to explore the man's personal life, he just likes to come to tout the man after he understands a piece of code of the man.

What are you going to blow this time? All that should be blown.

Suddenly, an epiphany flashed in his mind, and he commented: "The man is so good-looking!"

The comments were submerged in the ocean of other people's comments, but Lin Xun was satisfied.

He turned off the phone and closed his eyes.

The next moment, he suddenly opened his eyes!

He seemed to be frightened, took a few breaths, and slowly closed his eyes again.

Consciousness seemed to sink into another world. After closing his eyes, what appeared in front of him was a huge blue screen—the input interface of C language.

He sat in a swivel chair and tried to reach out and touch the blue screen.

Just as the fingers touched the light curtain, mechanical sounds suddenly came from all directions.

"System loading."

"Card loading."

"turbo c platform activation."

"The dendrogram is active."

"Mission activated."

"The novice guide task is open."

"Mission objective: bleed air into the body."

"Task reward: The sect's territory is expanded, and the spiritual power is increased by 10."

"Task progress: 0."

Lin Xun: "?"

He was full of question marks.

At this moment, he felt the light on his right hand side, and when he looked over there, he saw a golden floating scroll with the mission goals, rewards, and progress that Mechanic said just now.

Intake air into the body? Sect territory? He can understand these nouns, but why are they related to the C language

He carefully observed the scroll and began to look around.

It was a dark space, but there were silver stars floating in the air, rising from the ground and floating upward, illuminating the place. He looked closely at the light spots and found that some of them were Arabic numerals 1 and some were 0.

The front is the C language interface, the right is the task, the left is nothing, and there is a tree behind it.

He walked up to the tree - it was an image of a flat tree, the roots were bright silver, the light faded further up, and at the transition between the root and the trunk, there was the letter "c", and further up, the whole Trees have only dim outlines.

An ordinary letter c doesn't mean much, but once it is associated with the c language interface, it is very meaningful.

C language is a language, a special programming language.

Programming languages are divided into high-level languages and low-level languages. Low-level languages are computer languages—such as machine language composed entirely of binary sequences and assembly language composed of mnemonics, which act directly on machines.

A high-level language is a human language. People write code in a high-level language, and the code is converted into machine language by the compiler of this language, and then acts on the machine.

However, the c language is different.

It is a high-level language with its own syntax. However, at the same time, it has certain operational capabilities on the machine, such as controlling memory. Therefore, it is sometimes jokingly called "intermediate language" between low-level languages and high-level languages.

"The root of the tree is machine language, or it represents the machine. The trunk and branches may represent the user, so the C language is between the root and the trunk." Lin Xun said: "Now this space has a C language compilation interface, and this tree The tree also lights up to this part of 'c' - if I continue to light up, I may get the control capabilities of many languages such as c, c++, python, and maybe gx."

But what is this used for

He involuntarily looked at the quest scroll whose style was obviously inconsistent, and then looked at the program input interface.

Since there is a compiler, he will... program. This is as simple as drinking cold water for a programmer.

C language, he still will.

But how to enter

Lin Xun raised his hands and placed them in the air.

The silver light flowed, and the next moment, a snow-white keyboard actually appeared under his subordinates!

With the keyboard, Lin Xun immediately felt a lot more at ease. The programmer has a keyboard. It feels like a mathematician who has a warehouse of scratch paper. It makes people very comfortable and has a sense of security.

He typed out the code smoothly.

This string of code is the first demonstration program that is commonly used in all well-known programming language textbooks. Later programmers also developed this habit. When they were faced with an unfamiliar programming environment and wanted to debug, they would enter this program subconsciously.

First issue the preprocessing directives so that the compiler does not recognize the following statements: include

Then call the main function int main()

It is followed by a curly bracket {, and the function body is written under the brackets.

The purpose of this program is to output a sentence, so use the statement: printf("hello orld\n")

Finally write: return 0; indicates that the main function ends normally, enclosed in curly braces }.

Write a program.

Running, the screen is switched, and the pure black running interface appears, with two words appearing on it.

hello orld

— The first words a computer utters to a human.

The light on the right flickered.

Lin Xun turned his head to look and saw that the progress of the task reached 100% in an instant.

The mechanical voice sounded again: "The novice guide task is completed, entering the Qi refining period, the sect's territory is expanding, and spiritual power +10."

This is it

Lin Xun was still thinking, when he heard the mechanical sound ring again.

"Main quest activated."

"Mission goal: to open the air artery and build a foundation."

"Task reward: sect capital +50, spiritual power +30."

"Task progress: 0."

Facing the compilation interface, Lin Xun went through the basic operations of the C language in his mind and was eager to try it.

- If he plays like this, then he won't be sleepy.

Not to mention building a foundation, even if it is a calamity crossing, what difficulty is there

He would like to see what the so-called sect territory and sect funds are.