-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homework 1-6 by LuXiaoya #16
base: master
Are you sure you want to change the base?
Conversation
homework/level1.2.cpp
Outdated
} | ||
} | ||
if(i==n) | ||
printf("%d������",n); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
缩进不对
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
谢谢俸老师!我之前的没有设置用空格固定tab,提交上来的时候缩进就乱了。1.2的文件的编码方式已改成utf-8。
homework/level1.2.cpp
Outdated
{ | ||
if(n%i) | ||
{ | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
break continue return 这类所谓的“短路”语句,倒是可以省略掉括号,也可以跟if语句放在同一行
homework/level1.2.cpp
Outdated
if(i==n) | ||
printf("%d������",n); | ||
else | ||
printf("%d��������",n); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文件的编码方式建议改为utf-8,以解决乱码问题;
ps:utf8可以跨平台
Hello,Mr.Feng! I haven't learned very deep about programming and it is my first time to use git.Please point out the error and things that can be optimized in my homework and I'll correct them immediately.Thank you!