Meet the principal

Act 382. From Beginner to Master

"L language?"

Hathaway tilted her head, 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 way. 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 like incantations that can be read by library query systems. , 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, they are the omnipotent existence.

Reiner smiled when he saw Hathaway's expression of thinking and enlightenment from time to time. This showed that at least this student could understand the content of the book.

The L language was born out of the C language on earth. Of course, Reiner built it on the basis of the magic of this world. At most, he only drew some inspiration from it. As for the algorithm part, it was rewritten with Suhr in conjunction with the spell model. .

Even so, it is not easy for an ordinary mage to quickly understand the content here. 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 initially accept the theory of programming. , which really surprised Reiner.

However, Reiner then thought about it, maybe it was people who had just come into contact with magic, who were curious and not bound by traditional concepts, who could quickly understand the content.

After assigning Hathaway a task, Reiner returned to the work of debugging the prototype. He fluently wrote a series of codes 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 over the past 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."

Suhr 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 from this book."

Hathaway pointed to a short program in the book and said,

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 follow the instructions in the book and write her own program instead of Memorize fixed mantras 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 herself. .

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 the key? Ah, I found it..."

It took a while for Hathaway to carefully enter all the codes under the gaze of Reiner and Soul, confirm them again, and then press 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, it will be given in advance Preview 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. The helpless Hathaway felt her eyes turning red. She looked at Reiner and Soul beside her. .

"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, making Hathaway calm down a little. This feeling was like her own father. She sniffed and saw Reiner leaning in front of the prototype to check the code.

Hathaway looked at Suhr again, and the math teacher shook his head helplessly, not sure whether he was lamenting Hathaway's mistake or Reiner's kindness.

Reiner quickly discovered 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. It 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 had 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 soon appeared.

Hathaway entered a string of text as required by the code and pressed Enter.

On the dark screen, another line of text immediately appeared.

It was a sentence in common language. It was short but full of expectations, and Hathaway was deeply moved.

--Hello World!

Genius website address:. Mobile version reading URL:

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like