专业课笔记1月9日
scanf(“%f%f”,&a,&b);输入的三种格式为:11空格22 11回车22 11tab22
执行语句int a=1,b=2,c=3;if(a=c) b++;else b–;后,变量b的值为( A )【2022年真题】A.3 B.2 C.1 D.不确定解析:if(a=c)只是赋值,不用比较大小。本题是将c的值赋值给a,if执行完毕不执行else(固定语法!)
double型变量在输入时只能用%lf 输出时可以使用%lf或者%f
switch(整型/字符型)
判断初始化字符(串)数组语句的对错
放没放多
数组名不能放等号=左边
有没有{ } “ “可以没有{} ‘ ‘必须加{}1234char str[5]="hello"; × 放多了char str[]={'h','b'}; √char str[5]={"hi" ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment


