Most voted "data-entry" questions
37 questions
Sort by count of
-
29
votes1
answer12710
viewsHow to read from stdin in C?
How should I read characters, digits and strings stdin? getchar; fgetc; fgets; getc; scanf; I’m here trying to read from the console and there’s always something wrong with reading it. I have tried…
-
12
votes3
answers464
viewsShould the checkbox label be on the right or left of the controller?
Usually we put the label to the left of the data entry control. Well, it has layouts but this is a common good. By linearity would be the case of label continue left. But it’s very common to see the…
-
7
votes2
answers477
viewsAlternative to Scanner for Data Entry
In java, when we’re learning to capture data input, usually by text mode, we’re told to use the class Scanner. Is there any alternative to Scanner to capture data input by text mode? If so, how does…
-
7
votes1
answer1284
viewsCin vs scanf, which is faster?
In competitive programming it is common for several programmers to use scanf() and printf() in C++ code instead of using cin and cout. And I’ve even seen problems that result in a Time Limit…
-
6
votes1
answer100
viewsUnexecuted entry
I’m a beginner in development and I’m doing a job for college, but in my case of Register Creation line 147 (cadastro[1][codigo] = entrada.nextLine();) that would receive the customer name data is…
-
6
votes1
answer460
viewsHow do I use Scanner to capture keyboard inputs?
I would like to know how to use the Scanner in the java to simulate cin and cout of c++
-
6
votes1
answer4628
viewsWhat is the difference between Sanitize and filter in PHP?
Making a safety class for PHP I noticed the existence of two similar constants, like: FILTER_SANITIZE_NUMBER_INT and FILTER_VALIDATE_INT. The standard follows in validations of email, string and…
-
5
votes3
answers307
viewsIgnored line of code
The line marked with /*ISSO AQUI*/ is being ignored, ie the name for the second employee is not read, only the last name. import java.util.Scanner; public class EmployeeTest { public static void…
-
4
votes2
answers1292
viewsWhat’s best to use, scanf() or get_s()?
Taking the name 'Maria da silva' as an example: scanf() just go read Maria, get_s() will read it all, correct? I’m in doubt of the best use, my college professor says we should clean the buffer to…
-
3
votes1
answer201
viewsProblem with strlen()
Why is this code printing an extra number when I initialized the variable as 0? #include <stdio.h> #include <string.h> int main ( void ) { char texto[50]; int cont = 0; printf("\nInforme…
-
3
votes1
answer949
viewsHow to take line break in the "Cin" of the <iostream> library?
How can I take the line break when reading some variable with cin? #include <iostream> using namespace std; int main() { int dia, mes, ano; cout<< "Data: "; cin>>…
-
3
votes1
answer81
viewsDoes Matlab enable interactive (real-time) data export?
Good afternoon, I am using Matlab in order to receive real-time HTML data to generate graphs that are constantly updated, but I still haven’t found anywhere how I could export these graphs to other…
-
3
votes1
answer67
viewsWhat kind of data entry is this? scanf("%m[ ]
I found this in a C program: int k; char* nometreino; char* nometeste; FILE* arquitreino; FILE* arquiteste; scanf("%m[^ ] %m[^ ] %d", &nometreino, &nometeste, &k); arquitreino =…
-
2
votes0
answers21
viewsRestore data
I am creating an app that contains a form and when the user clicks on an address search field it is taken to another Activity and then this address is retrieved in a textView in the initial Activity…
-
2
votes1
answer50
viewsFind diff between different arrays
GOAL I have two arrays where it contains different formatted information, but the data is the same, for example on ARRAY1 the CLIENTE1-00 and the same as CLIENTE1 of ARRAY2, I just need to do a…
-
1
votes1
answer301
viewsInput, on the same line, of a string without spaces and another with spaces
My program asks that, at the entrance, on the same line, there be a string space-free name, the name of the applicant, and a string which can contain spaces desc, the description of the deposited…
-
1
votes1
answer91
viewsInt field as string
I’m working on a code for a college job, but I’m having problems, although the "home" is set to INT, netbeans continues to present: "incompatible types: String cannot be converted to int" below…
-
1
votes1
answer1673
viewsScanner.nextLine does not pick up information after Scanner.nextInt
I’m having trouble with this code, I’m starting in programming, this is just an activity for practice. I do not understand why when executing the code the field 'Campus' does not allow the entry of…
-
1
votes1
answer96
viewsReadline does not ask for data typing
static void Main(string[] args) { Console.WriteLine("ESCOLHA UMA OPÇÃO"); Console.WriteLine("-----------------"); Console.WriteLine("1-Encriptar"); Console.WriteLine("2-Decriptar");…
-
1
votes2
answers5200
viewsNosuchelementexception error when capturing data input with Scanner
I’m having problems with data inputs using Scanner with Joptionpane works well. Exception in thread "main" java.util.NoSuchElementException at java.util.Scanner.throwFor(Unknown Source) at…
-
1
votes1
answer250
viewsDictionary exercise
I can’t seem to solve this exercise. I need the letter indicating the type of service (E,R or F) to be indicated in the same line as the other information, however, according to the letter inserted,…
-
1
votes0
answers37
viewsScanner returning error
I’m writing the code below: public int findNet(String InputRede) { try { for (GetNetwork network : getRedes()) { if (network.getId().equals(InputRede)) { return getRedes().indexOf(network); } } }…
-
1
votes2
answers660
viewsA regular expression to detect acronyms of Brazilian highways
I’m trying to detect if a particular address corresponds to a Brazilian highway. For example, br-101 corresponds. My initial plan was to list the state acronyms (mg, sp, Rn ...) plus the br acronym,…
-
1
votes2
answers3082
viewsPython data entry with multiple lines
I would like to understand how to input several data (int, float, str...) per line but repeatedly (i.e., in several lines) so that I can save each given input. I understand that I will have to use a…
-
0
votes2
answers150
viewsScanner is not reading all the text it receives
I’m creating a program whose idea was to take a text with a few words and break them in ",". Only you are reading only up to a part of the text. Follow the code and text below: public static void…
-
0
votes1
answer135
viewsPressing keys in the terminal
Hello, in my Ubuntu 16.04, at the time of running a program in C (as well as in sublime), when I press a key, keeps repeating the same key until release. So far so good. But if I don’t release this…
-
0
votes1
answer26
viewsGetopt getting other options as argument
I am making a code that should receive two strings for the execution with the parameters -i and -o, both of which can be null or not,the problem is found when the value of -i is not informed, it…
-
0
votes0
answers7
viewsData-oriented development
Good evening friends, today I received the proposal to participate in a selection process and the vacancy in question is Data Oriented Development, and I was lost. Would someone like to tell me what…
-
0
votes1
answer46
viewsHow to write two unsigned char variables in c
I’m having trouble writing two variables of type unsigned char using scanf, only the second value is saved in variable, I imagine it is buffer with garbage tried to treat and even so did not…
-
0
votes1
answer657
viewsHow to make dynamic display in HTML+PHP?
I’m studying HTML and PHP, but there are things I’m not able to figure out how to do. After all, how do I get input data to process them? Like on the keyboard with those text fields <input…
-
0
votes2
answers77
viewsnextLine() problem inside the loop
The user must enter different name and password, while they are equal will stay in the loop ... Scanner teclado = new Scanner(System.in); String nome, senha; do{ System.out.println("Digite nome:");…
-
0
votes0
answers22
viewsSkip Textinput to kivy
I am developing an application that collects data from the user through Textinput widgets. I can do this task of "taking" user data and storing it. However, my software only accesses the text fields…
-
-1
votes1
answer39
viewsYou are running the direct commands with no time to type the other notes
You’re not letting me type the rest, just typing the first one goes to the last one. #include <iostream> #include<stdio.h> int main(void) { int n1,n2,pim,rn1,rn2,rpim,rfinal; rn1=n1*4;…
-
-1
votes1
answer51
viewsData input - Java
At the time of data entry, I realized that when I put the product name and enter, there is always a loose line, the next question does not come on time, only after another enter. However, when I…
-
-2
votes1
answer196
viewsHow to recognize the type of data entered - C
I am making a program where the user can register, search and remove customers. To enter it type "insert [client name]" and a code is generated automatically. I have a problem in the search…
-
-2
votes2
answers556
viewsReceive multiple strings in the same row in C
I have the following code that gets the keyboard input and prints on the screen what was typed. #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char…
-
-2
votes1
answer85
viewsException error in thread "main" java.lang.Numberformatexception: For input string:
I’m having trouble getting my program to return the IF in a correct way, when I put the FOR it counts the number of times it is in the variable, if I type an input less than 14 it instead of falling…