适用于刚入门的小白 直接输出 摘要:解题思路:short -32768~32767int -2147483648~2147483647char -128~127需要知道这些才能解题注意事项:本题直接cout输出答…… 题解列表 2026年05月16日 2 点赞 0 评论 81 浏览 评分:0.0
肉眼判断直接输出 摘要:解题思路:通过经验以及对题目的判断直接输出答案注意事项:此题是建立在C的环境下去判断数值类型的,所以在无法判断想要用py环境判断的话记得调取C的环境之后判断from ctypes import c_i…… 题解列表 2026年04月18日 0 点赞 0 评论 72 浏览 评分:0.0
T2755-类型转换1--步骤清晰 摘要:解题思路:注意事项:参考代码:fromctypesimport*a=c_int(32768)b=c_shor…… 题解列表 2025年11月04日 0 点赞 0 评论 456 浏览 评分:0.0
C++简单解法 摘要:#includeusing namespace std;int main(void){ cout…… 题解列表 2025年03月02日 8 点赞 0 评论 666 浏览 评分:10.0
编写题解 2755: 类型转换1 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { System.out.print(…… 题解列表 2024年01月13日 1 点赞 0 评论 1372 浏览 评分:9.9
理解为什么short类型溢出后的值为-32768 摘要:解题思路:1)占位符%d %d 就表示一定是整数,那就一定是int 和 short2)short型数据的范围是-32768 ~ 32767, int型数据范围远大于此。因此正常输出的一定是int型,而…… 题解列表 2024年01月03日 4 点赞 0 评论 3121 浏览 评分:9.2
这题目?? 摘要:参考代码:#include<iostream>using namespace std;int main(){ cout << "D " << "C";}…… 题解列表 2024年01月02日 0 点赞 0 评论 828 浏览 评分:8.7
变量定义赋值及转换--4.类型转换1 摘要:解题思路:%d说明a,b是整型,只有C、D是整形;所占空间字节大小:short int=2字节,16位,数值范围:-32768~32767int=4字节,32位,数值范围:-2147483648~21…… 题解列表 2023年03月23日 3 点赞 1 评论 1417 浏览 评分:8.0
2755: 类型转换1 摘要:```cpp #include using namespace std; int main() { bool a; char b; cout…… 题解列表 2022年12月03日 0 点赞 1 评论 1135 浏览 评分:7.3