Skip to content
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

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Conversation

ursulalujun
Copy link

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!

}
}
if(i==n)
printf("%d������",n);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

缩进不对

Copy link
Author

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。

{
if(n%i)
{
break;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

break continue return 这类所谓的“短路”语句,倒是可以省略掉括号,也可以跟if语句放在同一行

if(i==n)
printf("%d������",n);
else
printf("%d��������",n);
Copy link
Owner

@luckymark luckymark Mar 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文件的编码方式建议改为utf-8,以解决乱码问题;
ps:utf8可以跨平台

homework/level1.5.cpp Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants