[讨论] String & Function

楼主: andy88566y (猫龙)   2013-11-11 21:42:54
void FindSuit(char str[]){
str[3] = '\0';
return 0;
}
int main(){
char input[10] = "1234567890";
FindSuit(input);
printf("%s",input);
}
作者: Hyww13 (hyww)   2012-01-11 21:55:00
这是双班作业?要做什么啊?
楼主: andy88566y (猫龙)   2012-01-11 22:45:00
两个人玩扑克牌比大小一人五张那种
作者: hsyuch (hsyuch)   2012-01-12 01:34:00
可以把函式改成int型别 Find不同的结果有不同回传值不确定你这个函式是要怎么用所以只能猜测
作者: hsyuch (hsyuch)   2012-01-12 01:35:00
然后void不应该有return 0;
楼主: andy88566y (猫龙)   2012-01-14 15:08:00
got it thx!
作者: Hyww13 (hyww)   2013-11-11 21:55:00
这是双班作业?要做什么啊?
楼主: andy88566y (猫龙)   2013-11-11 22:45:00
两个人玩扑克牌比大小一人五张那种
作者: hsyuch (hsyuch)   2013-11-12 01:34:00
可以把函式改成int型别 Find不同的结果有不同回传值不确定你这个函式是要怎么用所以只能猜测然后void不应该有return 0;
楼主: andy88566y (猫龙)   2013-11-14 15:08:00
got it thx!
作者: Hyww13 (hyww)   2013-11-12 05:55:00
这是双班作业?要做什么啊?
楼主: andy88566y (猫龙)   2013-11-12 06:45:00
两个人玩扑克牌比大小一人五张那种
作者: hsyuch (hsyuch)   2013-11-12 09:34:00
可以把函式改成int型别 Find不同的结果有不同回传值不确定你这个函式是要怎么用所以只能猜测然后void不应该有return 0;
楼主: andy88566y (猫龙)   2013-11-14 23:08:00
got it thx!

Links booklink

Contact Us: admin [ a t ] ucptt.com