2760: 整型与布尔型的转换(细节) 摘要:####这样写,在编译器上能过,但提交后会显示编译错误 ```c #include int main() { int a,b; bool c; scanf("%d",&a); …… 题解列表 2023年01月01日 1 点赞 0 评论 484 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:num=int(input()) num=bool(num) num=int(num) print(num)…… 题解列表 2024年11月15日 0 点赞 0 评论 152 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdbool.h>int main(){ int a; bool b; scanf("%d",&a); …… 题解列表 2023年01月31日 0 点赞 0 评论 235 浏览 评分:0.0
2760: 整型与布尔型的转换 摘要:解题思路:强制转换就行了注意事项:bool类型在c语言里面没有,要用到头文件#include<stdbool.h>,不过强制转换可以不需要。参考代码:#include<stdio.h>#include…… 题解列表 2023年04月25日 0 点赞 0 评论 311 浏览 评分:0.0
编写题解 2760: 整型与布尔型的转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdbool.h>int main(){ int a; scanf("%d",&a); bool …… 题解列表 2023年07月25日 0 点赞 0 评论 347 浏览 评分:0.0
2760: 整型与布尔型的转换 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年03月20日 0 点赞 0 评论 346 浏览 评分:0.0
2760 整形与布尔型的转换(C++) 摘要:解题思路:布尔注意事项:无参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; cin>>a;…… 题解列表 2023年11月25日 0 点赞 0 评论 166 浏览 评分:8.0
题解 2760: 整型与布尔型的转换 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a; cin>>a; cout<<(boo…… 题解列表 2023年11月25日 0 点赞 0 评论 135 浏览 评分:9.0
整型与布尔型的转换 摘要:解题思路:注意事项:c中没有直接的布尔型,不能直接用,所以要引入一个头文件或者用 _Bool 作为类型定义变量。参考代码:#include<stdio.h>#include<stdbool.h>int…… 题解列表 2022年12月12日 0 点赞 0 评论 1591 浏览 评分:9.9
题解 2760: 整型与布尔型的转换 摘要:解题思路:最好先定义两个整形,到后面麻烦。注意事项:题目有些绕,要看懂。参考代码:#include <bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2023年11月25日 0 点赞 0 评论 229 浏览 评分:9.9