Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
1 answer
87 views

I'm working on a square root table, with a start and end point. However, my points aren't correlating with my table. It's only using the numbers I put for my integers. I need it to use my start number ...
C P's user avatar
  • 3
-1 votes
1 answer
137 views

I am coding a hangman game using Java. I wanted to make things tougher so I added a timing condition for a user to guess the word (example:20 secs) now the problem I'm facing is that the while loop ...
Zahra 's user avatar
  • 85
0 votes
0 answers
103 views

So I'm just starting to learn JavaScript, like its syntax and logic, therefore I'm still not implementing anything on a web page, just playing with the console before doing any web development with JS....
Alej0GG's user avatar
  • 11
0 votes
1 answer
430 views

I have a question regarding java io*. How can I input things into the java console, which after inputting gets added to the java file linked to. The problem is that I need to create a people database, ...
mogli's user avatar
  • 1
0 votes
1 answer
161 views

I have an issue similar to the one described in this post however mine involves a function being called in script 1 from a second script that stores the function. Essentially script1.R has reference ...
BLP92's user avatar
  • 345
-1 votes
1 answer
51 views

I need to type a command twice into the Console, only then it recongnizes it as a input. I tried as the reader from the command file also a scanner instead of a bufferedReader. I hope you can help me! ...
Unleqxt's user avatar
0 votes
1 answer
410 views

I have a c# console application that needs input that contains characters like "ä", "ö" or "å". But these characters drop out of the input. For example if the user input ...
Piano Piggy's user avatar
0 votes
0 answers
1k views

This question was part of an assignment for a software class in college. I've long since quit but I'd really like to learn python so I'm revisiting some assignments. I've created a simple code that ...
MaximusCodes's user avatar
1 vote
1 answer
789 views

I need to be able to choose any file inside a folder by input on console. Code Instead of a predefined like "bridge_rgb.png" I want to be able to choose any file in the folder via console ...
Dylan 's user avatar
  • 23
1 vote
1 answer
3k views

I'd like to make the C# console only accept input from the Enter key on the startup screen. I've made it so that it closes the console when anything but the Enter key is pressed. How can I make it so ...
samuelbachet's user avatar
0 votes
0 answers
47 views

I want to give my script named console parameters in any order, but my code won't work as it should. import argparse, sys parser = argparse.ArgumentParser() parser.add_argument('n', help="some ...
Lukas Schmidinger's user avatar
2 votes
1 answer
146 views

#include <stdio.h> #include <stdlib.h> #include <string.h> void eat() // clears stdin upto and including \n OR EOF { int eat;while ((eat = getchar()) != '\n' && eat != ...
user13863346's user avatar
0 votes
2 answers
1k views

I'm running the following bit of code to get input from the terminal in nodejs (I picked this method because it doesn't need dependencies) and I need it to work synchronously. It's inside a function ...
TheDeveloperNextDoor's user avatar
0 votes
1 answer
1k views

I need to get a very long string input (around 9,000 characters), but Read-Host will truncate after around 8,000 characters. How can I extend this limit?
xinglong's user avatar
  • 115
-4 votes
1 answer
536 views

I'm really, really stuck and confused. I've net searched several times, and can't find anything that helps me with this precise homework problem. Involved: Java, while loops, randomly generating ...
Ennesby's user avatar
0 votes
1 answer
1k views

I want to make a command to send a message to a text channel or a user,and the message should be input at console,but input() seems to "block" the program. Although I had tried threading to figure out ...
ppodds's user avatar
  • 1
0 votes
2 answers
612 views

I am trying to use JUnit to test a java application which takes input from the console to make choices in the program. Here is a snippet of the program I am trying to test below. PS: I am new to ...
MeHead's user avatar
  • 7
0 votes
2 answers
1k views

I have a the following method below that receives a Scanner object with N number of lines, each with a a one word string. public static void longestName(Scanner console, int n) { for (...
Edson's user avatar
  • 285
0 votes
1 answer
858 views

I have a Skype for Business bot that is listening to a specific contact with handlers from the lync sdk. Now I want to input some commands through the console. But when I use the ReadLine method my ...
XxTSDTxX's user avatar
0 votes
3 answers
685 views

using A = System.Console; public void point() { int hour, minute; A.Write("Enter Time (HH:MM) = "); hour = A.Read(); A.Write(":"); minute = A.Read(); } I want it to be like "...
Jan Nutcha's user avatar
1 vote
0 answers
51 views

Code output should be: 515 30 However, when I add variables a, b, c my output is 51530. I've added a + b just to test it, and the output was 515. I just can't figure out how to return the c so that ...
Hannah's user avatar
  • 5
7 votes
2 answers
23k views

The prototypes for getchar() and putchar() are: int getchar(void); int putchar(int c); As ,its prototype shows, the getchar() function is declared as returning an integer.However, you can assign this ...
rooni's user avatar
  • 1,110
-1 votes
1 answer
47 views

cin << name << endl; cout >> "my name is " << name << endl;
collin sim's user avatar
1 vote
1 answer
1k views

In my assembly program I called AllocConsole from the kernel32 library, however I do not know how to get input from the allocated console. Is there any function that the winapi contains that will get ...
mike bayko's user avatar
0 votes
1 answer
355 views

I'm new to R. And I want to make a program that asks for console input and then does some things, including making a graph. And now I want the user to specify the x-values for the graph. And then I ...
Piet's user avatar
  • 3
0 votes
1 answer
155 views

How exactly does Ncurses capture input into the console? I would like to implement it myself instead of using ncurses due to the overhead that ncurses is causing. Thanks!
Nautilus's user avatar
  • 125
1 vote
3 answers
4k views

I know this is an odd question, but is there any way of reading a previous input from the console? Something like: The fox is brown // line 1 The duck is yellow // line 2 Here where the control is ...
Nicholas Theophilus's user avatar
0 votes
0 answers
425 views

I'm using PhantomJS + CasperJS to do some headless web scraping. My application requires the user's login credentials, including an email and password. Currently, I'm getting the user's password in ...
geoff's user avatar
  • 2,274
3 votes
1 answer
435 views

First of all, I specify that I use Windows 10 64bit and Haskell Platform 8.0.1. I try to use FFI of Haskell in Windows using following code. import Control.Monad import Data.Char import Foreign.C ...
Clare Jang's user avatar
0 votes
1 answer
1k views

The following problem arised while building a REPL console application for a programming language. Essentially, the language relies on you being able to write multiple lines of text. However, the ...
Clashsoft's user avatar
  • 11.9k
-2 votes
1 answer
218 views

/* This code reacts negatively when the input is received in the format mm / dd/ yyyy or mm/dd/yyyy. I've asked for help but I think there's more to it than simply a String vs. int syntax dynamic ...
Kevin Spohn's user avatar
-3 votes
1 answer
662 views

Sorry if my question isn't that clear. We usually write it like: dim num as integer Console.writeline("Input num") num = console.readline() How can you write that input num and the value on num on ...
thezaynthe's user avatar
0 votes
4 answers
1k views

I am writing a server in Java, which is multithreaded. I have three main active threads that I build and start from my main method: public class Run{ public static void main(String[] args){ ...
Dannon's user avatar
  • 2,226
-1 votes
1 answer
147 views

I need to read input test cases from console into a 2D array and a 1D array but unable to find the error in my code import java.util.*; import java.lang.*; import java.io.*; class ...
Raghavender Mylagary's user avatar
2 votes
2 answers
3k views

I'm writing a wizard for a CLI in Go. What I'd like to do is ask the user what he wants to do, prepare the appropriate CLI command, and write it to the console. The user then would submit the ...
David Tootill's user avatar
1 vote
2 answers
268 views

I am writing a command-line matrix manipulation tool in Java, and was wondering if it is possible to run Java statements through console input. I was thinking of using the java.util.Scanner object ...
Paul Sypnowich's user avatar
0 votes
2 answers
53 views

I'm talking about efficiency. I need to read an int from the console input. I know for sure that the input is the form of one int on each line and no other values. I have a Scanner object defined: ...
Tim Southee's user avatar
12 votes
7 answers
51k views

I have a task to read n given numbers in a single line, separated by a space ( ) from the console. I know how to do it when I read every number on a separate line (Console.ReadLine()) but I need help ...
tabula's user avatar
  • 243
0 votes
3 answers
3k views

I want to create a two dimensional array where number of rows and columns are fixed and column values will be taken from console input. void main() { int myArray[3][5]; int i; int a, b, ...
Esika's user avatar
  • 39
4 votes
3 answers
15k views

Apologize if this trivial question has already been answered, I cannot find it at SO. Reading lines from the IDE console with this Java trivial code (Windows 7 and Eclipse Kepler): int v; try { while ...
mins's user avatar
  • 7,784
3 votes
0 answers
525 views

I am quite new to Python and started using Eclipse with Pydev recently. I am writing a script where I'd like to enter a password via the console, and the password should not be displayed. So far I ...
P. Camilleri's user avatar
  • 13.3k
1 vote
1 answer
255 views

Why does trying to read a line from console with a BufferedReader freeze Leiningen REPL? lein repl nREPL server started on port 65142 REPL-y 0.2.0 Clojure 1.5.1 Docs: (doc function-name-here) ...
missingfaktor's user avatar
0 votes
2 answers
295 views

First I'm a noob to Java so don't be mad at me if I'm acting stupid - Thanks. As I said I'm trying to learn Java. Right now I'm trying to learn the right scanner for this mini-game, but I'm getting ...
Landscape's user avatar
  • 257
0 votes
1 answer
256 views

I designed a C++ application that represents an mechanical arm. The simulation is running inside a while loop. I have the following class Motherboard that interacts with the simulation class ...
Vincent's user avatar
  • 1,734
3 votes
1 answer
361 views

When I do practice on K&R,I found a very interesting question: code as follows: include <stdio.h> main() ...
kursk.ye's user avatar
  • 559
10 votes
3 answers
1k views

Recently I was writing a little CLI script which needed to repeatedly read dates from the console (the number of dates to read was calculated and could be different each time). Sample Ruby code to ...
Alex D's user avatar
  • 30.6k
1 vote
2 answers
507 views

Say suppose I am running a java program through command line. And this program requires some data to enter during the execution. So I was wondering on what happens if somebody uses javaw to run this ...
GuruKulki's user avatar
  • 26.6k