boolean tag

18 questions


1 answers
129 views
0
Is the bowl type false < true always true?

It comes out like this on my computer (Centos 7, gcc 4.8.2), but I wonder if other computers get the same results unconditionally.


1 answers
69 views
0
How to get the value of a DB in SQLite on Android as boolean

Is there a way to get the value of the DB from Android to SQLite in boolean? I usually use getString() or getInt(), but is there a method like getBoolean?

2 years ago

1 answers
60 views
0
Boolean second question, Java

public class TapeDeckTestDrive {public static void main(String[] args) { TapeDeck t = new TapeDeck(); t.canRecord =true; if (t.canRecord == true) { t.recordTape(); }}}class TapeDeck{boolean canRecord...

2 years ago

1 answers
83 views
0
How do I change a String object to a Boolean object?

How do I change a String object to a Boolean object

2 years ago

2 answers
118 views
0
I'm curious about the use of boolean in Java.

public class DrumKitTestDrive {public static void main(String[] args) { DrumKit d = new DrumKit(); d.playSnare(); d.playSnare = false; d.playTopHat();}}class DrumKit{boolean topHat = true;boolean play...

2 years ago

1 answers
124 views
0
I have a question about C language bowl

#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <ctype.h>#include <stdbool.h>#define STOP '.'int main(){ char c; int n_chars = 0; // number of non-space characters int n_l...

2 years ago

1 answers
96 views
0
Is there a way in Python DataFrame to store a specific value position (row or column) and a specific number of values in each variable?

Hello, I'm Python beginner who is learning Python dataframe.fori in range(len(df)) if df1.loc[i, idx1]==HELLO : cnt1=cnt1+1 num=i df2.loc[10, 'idx8'] = df.at[i,'IDX8']There's a code like this, but ...


1 answers
141 views
0
Inquiries about Python Boolean function and list utilization

# Initialize the list to contain the prime numbersprimes = []for n in range(2, 101):# Let's just say that n is a prime number is_prime = False For num in range(2, n): # For num between 2 and (n-1) If...

2 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.