input tag

35 questions


1 answers
139 views
0
Is it possible to input/output a C++ file through a variable in which the file name is stored instead of entering a specific file name?

I'm a C++ beginner. Hello.Not the same format as ifstream in (C:\~~~~~\Example.txt).Stored as string A = Example.txt, I wonder if there is a way to write in the same format as ifstream in (C:\~~~~\A)....

2 years ago

2 answers
59 views
0
Question when multiple javascript variables are entered

You want to receive multiple inputs as a prompt and save them in a variable.vara,b = prompt (Enter two numbers: ).split( );When I wrote it, it only went into b.Python used to have good variables even ...

2 years ago

1 answers
140 views
0
How do I stop the program until I get input?

Press any key to exit...You want to paste a code that ends after you receive a keyboard input (whatever) at the end of the program.In C, we could have gotten a character type through scanfIf I use inp...

2 years ago

1 answers
110 views
0
I have a question regarding the input=submit tag.

input type=submitWhen writing code with , you can see that the effects in the <input type=submit> box change when clicked. You can click it, but do you know how to keep the effect unchanged?It's...

2 years ago

3 answers
119 views
0
Reverse by Python string word

Hello, it's nothing but a = input()print (a[::-1])For example, how are you is uoyera woh.I'd like to make each spelling upside down, not backwards, but backwards based on spacing.If it's how are you, ...

2 years ago

1 answers
81 views
0
Python while moon

( elif num == 2: ^SyntaxError: invalid syntax) It pops up like this and there is a red mark on this part, so how do I solve it?money = 0 while True: num = int (input (select the menu :)) if num == 1:...

2 years ago

1 answers
52 views
0
Python input question!

Picture shows a 12chances.Enter a letter:a It appears like this, but the values of a do not appear on the screen 12chances.Enter a letter:a How do I code to show only like this on the screen?

2 years ago

1 answers
134 views
0
If conditional questions: if i == "What time is it?" or "What time is it now?" or "Tell me the current time."

import datetimeimport sysstart_time = datetime.datetime.now()def bitbox (): print (Hitting the drum)i = input (Did you call Siri?[Yes/No])ifi == Yes: print (I'm listening...) input (Enter=>)Ifi == ...

2 years ago

1 answers
58 views
0
Python input() question ㅜ

a, b = map(int, input().strip().split(' '))print(a//b,a%b)I want to divide a by b, divide a by b, and I want to print the rest, but why can't I print it out with the code above?

2 years ago

1 answers
53 views
0
After entering a number or character in the input value, the corresponding command statement is not possible.

b=input(input)if int(b)==int: print(Just write letters,)elif str(b)==str: print (Just write the numbers)This prevents the print value from running when you write down numbers, and errors occur when yo...

2 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.