Chapter 162 graphics.h (4k)
"Study medicine? Well, that's a good idea. Now is not the time when studying medicine can't save the country." After hearing this professional choice, the leader became more certain that Lou Xiao'e really wanted to learn something and serve the people.
Gao Zhendong smiled and said, "We thought that I would study science and engineering, and she would study medicine, so that we could complement each other, haha."
The leader laughed and said, "That's an interesting idea of yours, haha. No problem, you can come to me when you have questions about qualifications. But you have to take the exam on your own, I won't give you any backdoor."
Gao Zhendong nodded repeatedly: "Of course, I will personally help him review, I think he can still pass the exam, hehe. My idea is that there is no need to make too much trouble. As long as he can study in Beijing, it will be no problem to be admitted to a junior college."
You help her review in person? Wouldn't that squeeze out your spare time for work?
At this moment, the leader even had the idea of opening a back door for Gao Zhendong and his wife.
Shaking his head, he smiled and threw this ridiculous idea out of his mind: "Then you should ask your partner to review well and try to be in the best condition to face the exam. By the way, if she studies, won't your marriage be delayed?"
Gao Zhendong smiled shyly: "I plan to get married before the exam, and then she will go to school."
The leader nodded: "Well, you participated in foreign wars and wasted a lot of time. It's good to settle down earlier. This arrangement is not bad, not bad."
Nowadays, whether a person is married or not is also one of the important indicators to judge whether a person is mature.
After thanking his leader again, Gao Zhendong left the 17th Ministry of Machine Building. The leader was obviously still very busy, and it would be inappropriate to take up too much of the leader's time for his personal matters.
After coming out of the 17th Ministry of Machine Building, Gao Zhendong spent three or two grain coupons and some money on the street, ate something casually, and then rode his bike straight to Lou's house.
Now that Lou Xiao'e's study problem has been solved, the news will be passed on as soon as possible, so that Lou Xiao'e can review with peace of mind.
Seeing Gao Zhendong coming, Lou Xiao'e was very happy. Hearing that he had ridden a long way, she pulled Gao Zhendong and asked him to eat something.
Gao Zhendong also felt that he had not eaten enough, so he told Lou Xiaoe while eating that her qualification issue for studying 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 settled. She hugged Gao Zhendong and took a bite.
When Lou's mother heard what Gao Zhendong said, she smiled brightly. Her daughter's future was now settled. Besides, few children in the circle could go to college.
As soon as Father Lou saw Mother's attitude, he knew what she was thinking and sternly warned her, "I don't care how much you can't help it, but before Xiao'e gets the admission letter, you must keep this matter to yourself and don't cause trouble for Zhendong and the others!"
Lou's mother rolled her eyes: "I know, do you think I'm a three-year-old child?"
Although he said it tough, he was actually beating his chest in fear: "It was a close call. If the old man hadn't reminded me of this, maybe I would have let it out when I called."
After eating, Gao Zhendong asked Lou Xiaoe: "Do you still have the books for your exam subjects? If not, I'll find them for you."
Lou Xiao'e nodded happily: "They are all there, haha, I never threw them away."
It seems that Lou Xiao'e still wants to study, otherwise she wouldn't have kept all the books. You know, some people would have thrown away all their books when they knew they had no hope of continuing to study.
Gao Zhendong thought for a moment and said, "Well, from Monday to Saturday, you should review carefully by yourself, write down anything you don't understand, and we will solve it together on Sunday!"
Lou Xiao'e jumped onto Gao Zhendong's back and whispered in his ear, "Okay, Teacher Gao~~~"
After returning to the courtyard from Lou Xiao'e's house, Gao Zhendong saw that the lights at Yan Bugui's house opposite were still on, so he walked straight over and knocked on the door.
Yan Bugui opened the door and saw that it was Gao Zhendong. He was very enthusiastic: "Zhendong, come in and sit down."
Gao Zhendong was the one who solved the problem for his boss, and he is still working in the joint defense team. This 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. Since he was a bit aloof, 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 was treating Gao Zhendong as a distinguished guest.
Gao Zhendong walked in and sat down, smiling and said, "Teacher Yan, I have something I want to ask you for help."
"What's going on? Tell me."
Yan Bugui didn't know what Gao Zhendong needed his help with. Given his situation, the most likely thing he could do was to help him find a partner, but Gao Zhendong had already solved the partner problem himself.
Gao Zhendong ate a peanut, which was a bit mushy, but Old Yan couldn’t bear 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 a friend who wants to take the college entrance examination, but he doesn't have the resources for it. Teacher Yan, you are from the education system, so I came to you for help."
Although Yan Bugui is an elementary school teacher, he is in the education system after all, so his resources in this regard are definitely more convenient than Gao Zhendong's.
Upon hearing about this, Yan Bugui readily agreed: "Oh, no problem, no problem. I'll ask the high school teacher in the system and I'll definitely find it for you."
Yan Bugui did not hint at the issue of remuneration in this matter. Firstly, it was just a matter of talking to him. Secondly, he would be more than happy to repay a favor. Besides, the boss was still working under his old comrade.
After chatting with Yan Bugui for a few more sentences and asking about whether Yan Jiecheng's work was going well, Gao Zhendong and Yan Bugui said goodbye and returned home.
From the backyard, there were sounds of Xu Damao and his wife arguing and Liu Haizhong scolding his son.
Gao Zhendong smiled and shook his head. It seemed that only Old Lady Long could live in that place. If it were someone with a good hearing, they might not be able to bear it.
-
In the computer room of the Technical Department's research laboratory, Gao Zhendong looked at the simple sinusoidal function graph of y=sin(x) on the screen and breathed a sigh of relief.
The basic graphics function library of C language has finally been adjusted.
I called Chief Engineer Chi of the Operation Center and asked him to bring some people to see the good stuff and bring the tape along.
When Chief Engineer Chi heard this, he brought his men and ran over. Gao Zhendong called him and said there was something good, so it must be there.
When Chief Engineer Chi walked into Gao Zhendong's computer room, he only heard the rhythmic beeping sound from the simple buzzer of the computer.
Gao Zhendong was concentrating and typing very busy.
Looking closely, he saw a long object made up of small squares moving across the screen. Wherever the object passed, the small squares on the screen disappeared. As the small squares disappeared, the object became longer and longer, and its movement speed became faster and faster. Finally, with Gao Zhendong sighing with regret, the head of the object hit the edge of the monitor and disappeared.
This scene made Chief Engineer Chi a little stunned. What kind of advanced technology is this? What is Director Gao doing?
Chief Engineer Chi dared to greet Gao Zhendong only after he saw that he was free. Just now, he saw Gao Zhendong's serious look and he didn't dare to disturb him at all for fear of disrupting Gao Zhendong's work concentration.
Hearing Chief Engineer Chi's voice, Gao Zhendong turned around and quickly pressed two keys on the keyboard. The "beep, beep, beep" sound stopped, and the familiar selection interface of the cyclic duty program popped up on the monitor.
With a little guilty conscience that he hadn't felt for a long time, Gao Zhendong smiled awkwardly: "Haha, Mr. Chi, you're here?"
Mr. Chi smiled and said, "We came here right away when we heard you said there was something good."
Gao Zhendong nodded: "Yes, there are indeed good things."
After saying that, Gao Zhendong selected the C integrated compilation environment option for the loop watchdog program.
It seems to be related to C language, thought the people in the computing institute.
Then, Gao Zhendong opened a C language program that had already been written.
As the tape moved, the program line by line appeared on the monitor.
The people who came here from the Computing Institute all had a certain understanding and familiarity with C language. Looking at the program on the screen, they found something different from the C language programs they usually saw.
Before the main function of this program, a header file that they had never seen was introduced.
#include "graphics.h"
Different from foreign language education in the future, at this time, Russian teaching was on an equal footing with English teaching, or even better, so some people did not learn English systematically.
So some people don’t know this word, but Mr. Chi knows it.
A sudden feeling of happiness surged into 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 graphic function, point, line, circle, rectangle, polygon, ellipse, arc, sector, curve.
As Gao Zhendong makes his selections, these basic graphics appear one by one on the display. Gao Zhendong can even input parameters such as the center of the circle, radius, starting and ending points of the straight line, major and minor axes of the ellipse before drawing.
The computer faithfully followed Gao Zhendong's input, and graphics were drawn one by one on the monitor with a not very high resolution.
Everyone in the Institute of Computing was fascinated by this simple graph. Although it was simple, its applications were previously unimaginable.
Chief Engineer Chi's eyes lit up: "Director Gao, did you create a set of basic graphics functions yourself?"
Gao Zhendong smiled and nodded: "Yes, with them, the computer's expressive power will be stronger. Some calculation results can be directly expressed in the form of graphics. When the computer's power becomes more powerful, we can use them to do more things."
Chief Engineer Chi did not think about the future, he was only thinking about the present.
As a technician, he knew very well how much help the ability to draw intuitive graphs could provide to researchers, and graphics technology itself opened 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 intended direction.
Looking at the Bessel function vibration process on the screen, which was extremely slow and somewhat blurry due to the functional performance limitations of the monochrome display, Chief Engineer Chi saw a little bit of the future of computers.
Maybe, it can really become a TV.
For a moment, Chief Engineer Chi thought that this idea was a bit absurd. Computers were expensive things. Televisions were also valuable, but how could a computer be asked to do the work of a television? The two were completely on not the same level.
Chief Engineer Chi asked his men to get the tape without saying anything. "Director Gao, there's no need to say anything. Just give it to us, haha."
Gao Zhendong smiled and loaded the tape into the tape drive, then started copying the graphics function library.
As the tape sizzled, Gao Zhendong took out a document from the cabinet next to him: "This is the instruction manual for all the graphic functions. Take it with you."
The blue carbon copy exuded the unique smell of carbon paper. Chief Engineer Chi held the stack of information and felt a little ashamed: "Director Gao, you are so busy at work, but you are still thinking about the promotion and application of computers. It's because we haven't done a good job in the computing department."
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 no longer cared about feeling ashamed: "That's right. Our most important job now is to cooperate with you and promote the application of computers."
At this point, Chief Engineer Chi suddenly remembered something: "Director Gao, how about the C language textbook?"
Gao Zhendong was stunned and laughed: "Almost there, almost there."
Considering the intensity of his work, Gao Zhendong decided to splurge and exchange his chance in the lottery for a printing-to-handwritten service.
The main reason is that the demand for this textbook is quite urgent. If this textbook is not published, the C language cannot be promoted.
After all, it is a bit difficult for non-computer professionals to study the standard.
At this time, Chief Engineer Chi remembered that he also had good news to tell Gao Zhendong.
"By the way, Director Gao, I have some good news. Our institute has used an assembly compiler to implement the Fortran language programming environment on DJS-59."
Gao Zhendong was also very happy to hear the news. After all, Fortran is stronger than C in scientific computing, and a considerable number of current programmers in China have learned Fortran. The realization of this programming environment will be of great benefit to the promotion of general-purpose computers.
Gao Zhendong laughed and said, "That's great. Our researchers can use Fortran to program and calculate the results, and use C language to draw pictures and display them."
It’s not that Fortran doesn’t have a way to draw graphs, but at that time, due to the limitations of the computer itself, no one cared much about implementing this thing, and the main focus was on the data results.
(End of this chapter)