"L language?"
Hathaway tilted her head. She took the shabby binding and opened the first page.
"L language is a tool designed to transform requirements into instructions in a natural and logical way. It has the following characteristics..."
after reading the introduction for a while, Hathaway has a little understanding of what this so-called l language is.
This is a language based on common language and has a specific writing form. The sentences written in this language are called codes, and the codes are similar to the incantations that can be read by the library query system. The library query system is called an application program in this book. It is a method to build this application program by analogy with various kinds of magic Is called programming.
And this book mainly describes the basic introduction method and advanced application of programming.
After turning a few pages and seeing a few simple examples, Hathaway was deeply attracted by the world.
This kind of feeling is like the legendary mages in the legend who can turn words into reality and turn thinking into rules. It seems that in the world of programming, they are the omnipotent beings.
Seeing Hathaway's expression of thinking and suddenly realizing, Lena smiles, which shows that at least the student can understand the contents of the book.
L language was born out of the C language on earth. Of course, Lena built on the magic foundation of this world. At most, he only drew some inspiration from it. As for the algorithm part, he wrote it again with sur's magic model.
Even so, it's not easy for ordinary mages to quickly understand the content. At present, this young girl is obviously a freshman. She has just been exposed to magic for less than half a year. Unexpectedly, she has been able to preliminarily accept the theory of programming, which really surprised Lena.
But then Lena thought, maybe it's just this kind of person who has just come into contact with magic, with curiosity and will not be bound by traditional ideas that can quickly understand the content.
After giving Hathaway a task, Lena went back to debugging the prototype. He wrote a series of code fluently in the compiler and successfully ran a simple number guessing program.
"It seems that there is nothing wrong with the basic functions of the prototype. You have done a good job, sur."
Lena said with a smile, making sur around him also show a proud expression.
"This is my hard work this week, quality assurance!"
She straightened her chest and said with pride.
"Well, Mr. principal, can I have a try on this machine?"
At this time, Hathaway asked weakly.
"This is a very valuable prototype. You can't play with it, Hathaway."
Sur subconsciously refused. She was worried that Hathaway might create some unexpected problems and faults, so she refused.
"Trial? What do you want to do? "
Lena didn't immediately refuse. He was a little curious about what the student would like to do with the prototype.
"I want to try the, er, programming in this book."
Pointing to a short program in the book, Hathaway said that after reading and trying to understand this thing called programming, she became very interested in it and could not wait to try it.
This kind of feeling is like her first contact with magic, but compared with the mysterious and weird magic, the programming in front of her has more freedom. Hathaway can write her own program according to the instructions of the book, instead of memorizing fixed incantations and magic models.
Hearing Hathaway's words, Lena smiles, steps back and gives way to the front of the prototype.
"You try."
He was a little curious about what Hathaway, who had never been in touch with programming, could do.
What Lena said surprised Hathaway. Originally, she just asked tentatively, but she wanted to retreat after what Mr. sur said. Unexpectedly, Lena didn't mind and asked her to do it herself.
Feeling her heart begin to beat faster, Hathaway held back her nervous shaking, reached out and tried to touch the keyboard in a skillful posture.
Well, it's OK. I've practiced for several times, absolutely no problem!
She's breathing herself in this way.
But when Hathaway stood in front of the prototype and looked at the keyboard, she began to feel really flustered.
"Er, this should be here, eh, where is the key? Ah, I found it...
it took a long time for Hathaway to input all the code carefully, confirm it, and then press the compile button.
This function is the core function of the compiler. It can convert the L language similar to the common language into the machine language that can be directly recognized by the matrix in the prototype machine. If the compilation is successful, the code can be encapsulated into a program. Of course, the preview will be given in advance to confirm the function of the program.However, when Hathaway pressed the compile button, the interface did not show the completion of the compilation as shown in the book.
"Why? What's the matter? "
Hathaway was flustered. Her eyes swept over the code, but she didn't understand what she had done wrong.
She was worried that her reckless behavior would lead to the unexpected error of the prototype. The tension she had repressed suddenly broke out. At a loss, Hathaway felt red in her eyes. She looked at Lena and sur around her.
"Mr. principal, I, I don't know..."
Hathaway's voice was crying, like an abandoned child.
"Never mind, Hathaway."
Lena gently touched her head to calm Hathaway a little bit. She felt like her father. She sniffed and saw Lena coming up to the front of the prototype and looking at the code.
Hathaway looked at sur again. The math teacher shook her head helplessly. She didn't know whether she was feeling Hathaway's mistake or Lena's kindness.
Lena quickly found the mistake. He called Hathaway and pointed to one of the places.
"Because there are a lot of brackets here, it's better to check them carefully. You see, there is a half bracket missing, which leads to problems in the program. The compilation error below is also reflected."
Following Lena's direction, Hathaway immediately saw her problem.
"I'm... sorry, I'm stupid."
Hathaway never felt so humiliated. She rigidly modified the code and hit the compile button again.
This time, the code was compiled successfully, and soon the test window appeared.
Hathaway entered a string of words as required by the code and pressed enter.
On the dark screen, another line appeared immediately.
It was a sentence in common language, short but full of expectation, which moved Hathaway.
Hello, world!
www.novelhall.com , the fastest update of the webnovel!