Chapter 124
Chapter 124
Lin Feng took the floppy disk and looked at her.
"I won't charge you."
Cheng Yuxin smiled, her eyes crinkling into crescents.
"Then I'll help you test it. I'll be your tester."
Lin Feng nodded.
"it is good."
In the afternoon, Lin Feng went to Liu Jian's house.
Liu Jian's father wasn't home, and Liu Jian's mother was knitting in the living room. Seeing Lin Feng arrive, she greeted him with a smile and continued knitting.
Lin Feng went into the inner room.
Liu Jian was sitting in front of his computer, a copy of "C Programming Language" open in front of him, reading. Lin Feng had lent him the book last week; the cover was a bit old, and the pages inside were yellowed.
When Liu Jian saw Lin Feng enter, he looked up, revealing dark circles under his eyes.
"Lin Feng, I've been looking at it all afternoon, but I still don't understand the pointer."
Lin Feng sat down next to him and glanced at the page he was reading.
"A pointer is an address," he said. "You can think of memory as a row of houses, and each house has a house number. A pointer is that house number."
Liu Jian thought for a moment.
"Who lives in that house?"
Lin Feng said, "What we're talking about is data. The ordinary variables are the people living in the house, and the pointers are the house numbers. You can find that house by its house number and see who lives there."
Liu Jian's eyes slowly brightened.
"I think I understand."
Lin Feng said, "Let's try writing a program."
Liu Jian turned around and started typing. He wrote a simple program that defined an integer variable 'a', a pointer 'p' pointing to 'a', and then modified the value of 'a' through 'p'.
Compile and run.
The modified value is displayed on the screen.
Liu Jian stared at the screen for a few seconds, then suddenly turned around.
"I understand! I really understand!"
Lin Feng smiled.
Liu Jian was so excited that he squirmed in his chair.
"Lin Feng, you teach better than my dad. My dad talked all night and I still didn't understand, but you understood in just two sentences."
Lin Feng said, "It's not that your dad's teaching was bad, it's that your foundation is too weak."
Liu Jian chuckled awkwardly.
Lin Feng took a floppy disk out of his pocket.
"I'll show you something."
He inserted the floppy disk into the computer and ran CodeLight.
The editor interface appeared on the screen, with a white background and colored code.
Liu Jian leaned closer to look, his eyes wide with surprise.
"What...what is this?"
Lin Feng said, "I wrote my own editor. It's called CodeLight."
Liu Jian turned to look at him, his mouth agape, unable to close it for a long time.
"You...you wrote this yourself?"
Lin Feng nodded.
Liu Jian turned back to look at the screen, touched the monitor with his hand, as if he couldn't believe it was real.
"This...this is even better looking than the editor that comes with Borland C++."
Lin Feng said, "It's still far from perfect. But we'll add features gradually."
Liu Jian stared at him for a long time, then turned his head and looked at Lin Feng with an almost worshipful gaze.
"Lin Feng, just how many other skills do you know?"
Lin Feng thought for a moment.
"I don't know. There are probably many more."
Liu Jian remained silent for a few seconds.
Then he said, "Lin Feng, I'm following you from now on."
Lin Feng looked at him.
Liu Jian said, "You write software, I'll help you sell it. You play ball, I'll help you retrieve the ball. I'll do whatever you ask me to do."
Lin Feng smiled as he looked at his serious expression.
"Okay. Then you should learn C programming first."
Liu Jian nodded vigorously.
In the evening, Lin Feng returned home.
Cheng Yuxin was watching TV in the living room—a variety show called "Zhengda Variety Show." The host's voice was very loud; it could be heard even across the hallway.
When she saw Lin Feng return, she turned the TV volume down.
"Have you got a meal yet?"
aircannonsinc