entrada-de-dados

What is the difference between sanitize and filter in PHP?

Doing a security class for PHP I noticed the existence of two similar constants, like: FILTER_SANITIZE_NUMBER_INT and FILTER ... ; } There are standard methods in PHP, such as is_int() and is_integer(), but it seems to be less reliable. (I'm not sure)

Int field as string

I'm working on a code for a college job, but I'm having problems, despite the" house " being set to INT, netbeans continues t ... break; } jogo.varTabu(); System.out.printf("O campeão foi o " + jogo.ganhador(jogadas)); } }

How to take line break in the library "Cin"?

How can I take the line break when reading some variable with cin? #include <iostream> using namespace std; int main( ... ;> mes;cout<<"/"; cin>> ano; system("pause"); return 0; } Compiled: I want it to look like this:

A regular expression to detect Brazilian Highway acronyms

I am trying to detect if a given address corresponds to a Brazilian Highway. For example, br-101 matches. My initial plan w ... phem have less than three numbers? Would anyone happen to have a list of the possible acronyms that may come before hyphen?

Problem with strlen()

Why is this code printing one more number being that I initialized the variable as 0? #include <stdio.h> #include < ... ts(texto,50,stdin); cont = strlen(texto); printf("\nO tamanho da string: %i\n",cont); return 0; } Output:

NoSuchElementException error when capturing data entry with Scanner

I'm having problems with data entries using the Scanner with JOptionPane works fine. Exception in thread "main" java.util.N ... (IllegalArgumentException e) { System.out.println(e.getMessage()); } entrada.close(); } }

Scanner.nextLine does not pick up information after Scanner.nextInt [duplicate]

this question already has answers here : ... PROVADO(A)"); } else { System.out.println("Status: REPROVADO(A)"); } } }

Holding keys on terminal

Hello, in my Ubuntu 16.04, at the time of execution of a program in C(as well as in sublime), when I press a key, it is repea ... keeps repeating and it's like I've released the first key. Is there how to check if the two keys are pressed simultaneously?

How to read from stdin in C?

How should I read characters, digits and strings of the stdin in C? getchar; fgetc; fgets; getc; scanf; I'm here ... it. I have tried all these ways and there is always any problem. Every time I research on the subject I become more in doubt.

Which one is better to use, scanf or get s? in c

With the name 'Maria da silva' as an example: scanf() you're just going to read Mary, get_s() you're going to read all of h ... we should clear the buffer for the scanf() Read, After all in C What better option to read strings with space intervals?

Multi-row python data entry

I would like to understand how to input various data (int, float, str...) per line but repeatedly (i.e. in multiple lines) so ... rows as I want and with the various types of data I want. However, as a beginner, I still haven't gotten used to the syntax.