-
Notifications
You must be signed in to change notification settings - Fork 35
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
摸索着交个作业... #45
base: master
Are you sure you want to change the base?
摸索着交个作业... #45
Conversation
practices/c/level0/C0
Outdated
@@ -0,0 +1,8 @@ | |||
# include <stdio.h> |
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.
文件名的后缀应该是.c
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.
了不起!能摸索着交出来,就是厉害的!
所有的C语言源文件都应该是.c后缀,请全部修改;
ps:重点是,提交之前,程序必须能正常运行
system("cls"); | ||
} | ||
|
||
for(i=12;i>0;i--){ |
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.
smell! 闻到了重复的味道,这段代码与上面的非常相似,请设法消除之
practices/c/level1/p02_isPrime/p02
Outdated
} | ||
} | ||
|
||
} |
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.
暂时看到这里,请检查下还有没有类似的问题,一并修改后,我再接着看吧
@@ -0,0 +1,26 @@ | |||
# include<stdio.h> |
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.
这个文件不需要了,应该删掉
@@ -0,0 +1,23 @@ | |||
# include<stdio.h> |
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.
内容与前面的文件是一样,请删除一个
int age; | ||
// age/6+age/12+age/7+5 = age-age/2-4 | ||
|
||
age = 28*9/3; |
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.
这个不行哦
phead = NULL; | ||
} | ||
|
||
node*addback(node*phead, int newdata) |
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.
addback 改为:add_back 或者 addBack 都可以
之前把析构函数忘了。。
突然发现之前的作业一直都没交上。。。尝试一下