user-input Questions
4
Solved
I want to create a popup message box which prompts user to enter an input. I have this method inside a class. I am basing my code on this guide by java2s.
class MyDialog:
def __init__(self, paren...
Klan asked 4/4, 2012 at 23:51
7
I want to read a line of integers from the user. I'm not sure how to check to see if the input has ended. For example I want to be able to do something like
int x[MAX_SIZE];
int i = 0;
while(cin.h...
Excommunicative asked 29/1, 2014 at 1:27
1
Solved
I am logging into a website using my own credentials, but 2FA is active. Therefore, I need a way to "pause" the script until I manually click the button with my mouse.
Note that the butto...
Dawdle asked 22/7, 2021 at 9:12
11
How would I return the values that I found in this switch statement to the rest of the class for use (I want to use oneTotal, twoTotal, etc. out side of that switch statement)? Here is the code for...
Modest asked 16/2, 2015 at 18:2
13
How does this program actually work...?
import java.util.Scanner;
class string
{
public static void main(String a[]){
int a;
String s;
Scanner scan = new Scanner(System.in);
System.ou...
Sulfa asked 4/9, 2012 at 14:5
17
Solved
Is there a way to detect if a mouse button is currently down in JavaScript?
I know about the "mousedown" event, but that's not what I need. Some time AFTER the mouse button is pressed, I want to b...
Cuticle asked 26/11, 2008 at 22:29
5
Solved
Here is my website: http://splash.inting.org/wp/
I currently use the Bootstrap Datepicker (range branch) for my Call Date field and it's been great.
Although I have 2 Problems:
1) You can manual...
Propose asked 19/11, 2012 at 2:58
5
Solved
I am writing a text game in Clojure. I want the player to type lines at the console, and the game to respond on a line-by-line basis.
Research showed me that (read-line) is the way one is meant to...
Bekha asked 10/10, 2011 at 0:35
4
Solved
I've got a problem that is seemingly impossible to debug. My project originally started using 2019.2 and upgraded to 2019.3 without any problems. I then installed the preview package for the new in...
Nickienicklaus asked 1/2, 2020 at 10:47
2
Solved
In my Angular 11 project, I have an image uploader component which uses <input type="file"> to accept an image and send it to server. This image uploader is supposed to only accept ...
Borneo asked 10/3, 2021 at 13:24
2
Solved
What is the best way in Python 3 to read in multi-line user input when the amount of input is unknown? The multi-line input will be separated by Enter
when I try using
while True:
line = input()...
Dynast asked 5/10, 2017 at 18:24
7
Solved
I have an infinite while loop that I want to break out of when the user presses a key. Usually I use raw_input to get the user's response; however, I need raw_input to not wait for the response. I ...
Shalloon asked 13/12, 2013 at 22:16
15
Solved
I'm in an intro to C++ class and I was wondering of a better method of checking if input was the desired type.
Is this a good way of doing this? I come from a PHP/PERL background which makes me ra...
Spaulding asked 5/2, 2010 at 17:41
6
Solved
Is it possible to ask for selection between multiple choices in Python, without an if loop?
Example:
print "Do you want to enter the door"
raw_input ("Yes or not")
And the user...
Murdock asked 1/6, 2016 at 10:16
4
Solved
I want to allow users only to type certain characters based on the a regex in my android applications. How do I achieve it?
Newsstand asked 15/11, 2010 at 1:31
8
Solved
#include <string>
std::string input;
std::cin >> input;
The user wants to enter "Hello World". But cin fails at the space between the two words. How can I make cin take in the whole ...
Nannette asked 30/4, 2011 at 0:48
6
Solved
How do I create a function that makes a window with two buttons, where each button has a specified string and, if clicked on, returns a specified variable? Similar to @ 3:05 in this video https://w...
Glebe asked 1/3, 2014 at 1:5
2
Solved
I have only one method main. How to check System.out.println() and replace Scanner to input values automatically using JUnit?
P.S. Please, provide some solutions...
public static void main(Stri...
Charpoy asked 8/9, 2012 at 14:40
4
Solved
I want to create an on-screen input box that a user can interact with.
The user would see a window with an input field they can click with the mouse. The user could type or erase text in the field...
Needle asked 1/1, 2014 at 2:17
5
Solved
I am implementing a small command line tool in python that needs to ask the user a couple of questions. I use
raw_input('Are you male or female?')
all the time. Now I would like to be able to de...
Cadena asked 2/6, 2013 at 16:14
5
Solved
have a brief question regarding innerHTML and input values that have been entered. See the brief example below (using jQuery for convenience):
http://jsfiddle.net/F7urT/2/
jQuery:
jQuery(documen...
Flatting asked 25/8, 2012 at 23:32
1
I have a template for AWS Cloud Formation. In this template I have set several parameters.
Now, what I would like to do is to leave a parameter field empty but allow the user to select
a specific p...
Broeker asked 7/6, 2020 at 11:21
4
Solved
I am trying to print the data type of a user input and produce a table like following:
ABCDEFGH = String
1.09 = float
0 = int
true = bool
etc.
I'm using Python 3.2.3 and I know I could use type() ...
Faunie asked 5/3, 2014 at 13:52
2
Solved
Why don't loop cycles work as before after a timeout (no more printed user input)?
#!/usr/bin/env raku
loop {
my $str;
my $timeout = Promise.in( 5 ).then({
$str = 'Timeout';
});
my $user = P...
Sock asked 29/4, 2020 at 6:32
7
Solved
Here I have to set the default value if the user will enter the value from the keyboard. Here is the code that user can enter value:
input = int(raw_input("Enter the inputs : "))
Here the value ...
Rooky asked 14/3, 2014 at 10:33
© 2022 - 2024 — McMap. All rights reserved.