Chapter 31: The Initial Awakening of the System

In the afternoon, the library was deserted, and Zhang Yan was sitting alone in the library to learn C language by herself. The school's programming introduction course for non-computer science students is Basic, and good students usually teach themselves some other languages, such as Fortran and C. At this time, the most popular programming languages on campus were assembly and Fortran languages, and Pascal was a compulsory language for computer science majors. Although C and C++ languages have received a lot of attention, they have not yet become mainstream courses in universities. Facing the C language linked list, one-way for a while, two-way for a while, inserting for a while, and deleting for a while, Zhang Yan learned very painfully, and when she raised her eyes to look around, she suddenly saw Lin Man concentrating on flipping through the books in the middle of the bookshelf of electronic computer technology next to her. Zhang Yan smiled in her heart: "I can see you anywhere." "Zhang Yan has found this situation many times before.

But this time it's really different. For a long time, Lin Man was carefully flipping through the books without distraction, choosing the books he liked.

10 After a few minutes, Lin Man finally selected a few books, walked out of the bookshelf, saw Zhang Yan looking over here, nodded and was about to leave. Zhang Yan was wondering how someone had changed sex, and stopped again when she saw Lin Man, who had taken two steps.

Lin Man realized how stupid his actions were just now. What a great opportunity, there is still time before the afternoon class, why not go and chat with the beautiful woman and have a good time?

Lin Man turned around, walked over to meet Zhang Yan's playful eyes, and sat down in the empty space beside her.

Zhang Yan closed her lips, the corners of her mouth curved down slightly, and asked with her eyes, "Why are you back?" She found some simple meanings, and without saying it at all, Lin Man could understand it from her eyes. It's a good feeling.

Lin Man pretended to shrug his shoulders and whispered, "I suddenly remembered that I didn't have a meal ticket to eat." Beauty, can you give me a dinner for the sake of me playing with you?"

Zhang Yan smiled, biting her lip to prevent herself from laughing out loud.

Lin Man continued to pretend to be pitiful: "I really stopped." ”

Zhang Yan couldn't stand his funny expression, laughed out loud, and immediately covered her mouth, laughing enough before saying, "Okay, stingy guy, just continue to invite you to dinner this week." ”

Lin Man was completely unprepared. The last time he played basketball, Lin Man jokingly asked Zhang Yan how she would refuse if she confessed, Zhang Yan's answer was clean and neat, and she kicked it directly, and Lin Man knew that the two were essentially friends at most. Lin Man just said that this time, amusement, I really can't accompany Zhang Yan to dinner tonight, because he promised the radio station Blues to help him record the show after class this afternoon.

Zhang Yan expressed her understanding. She pointed to a stack of books that Lin Man placed on the table and asked, "I see that you have been looking for a long time, what books are you going to borrow?"

Lin Man was stunned for a moment, and directly ignored Zhang Yan's question in the second half of the sentence: "When did I grow the charm value and let Zhang Da Beauty peep at me for a long time?"

"Are you sure your charisma is high enough to be worthy of my voyeurism?"

"A genius like me, I still have this self-confidence. ”

Zhang Yan ignored him, knowing that if he continued to pick up his words, there might be some strange words coming out later. She reached out and flipped through Lin Man's books, which were about "Turbo C" and "Data Structures" in a row, and the last one was "Computer Algorithms". She didn't understand these books, so she asked, "Are you also teaching yourself computers?"

Now that the importance of computers is becoming more and more prominent, a computer craze is rising on campus, and Zhang Yan is ready to learn.

"It's not learning, I'm going to make a program, and I need a little reference. ”

Zhang Yan glanced at him and didn't see Lin Man's braggart expression. But being able to type fast doesn't mean he understands computer technology.

Lin Man shook his head: "I'm really not bragging." I'm a master, a real computer master. ”

"Even if I didn't blow it just now, I'm starting to blow it now. Zhang Yan couldn't see the arrogance that this guy naturally revealed, and asked, "I'm learning C language by myself, do you have any good textbooks to recommend?"

"Wait a minute, I just saw a copy, and it's perfect for getting started. Lin Man turned around and went to the bookshelf to pick up a book, the first edition of Professor Tan Haoqiang's C language.

Lin Man suggested to Zhang Yan to debug them one by one according to the examples in the book, especially about the linked list part.

"Look at how to do this C linked list topic. Zhang Yan has been completely stunned by the linked list.

Lin Man only took 2 minutes to solve the problem that Zhang Yan couldn't solve in 2 hours. It's nothing more than a matter of thinking and the details of the code. Zhang Yan began to believe that Lin Man was really a master.

"Does Computer Algorithm teach programming?" Zhang Yan is struggling with how to write the programs she needs.

"Instead of teaching specific programming methods, we explain how to program effectively to solve some practical problems. ”

Zhang Yan obviously didn't understand.

Lin Man unconsciously turned into a university teacher and began to guide students: "Let me give you an example first. There are 1,000 yuan, which need to be exchanged for 1 cent, 2 cents, 5 cents, 1 cent, 2 cents, 5 cents and 1 yuan in change, please program to list all possible exchange schemes. ”

"It's not that hard. "Zhang Yan is still somewhat basic, and she is also a top-level figure in the Department of Electronics," use loops to realize, list the possible numbers of each type of change, and then nest loops. ”

Lin Man asked her to calculate how many loops she needed to loop in total if she used the nested loop method.

Zhang Yan took a pen and wrote on the paper: 1 point may be from 0 to 100,000, 2 points may be from 0 to 50,000, and so on, and the others are at most 20,000, 10,000, 5,000, 2,000 and 1,000.

It's very simple, the maximum number corresponds to the number of cycles, just multiply all the numbers, Zhang Yan quickly got the result, with an order of 10 to the 28th power.

"The fastest CPU in PCs today is 486, which is generally clocked at 50 megaHz and can execute one instruction in one clock cycle. Assuming you can execute one loop per cycle, you calculate how many seconds it takes. ”

Zhang Yan didn't understand.

That is, if a computer performs 50 million cycles per second, how long does it need to run? Lin Man had no choice but to speak in the vernacular.

Isn't it simple to say this earlier, what kind of garlic to pretend? Zhang Yan Bai Lin glanced at it and gave the result: 2 times 10 to the 20th power.

"How many days, how many years?"

Zhang Yan took out the calculator, pressed it for a while, and said in shock: "2.3 times 10 to the 15th power, about more than 600 billion years. ”

"It's just a simple question. Of course, if you list all the results, the scale of the problem is indeed relatively large. But if you program it correctly, you don't need that long computation time at all. Algorithms are designed to tell you how to effectively solve these difficult problems. ”

"Then how should it be solved?" Zhang Yan had been fooled by Lin Man so much that she couldn't think normally.

Lin Man showed her the specific method of optimizing programming. Zhang Yan could only look at Lin Man with adoring eyes.

There is still a little time to take English class, Lin Man needs to recuperate in advance, and he can perform well in English class in the afternoon.

Everyone said that Lin slowly began to be a new person. Since being stimulated by Prince Jin's third-class scholarship, Lin has rarely missed English classes. In view of Lin Man's significant progress in the English class, the English teacher Li Yufeng praised Lin Man and said that his pronunciation has improved to a certain extent.

It's strange to say, Lin Man's Mandarin is so good that he is perverted, the words are correct and round, and the northwest dialect and the dialect of his hometown Dahe Province are also very authentic, but there are many problems in English. The reasons may include pronunciation problems during English enlightenment, the poison of exam-oriented education, the fact that he had never heard pure English before going to college, and other reasons that Lin Man could think of, as well as the fact that he fell asleep in the English examination room as soon as he took English class, and this problem was even so serious that he fell asleep in the English examination room during the college entrance examination.

However, this does not mean that Uncle Lin Man's English scores are poor. Every time there is an important English test, after a pre-test assault and the use of various test-taking skills, Uncle Lin Man in his previous life miraculously passed the English level 4 or 6 and the graduate English test. Then, there was no such thing, his English level did not improve substantially, he could read, he could write English research papers, but he could neither speak nor listen.

In order to reduce the sleeping time in English class, Lin Man's strategy is to hold the English book and sleep for a while before class, so that he can stick to it for a while during class. Lin Man picked up Zhang Yan's English book and unfolded it, asking Zhang Yan to wake him up when it was time, and then began to read English.

Zhang Yan was about to ask him if he wanted to sleep or read English, and found that someone had fallen asleep looking at English.

Lin Man is bitter, he often can't sleep well since he was reborn, because he always watches people play games in his dreams.

Lin Man didn't mind often dreaming of that tearful mixed-race beauty, but he didn't mind watching the stupid guy play the Three Kingdoms Heroes game. Until now, he has started again, and Liu Guanzhang's level has been slightly higher than last time, but he still can't beat the level of Changbanpo. Whenever Lin Man couldn't bear his game operation, he tried to help him operate, but unfortunately he couldn't do anything without a mouse or keyboard. This time, Lin Man couldn't bear it again, look, he didn't even count the number of steps in advance, Zhang Fei was always hit first, and he died very quickly. Lin Man was furious, you can't do it, no, I'll come, Zhang Fei should come here.

Lin Man suddenly found that although he didn't have a mouse, he could actually control the game with his mind, and Zhang Fei was put in the position that Lin Man wanted. Again, it worked again. Lin Man was overjoyed, rearranged the troops, although the destruction of the Cao army was only in an instant, but it should be destroyed slowly, you have to be patient, calculate the number of rounds, and let the generals fight as many rounds as possible to increase experience points. Very cool.

It's a pity that you can only see the game interface, if only you could see the computer screen. As soon as he thought this, a delicate milky white iPad the size of a palm appeared in front of him. Why isn't it local tyrant gold? The computer color immediately changed to local tyrant gold. It's a pity that it's a little smaller, but it's best to be bigger. The computer instantly transforms into a 21-inch screen, and it's also translucent. Nima, is this a dream or a dream? Why don't you turn the computer into a wishful golden hoop stick? Stop, what do I want a stick for, turn it into a big screen, preferably as big as a movie screen. Lin Man was a little dazed in his dream, this broken computer really became a movie screen, which was too wishful. Give a nice keyboard and mouse, okay? The keyboard and mouse really appeared out of thin air. Lin Man quit the game and wanted to see if there were any life action movies in the computer, otherwise he would have failed such a big screen. What kind of operating system is this, a bit like Linux Ubuntu, there is actually a Dos virtual machine, which can run Dos games like the Legend of the Three Kingdoms. The keyboard and mouse are really easy to use, especially the mouse, the texture, delicate and smooth, just like ...... Well, it's like Zhang Yan's delicate little hands.

Lin Man was about to touch the mouse again, but was woken up by Zhang Yan. Lin Man opened his eyes in a daze and found that he was holding Zhang Yan's hand, and immediately let go like an electric shock, raised his hand to wipe the saliva from the corner of his mouth, and apologized: "I'm sorry, I'm sorry, I just dreamed of playing with a mouse." Zhang Yan blushed. This stinky villain, when he fell asleep, actually grabbed his hand, and he didn't know whether he was really sleeping or fake sleeping, and he was still playing with a mouse, and his hand was like a mouse? Zhang Yan said fiercely: "Don't go to class yet?" ”

Zhang Yan has no classes in the afternoon, so she can continue to study on her own. Looking at Lin Man's embarrassed escape, she didn't know whether she should be angry or laugh.

(PS: Second more, ask for support, ask for collection, ask for recommendation votes!)