Xcode入门编程求助!
内容如下重点“sleep”那里最佳答案会加分的!拜托了:#include<stdio.h>voidcongratulateStudent(char*student,cha...
内容如下 重点“sleep”那里 最佳答案会加分的!拜托了:
#include <stdio.h>
void congratulateStudent (char *student, char *course, int numDays)
{
printf("%s has done as much %s Programming as I could fit into %d days.\n",
student, course, numDays);
}
int main(int argc, const char * argv[])
{
congratulateStudent ("Mark", "Cocoa", 5);
sleep(2); //就是每个sleep这里Xcode显示“conflicting type for ‘sleep’”,点run,run不了
congratulateStudent ("Bo", "objective-C", 2);
sleep(2); //我也试了全改成大写“S”,也run不了。
congratulateStudent ("Mike", "python", 5);
sleep(2); //我是跟着书学的,书中的例子给的就是这样,我也搞不懂了。
congratulateStudent ("Ted", "iOS", 5);
return 0;
}
非常感谢!!!! 展开
#include <stdio.h>
void congratulateStudent (char *student, char *course, int numDays)
{
printf("%s has done as much %s Programming as I could fit into %d days.\n",
student, course, numDays);
}
int main(int argc, const char * argv[])
{
congratulateStudent ("Mark", "Cocoa", 5);
sleep(2); //就是每个sleep这里Xcode显示“conflicting type for ‘sleep’”,点run,run不了
congratulateStudent ("Bo", "objective-C", 2);
sleep(2); //我也试了全改成大写“S”,也run不了。
congratulateStudent ("Mike", "python", 5);
sleep(2); //我是跟着书学的,书中的例子给的就是这样,我也搞不懂了。
congratulateStudent ("Ted", "iOS", 5);
return 0;
}
非常感谢!!!! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询