Chapter 162 graphics.h (4k)
"Study medicine? Well, it's a good idea. Now is not the time to study medicine if you can't save the country." After hearing this professional choice, the leader became more certain that Lou Xiao'e really wanted to The idea of learning something and serving the masses.
Gao Zhendong smiled and said: "We are thinking that I will study science and engineering, and she will study medicine, so we can complement each other, haha."
The leader laughed: "This idea of yours is interesting, haha. No problem, you can come to me when the time comes for qualifications. However, you have to take the exam yourself. I won’t open a back door for you.”
Gao Zhendong nodded repeatedly: “Of course, I will help him review it myself. , I think I can still pass the exam, hehe. In my opinion, it doesn’t have to be too troublesome. As long as you can study and be in the capital, it’s okay to be admitted to a junior college.”
Do you personally help her review? Then won’t your spare time for work be squeezed?
At this moment, the leader even had the idea of opening a back door for Gao Zhendong and his wife.
Shaked his head, smiled and put this ridiculous idea away from his mind: "Then let your partner study hard and try to be in the best condition to face the exam. By the way, she studies, then Aren't you going to delay your marriage?"
Gao Zhendong smiled sheepishly: "I plan to get married before the exam, and then she will go to school."
The leader nodded: " Well, I wasted a lot of time while participating in foreign operations. It’s good to be able to stabilize as soon as possible. This arrangement is good, not bad.”
These days, whether you are married or not is also one of the important indicators for evaluating a person's maturity.
After thanking the leader again, Gao Zhendong left the 17th Machinery Department. The leader was obviously still very busy. It would be inappropriate for him to take up too much time for his own personal affairs.
After coming out of the 17th Machinery Department, Gao Zhendong spent three taels of food stamps and a little money on the street, had something to eat, and then rode straight to Lou's house.
The problem of Lou Xiaoe’s studying has been solved, so let’s pass the news on as soon as possible, so that Lou Xiaoe can review with peace of mind.
Lou Xiaoe was very happy when she saw Gao Zhendong coming. She heard that he had ridden a long distance, so she pulled Gao Zhendong and asked him to eat more.
Gao Zhendong happened to feel that he had not eaten enough just now, so while eating, he told Lou Xiao'e that her qualification to study had been resolved.
Although Lou Xiao'e was sure that Gao Zhendong could solve the problem, she still felt very happy when she heard that the matter had been implemented. She hugged Gao Zhendong and took a bite.
Mother Lou burst into laughter when she heard Gao Zhendong's words. Her daughter's future was finally settled this time, and not many children in her circle could go to college.
As soon as Lou's father saw Lou's mother's posture, he knew what she was thinking, and sternly warned: "I don't care how much you can't help it, but before Xiao'e gets the admission notice, you Keep this matter to yourself and don’t cause trouble for Zhendong and the others!"
Mother Lou rolled her eyes: "I know, do you think I am a three-year-old child?"
Although he said it hard, he was beating his chest in his heart: "It's so dangerous, so dangerous. If the old man doesn't remind me, my phone call may be leaked soon."
After eating, Gao Zhendong Asked Lou Xiao'e: "Do you still have the books for your examination subjects? If not, I will find them for you."
Lou Xiao'e nodded happily: "They are all there, haha, I have never had them." Throw it away.”
It seems that Lou Xiaoe still wants to study, otherwise she would not keep all the books. You know, some people may have thrown away all their books when they know that they have no hope of continuing to study. All clean.
Gao Zhendong thought for a while: "In this way, from Monday to Saturday, you will review carefully by yourself, write down anything you don't understand, and we will solve it together on Sunday!"
Lou Xiaoe jumped on Gao Zhendong's back and whispered in his ear: "Okay, Teacher Gao~~~"
Returning to the courtyard from Lou Xiaoe's house, she saw Yanbu Gui's house opposite The light was still on, so Gao Zhendong walked over and knocked on the door.
When Yan Bugui opened the door, he saw it was Gao Zhendong, very enthusiastic: "Zhendong, come in and sit down."
Gao Zhendong solved the boss's job, and he is still there now Working in the joint defense team can be regarded as solving a big problem in front of him.
He was the first person in the courtyard to come into contact with Gao Zhendong, and he was a little aloof, so he did not call Gao Zhendong "Director Gao" like most people in the courtyard.
Yan Bugui brought out a plate of fried peanuts. This action was enough to prove that he treated Gao Zhendong as a distinguished guest.
Gao Zhendong walked in and sat down, smiling and said: "Teacher Yan, I have something to ask you for a favor."
"What is it? Tell me."
Yan Bugui didn't know if there was anything Gao Zhendong needed his help with. In his own situation, the most likely thing was to help him introduce a partner, but he had already solved the problem of the partner himself.
Gao Zhendong ate a peanut and it was a bit mushy. Well, Lao Yan was reluctant to throw it away.
Patting the peanut shells on his hands, Gao Zhendong said: "I want to find the college entrance examination papers in recent years. I have friends who want to take the college entrance examination, but there are no resources in this area. Teacher Yan, you are in the education system. No, I will I’m here to help you.”
Although Yan Bugui is a primary school teacher, he is from the education system, and his resources in this area are definitely more convenient than Gao Zhendong’s.
When he heard that this was the case, Yan Bugui agreed: "Ah, no problem, no problem. I will ask the high school teacher in the system later and I will definitely find one for you."
Yan Bugui didn't hint at the issue of remuneration in this matter. Firstly, it was just a matter of words for him. Secondly, he couldn't ask for a favor in return. Besides, the boss was still working under his old comrade. Woolen cloth.
After chatting with Yan Bugui for a while and asking Yan Jiecheng whether his work was going well, Gao Zhendong and Yan Bugui said goodbye and returned to their homes.
From the backyard, Xu Damao's couple was heard arguing again and Liu Haizhong was scolding his son.
Gao Zhendong smiled and shook his head. It seemed that only Mrs. Long could live in that place. If someone else had good ears, she might not be able to endure it.
——
In the computer room of the Research Office of the Technology Department, Gao Zhendong looked at the simple sine function graph of y=sin(x) on the screen and breathed a sigh of relief.
The basic graphics function library of C language is finally adjusted.
I called Chief Engineer Chi of the Computing Office and asked him to bring someone to see the good stuff and bring the tape along with him.
As soon as Chief Engineer Chi heard this, he ran over with his people. Gao Zhendong called him and said there was something good, so there must be something.
When Chief Engineer Chi walked into Gao Zhendong's computer room, he only heard the rhythmic beeping of the computer's simple buzzer.
Gao Zhendong is concentrating and pressing the keyboard very busy.
Looking carefully, on the computer monitor, a long object composed of small squares is walking on the screen. Wherever the object passes, the individual small squares on the screen disappear. As the small square disappears, the object becomes longer and longer, and its movement speed becomes faster and faster. Finally, as Gao Zhendong sighed regretfully, the head of the object hit the edge of the monitor and dissipated.
This scene made Mr. Chi a little stunned. What kind of advanced technology is this? What is Director Gao doing?
Seeing Gao Zhendong idle, Chief Engineer Chi dared to say hello. Just now he saw Gao Zhendong's serious look, and he didn't dare to disturb him at all, for fear of disturbing Gao Zhendong's thoughts about work.
Hearing the voice of Chief Engineer Chi, Gao Zhendong turned his head and quickly pressed two keys on the keyboard. The sound of "beep, beep, beep" stopped, and the familiar cycle watch appeared on the monitor. The program selection interface pops up.
With a little hint of guilt that he had not seen for a long time, Gao Zhendong smiled: "Haha, Mr. Chi, are you here?"
Mr. Chi smiled and said: "I heard you said there were good things, and we rushed over right away."
Gao Zhendong nodded: "Well, there are indeed good things."
Finished , Gao Zhendong selected the C integrated compilation environment option of the loop watcher.
It seems to be related to the C language, the people from the computing center thought.
Then, Gao Zhendong opened a C language program that had been written.
With the "sizzling" sound of the tape moving, lines of programs jumped out on the monitor.
The people who come here from the Computing Institute are all people who have a certain understanding and familiarity with the C language. Looking at the program on the screen, they discovered something different from the C language programs they usually see. .
Before the main function of this program, a header file that they have never seen is introduced.
#include "graphics.h"
It is different from the foreign language education in the future. At this time, Russian language teaching and English teaching are on an equal footing, or even worse, so some people do not Learned English systematically.
So some people don't know this word, but Mr. Chi does.
A sudden feeling of happiness came to his heart: "Director Gao? Graphics library? Graphics function?"
Gao Zhendong nodded with a smile and began to compile the sample program.
The sample program starts running, and a bunch of options appear on the screen. Each option corresponds to a graphics function, point, line, circle, rectangle, polygon, ellipse, arc, sector, curve.< br>
With Gao Zhendong’s selection, these basic graphics appeared on the display one by one. Gao Zhendong could even enter parameters such as the center of the circle, the radius, the starting and ending points of the straight line, and the long and short axes of the ellipse before drawing. .
The computer faithfully followed Gao Zhendong's input and drew graphics one by one on the monitor with a low resolution.
Everyone at the Computing Institute was fascinated by this simple graphic. Although it was simple, it was an application that had never been imagined before.
Chief Engineer Chi's eyes shone: "Director Gao, did you make a set of basic graphical functions yourself?"
Gao Zhendong smiled and nodded: "Yes, I have it. With them, the computer's performance capabilities are stronger, and some calculation results can be directly expressed in the form of graphics. When the computer's capabilities become more powerful, we can use them to do more things."
Chief Engineer Chi didn't think about the future, he only thought about the present.
As a technician, he knows how helpful it is to researchers to draw pictures intuitively, and graphics technology itself also opens up more possibilities for computer applications.
At this time, Gao Zhendong chose the last item in the sample program.
The program runs very slowly, but it runs firmly in the predetermined direction.
Looking at the Bessel function vibration process on the screen that vibrated extremely slowly and was somewhat blurry due to the functional limitations of the monochrome display, Mr. Chi saw a little bit of the future of computers.
Maybe, it really can become a television.
For a moment, Chief Engineer Chi felt that this idea was a bit ridiculous. Computers are expensive things. Although TVs are expensive, how can they make computers do the work of TVs? The two are not on the same level at all.
Without saying anything, Chief Engineer Chi asked his subordinates to take out the tape: "Director Gao, there is no need to say anything, just give it to us, haha."
Gao Zhendong smiled and took out the tape. Load the tape drive and start copying the graphics library.
While the tape was "sizzling", Gao Zhendong took out another piece of information from the cabinet next to him: "These are the instructions for using all the graphics functions. Please take them with you."
< br>The blue carbon handwriting exudes the unique smell of carbon paper. Manager Chi took the stack of information and felt a little ashamed: "Director Gao, you are so busy at work and you are still thinking about the promotion and application of computers. It is our computing institute. The work was not done well.”
Gao Zhendong shook his head: "I am the inventor of this thing. I know better than you what it can do, so it is most appropriate for me to complete the basic and pioneering work of its application."
Chief Engineer Chi couldn't bear to feel ashamed anymore: "That is, our most important job now is to cooperate with your work and promote the application of computers."
Speaking of this, Mr. Chi The worker suddenly remembered something: "Director Gao, um, how about that C language textbook?"
Gao Zhendong was stunned and laughed: "It's coming, it's coming."
< br>Considering the intensity of his work, Gao Zhendong decided to be extravagant and exchange a lottery opportunity for a printing to handwriting service.
The main reason is that the demand for this textbook is urgent. If this textbook is not released, C language cannot be promoted.
After all, it is really difficult for non-computer professional users to read that standard.
At this time, Mr. Chi remembered that he also had good news to tell Gao Zhendong.
"By the way, Director Gao, I have good news here. Our institute has used an assembly compiler to implement the Fortran language programming environment on DJS-59."
Gao Zhendong was very happy when he heard the news. After all, in terms of scientific computing, Fortran is better than C, and a considerable number of existing domestic programmers have learned Fortran. The implementation of this programming environment is very important for general-purpose computers. Promotion goes a long way.
Gao Zhendong laughed and said: "That's great. Our scientific researchers can use Fortran to program and calculate the results, and use C language to draw pictures and display them."
Fortran is not without drawing methods, but at this time , due to the limitations of the computer itself, no one paid much attention to implementing this thing, and mainly focused on the data results.
(End of this chapter)