int tag

57 questions


1 answers
139 views
0
How do I change boolean to int?

What is the best way to change boolean to int?

1 years ago

1 answers
120 views
0
How to change float to int in Java

float a=8.61f; int b; b=(int)a;This is how you change float to int. It's not accurate. The value of b is 8, but it's supposed to be 9.And when the value of a is -7.65f, the result is -7, not -8 What s...

1 years ago

1 answers
51 views
0
I keep getting warnings when I print out int64_t of C

When int64_t is printed as %d, I keep getting a warningI tried a bigger %lld and it's the same ㅜㅜ lld is the biggest thing I know, what should I do?#include <stdio.h>#include <stdint.h>int...

1 years ago

1 answers
70 views
0
How do I sort the arrays in descending order in Java?

You can just sort the arrangement in ascending order. Is there an easy way to sort in descending order?

1 years ago

1 answers
62 views
0
Built-in method to replace int/long with binary string

I searched for a code that turns int/long into a binary string and found that only people defined it themselves, is there a method provided by Python itself?I think this method will be supported direc...

1 years ago

1 answers
130 views
0
How do I print XML data in Java in a good way?

There is a Java string that has no line feed and is not indented. I want to make this string look good. How shall I do it?String unformattedXml = <tag><nested>hello</nested></tag&...

1 years ago

1 answers
133 views
0
To receive input from Python as an integer

Why can't the code below receive the input value as an integer? From what I looked up, it is correct to use raw_input() but from Python 3.x, raw_input() has changed to input().play = Truewhile play: x...


2 answers
150 views
0
I'd like to know how to print multiple lines from Python

Hello, I'm a beginner at Python.a=10b=7c=5d=9e=8f=2print(a,b,c,d,e,f)>>> 10 7 5 9 8 2How do I print out by breaking it into multiple lines? 10 7 59 8 23 lines per line, 2 lines in total, or 1...

1 years ago

1 answers
130 views
0
Python print output delay

print('A',end=)time.sleep(1)print('B',end=)time.sleep(1)print('C')time.sleep(1)print('D')I was expecting ABCD to print out in a second, but...There is no delay unless end='\n'.What are some ways?

1 years ago

1 answers
77 views
0
Please check if the Java programming example is correct.

I'm studying after looking at the example question, but I don't understand the question well.The result value and type of the next equationShould I write down the value and type separately?Number 1 - ...

1 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.