2019-2020-1 20199320 "Linux kernel principle and Analysis" in the first week of operation

1. Problem: touch and cat> can create files, what's the difference?
Solution: The practice started, find touch just create an empty file, cat> Create a new file when no files have the file back when emptying the original content, and the cat can be added directly to the contents of the file.

2.问题:declare声明变量,会像C语言一样声明整型只能赋值整数,声明字符型只能赋值字符?还是数字、字符等都可以?
   解决方法:通过自己实验,declare声明的变量可以赋值数字、字母、字符串,若赋值字符串时以空格作为结束符,故不能传一句话。如图:
    ![](https://img2018.cnblogs.com/blog/1801301/201909/1801301-20190915225806264-1563503563.png)



3.问题:使用banner输出图形字符时,如果输入两个字符串,用空格隔开,最后输出的两个字符串是分两行的,如何能在一行显示?如何输出中文?
   ![](https://img2018.cnblogs.com/blog/1801301/201909/1801301-20190915224835568-545424943.png)
   解决方法:由于时间问题,暂时没有解决出来,有时间还会继续研究。

Guess you like

Origin www.cnblogs.com/liangxu111/p/11524946.html