摘要:
strcat、strncat、strcmp、strncmp、strcpy、strncpy、strdup 》strcat char strcat(char * str1,char * str2); 函数功能: 把字符串str2接到str1后面,str1最后的'\0'被取消 函数返回: str1 参数说 阅读全文
posted @ 2021-08-23 13:31
早晨9点
阅读(870)
评论(0)
推荐(0)
摘要:
例如:随机获取两位数 [10,99] [a,b] (Math.random() * (b - a + 1) + a) 公式: (Math.random() * (99 - 10 + 1) + 10) 此公式得到的数值为 double 型,可在前面进行类型转换 例如: (int)(Math.rando 阅读全文
posted @ 2021-08-23 13:24
早晨9点
阅读(1260)
评论(0)
推荐(0)
摘要:
在需要结束的循环前进行标记即可 package day2020_11_19; public class XunHuan { public static void main(String[] args) { label:for(int i = 1;i <= 4;i++){ for(int j = 1; 阅读全文
posted @ 2021-08-23 12:58
早晨9点
阅读(117)
评论(0)
推荐(0)

浙公网安备 33010602011771号