[编程入门]原码求补码-题解(C++代码) 摘要: #include #include #include using namespace std; int main() { string s1; cin>>s1; for(i…… 题解列表 2019年07月23日 0 点赞 0 评论 1012 浏览 评分:2.0
[编程入门]原码求补码-题解(Java代码) 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { Scanner sc = new Scanner(System.in); …… 题解列表 2021年01月24日 0 点赞 0 评论 337 浏览 评分:0.0
[编程入门]原码求补码-题解(C++代码) 摘要:# 思路 正数,不变。 负数,符号位不变,其余位取反加一。 # 代码 ```cpp #include #include int main() { std::string s…… 题解列表 2020年01月01日 0 点赞 0 评论 514 浏览 评分:0.0
源码求补码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>char *fun(char a[]);int main(){ char a[17]; scanf("%s",&a); …… 题解列表 2021年03月26日 0 点赞 0 评论 305 浏览 评分:0.0
羅者——Java语言 1776: [编程入门]原码求补码 摘要:[原题链接](http://https://www.dotcpp.com/oj/problem1776.html "原题链接") 我用的是String转String数组再转int数组并输出 …… 题解列表 2021年08月11日 0 点赞 0 评论 283 浏览 评分:0.0
原码求补码 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { char a[16]; for (int i = 0; i < 1…… 题解列表 2023年09月21日 0 点赞 0 评论 174 浏览 评分:0.0
原码、反码、补码 摘要:参考代码://注意事项 //1.首位只是符号位,0表示正数,1表示负数,不表示该数的二进制位 //2.正数的原码、反码、补码都是他本身 //3.负数转反码时,符号位不变,其余各位取反;补码=反码…… 题解列表 2024年10月12日 0 点赞 0 评论 221 浏览 评分:0.0
1776: [编程入门]原码求补码 摘要:```c#includeint main() { char arr[16]; scanf("%s",arr); if(arr[0]=='1'){ for…… 题解列表 2025年03月19日 0 点赞 0 评论 126 浏览 评分:0.0
[编程入门]原码求补码-题解(C语言代码) 摘要:只能用字符型,整形的好像不对 #include "stdio.h" int main() { int i; char a[17]; gets(a); if(a[0]…… 题解列表 2020年02月12日 0 点赞 0 评论 567 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题12.6 (C语言代码) 摘要:我的思路是把二进制当做字符串输入到长度为17的数组中(最后一位为‘\0’结束符)#include<stdio.h>#define N 17int main(){ char a[N]; int i=0;…… 题解列表 2017年08月17日 2 点赞 0 评论 1023 浏览 评分:0.0