user-input Questions

5

Solved

I was wondering how I would go about Hiding the input from a 'set /p' command in a batch file. set /p Password=What is your password? We all know that inputting your password, you would be abl...
Everyplace asked 2/5, 2011 at 1:31

6

Solved

Here is some C code trying simply to prevent the user from typing a character or an integer less than 0 or more than 23. #include <stdio.h> #include <stdlib.h> int main(void) { const...
Casar asked 31/12, 2012 at 8:47

6

Solved

I know that command line interfaces like Git and others are able to hide input from a user (useful for passwords). Is there a way to programmtically do this in Java? I'm taking password input from ...
Attune asked 30/5, 2012 at 15:31

6

I want to make a loop in C that, when the program asks for an integer and the user types a non-digit character, the program asks again for an integer. I just found the below code. but I don't unde...
Cyrene asked 6/5, 2015 at 0:50

3

Solved

I have a script I'm writing that makes a connection to a SOAP service. After the connection is made, I need to pass in a the username/pass with every command I send. The problem I have is that when...
Luciennelucier asked 21/2, 2013 at 16:16

3

Solved

I need some help. I'm trying to make my for loop work with decimals, but my code won't accept floats and I'm not sure what to do next. Can anyone point out where I went wrong? It's a code used for...
Vulgar asked 27/9, 2016 at 1:17

3

Solved

I am looking for a GNU readline alternative. It comes with a lot of features but only couple of them are useful to me as explained below - I am working on a interactive command prompt application ...
Predial asked 31/7, 2013 at 23:17

7

Solved

Here's an issue that's bedeviling me at the moment. When getting input from the user, I want to employ a loop to ask the user to retry until they enter valid input: // user_input.go package main ...
Highmuckamuck asked 1/2, 2013 at 5:17

7

Solved

I have a simple console app written in C#. I want to be able to detect arrow key presses, so I can allow the user to steer. How do I detect keydown/keyup events with a console app? All my googling...
Sim asked 4/12, 2010 at 0:52

3

Solved

Hi I want to get a number from user and only except input within a certain range. The below appears to work but I am a noob and thought whilst it works there is no doubt a more elegant example... ...
Ide asked 21/7, 2012 at 17:59

4

Solved

Back in cmd.exe, I used set /P file=Enter path to the file: to enter file path from console (if it wasn't supplied as a parameter), and I could press Tab to get path auto-completion. However, w...
Helbon asked 19/3, 2014 at 14:54

8

Solved

I'm not sure if this question has been answered elsewhere and I can't seem to find anything through google that isn't a "Hello World" example... I'm coding in C# .NET 4.0. I'm trying to develop a...
Dimer asked 5/1, 2011 at 14:36

7

Solved

Using python and argparse, the user could input a file name with -d as the flag. parser.add_argument("-d", "--dmp", default=None) However, this failed when the path included spaces. E.g. -d C:...

4

Solved

How do I fill os.Stdin in my test for a function that reads from it using a scanner? I request a user command line input via a scanner using following function: func userInput() error { scanner ...
Yeung asked 22/9, 2017 at 12:49

9

Solved

I'm attempting to get a few user-input parameters from the console, two strings, two ints and a double. The relevant code I'm trying to use is this: #include <string> #include <iost...
Diploid asked 16/10, 2011 at 20:13

1

This is a follow-up question to this previous post that doesn't seem like it was ever truly answered with more than a "this looks promising": Jenkins how to create pipeline manual step. This is a...

21

Solved

There is no "Done" button on the .numberPad Keyboard Type. When a user finishes entering numeric information in a text field, how can I make the number pad disappear? I could get a "...
Busse asked 25/2, 2009 at 2:45

1

Solved

My Understanding From various sources, I have come to the understanding that there are four main techniques of string formatting/interpolation in Python 3 (3.6+ for f-strings): Formatting with %, ...

11

Solved

I want to take runtime input from user in Oracle 10g PL/SQL blocks (i.e. interactive communication with user). Is it possible? declare x number; begin x=&x; end this code gives error as &...
Cooperative asked 20/9, 2012 at 16:30

2

Solved

Is there a way to make it so that if a user reaches the end of the "line" on a textInput field that it continues on the next line and increases the height of the textbox so that they can see the en...
Viable asked 5/8, 2016 at 20:0

5

Solved

I'm prompting questions in a bash script like this: optionsAudits=("Yep" "Nope") echo "Include audits?" select opt in "${optionsAudits[@]}"; do case $REPLY in 1) includeAudits=true; break ;; ...
Restrained asked 14/3, 2017 at 14:51

3

Solved

I am trying to run my c++ program with valgrind, however I have some points in the program which require user input from stdin, but when i run with valgrind, it wont let the user input anything for...
Casals asked 11/2, 2011 at 20:51

6

Solved

I am trying to make a JOptionPane get an input and assign it to an int but I am getting some problems with the variable types. I am trying something like this: Int ans = (Integer) JOptionPane.showI...
Mccullers asked 25/6, 2010 at 19:41

8

Solved

Existing answers I've found are all based on from_str (such as Reading in user input from console once efficiently), but apparently from_str(x) has changed into x.parse() in Rust 1.0. As a newbie, ...
Rosmunda asked 20/5, 2015 at 16:17

10

Solved

I have to take input from the user in the following format and make a nested list from it. The first line is the number of rows. 3 Sourav Das 24 M Titan Das 23 M Gagan Das 22 F The nested l...

© 2022 - 2024 — McMap. All rights reserved.