3条回答 默认 最新
threenewbee 2019-02-11 00:50关注你贴截图而不是代码没法给你写了,只能说说怎么修改了。 psn转换成数组 uint8换成byte,uint16换成short strlen函数的代码是 int strlen(byte[] arr) { for (int i = 0; i < arr.length; i++) if (arr[i] == 0) return i; return arr.length; } memcpy的代码是 void memcpy(byte[] d, byte[] s, int len) { for (int i = 0; i < lenl i++) d[i] = s[i]; } 最后java获取年月日的代码 Calendar cal = Calendar.getInstance(); month = cal.get(cal.MONTH)+1); day = cal.get(cal.DATE); printf那个换成java的输出,搞定。解决 无用评论 打赏 举报
