Greetings, Mister Principal: From beginner to proficient
"L language?"
Hathaway tilted her head. She took the crudely bound book and opened the first page.
"L language is a tool designed to convert requirements into instructions in a natural and logical manner. It has the following characteristics..."
After reading the introduction for a while, Hathaway finally understood what the so-called L language was.
This is a language based on Common Language with a specific writing form. The statements written in this language are called codes, and the codes are incantations that can be read by query systems such as libraries. In general, the library query system is called an application in this book, analogous to various spells, and the method of building such an application is called programming.
This book mainly describes the basic introductory methods and advanced applications of programming.
After turning a few pages and seeing a few simple examples, Hathaway was deeply attracted by the world.
This feeling is like those supreme legendary wizards in legends who can turn words into reality and thoughts into laws. It seems that in the world of programming, I am the omnipotent existence.
Reiner smiled when he saw Hathaway's expression of thinking and enlightenment from time to time. This showed that at least the student could understand the content of the book.
The L language was born out of the C language on earth. Of course, Reiner was built on the basis of the magic of this world. At most, he only drew some inspiration from it. As for the algorithm, it was based on the spell model with Sur. Rewritten.
Even so, it is not easy for an ordinary mage to quickly understand the content. The girl in front of him is obviously a first-year freshman. She has only been exposed to magic for less than half a year. Unexpectedly, she has already been able to accept programming. The theory really surprised Reiner.
But then Reiner thought about it, maybe it was people who were new to magic, curious and not bound by traditional concepts who could quickly understand the content.
Assigning a task to Hathaway, Reiner returned to the work of debugging the prototype. He wrote a series of codes fluently in the compiler and successfully ran a simple number-guessing program.
"It seems that there is no problem with the basic functions of the prototype, Suer, you have done a good job."
Reiner smiled, making Sur next to him also show a proud expression.
"This is my hard work this week, quality guaranteed!"
She puffed out her mediocre chest and said proudly.
"Uh, Mr. Principal, can you let me try out this machine?"
At this time, Hathaway on the side stretched out her hand weakly and asked.
"This is a very precious prototype and cannot be used for fun, Hathaway-san."
Sul subconsciously refused. She was worried that Hathaway might cause any unexpected problems and malfunctions, so she refused.
"Trial? What do you want to do?"
Reiner did not refuse immediately. He was a little curious about what the student would want to do with this prototype.
"I want to try the, uh, programming in this book."
Hathaway pointed to a short program in the book and said that after she read and tried to understand this thing called programming, she became very interested in it and couldn't wait to try it. .
This feeling was like her first contact with magic, but compared to the mysterious and weird spells, the programming in front of her obviously had greater freedom. Hathaway could write her own program according to the instructions in the book. , instead of rotely memorizing fixed spells and spell models.
Hearing Hathaway's words, Reiner smiled slightly, took a step back, and gave up his position in front of the prototype.
"Come and try."
He was a little curious about what Hathaway, who had never been exposed to programming, could do.
Reiner's words surprised Hathaway. She originally just asked tentatively, but after Teacher Suer's words came out, she already wanted to retreat. Unexpectedly, Reiner didn't mind and let her Try it yourself.
Feeling her heart begin to beat faster, Hathaway suppressed a nervous tremor, stretched out her hand, and tried to touch the keyboard with a skilled gesture.
Well, it’s okay. I’ve practiced it several times and there’s absolutely no problem!
She encouraged herself like this.
But when Hathaway stood in front of the prototype and looked at the keyboard, she began to really panic.
"Uh, this should be here, hey, where is this key, ah, I found it..."
It took a while before Hathaway carefully entered all the codes under the gaze of Reiner and Suhr, confirmed them again, and then pressed the compile button.
This function is the core function of the compiler. It can convert the L language similar to Common Language into a machine language that can be directly recognized by the array in the prototype. If the compilation is successful, the code can be encapsulated into a program. Of course, in advance A preview will be given to confirm the functionality of the program.
However, when Hathaway pressed the compile button, the interface did not show the compilation completion prompt as shown in the book.
"Huh? What's going on?"
Hathaway suddenly panicked. Her eyes swept over the code, but she didn't understand what she had done wrong.
She was worried that her reckless actions had caused unpredictable errors in the prototype. Her suppressed nervousness suddenly burst out. Hathaway, who was at a loss what to do, felt her eyes were a little red. She looked at Reiner beside her. With Sur.
"Mr. Principal, I, I don't know..."
There was a cry in Hathaway's voice, like an abandoned child.
"It's okay, Hathaway-san."
Reiner gently touched her head~IndoMTL.com~ which made Hathaway calm down a little. This feeling was like her own father. She sniffed and saw Reiner approaching the prototype. Go to the front of the machine and look at the code.
Hathaway looked at Suhr again. The math teacher shook his head helplessly, not sure whether he was lamenting Hathaway's mistake or Reiner's kindness.
Reiner quickly found the mistake. He stopped Hathaway and pointed to one of the places.
“Because there are a lot of brackets here, it’s best to check it carefully. You see, there is a missing semi-bracket, which causes problems in the program, which is also reflected in the compilation error below.”
Following Reiner's direction, Hathaway immediately saw his problem.
"I...I'm sorry, I was too stupid."
Hathaway has never felt so embarrassed. She modified the code stiffly and clicked the compile button again.
This time, the code compiled successfully and the test window appeared soon.
Hathaway entered a string of text as required by the code and pressed Enter.
On the dark screen, another line of text immediately appeared.
That was a sentence in common language. It was short, but full of expectations, and Hathaway was deeply moved.
——Hello, world!
https://
Genius website address:. Mobile version reading URL: