Apparently I'm having problems with strings :
public partial class Form1 : Form
{
private int _adicionar;
private int _retirar;
public Form1()
{
InitializeComponent();
}
private void _Random_Click(object send...
I came across the following questions:
What is the difference between the expressions strcpy (s, t) e s = t ?
What is the difference between the expressions if (strcmp (s, t) < 0) e if (s < t) ?
I tried to compile...
I need to make an algorithm that gets 3 different numbers, and if it receives repeated numbers, it informs an error message.
My program is all working properly, but when I put the line to warn of the error I try to use Or and it does n...
I would like you to explain this function to me, I do not understand this syntax:
double sum_arithmetic(double x0, double r, int n)
{
return n == 0 ? 0 : x0 + sum_arithmetic(x0 + r, r, n-1);
}
I need to convert the java code below to C #:
public static boolean verificaPermissao(BigInteger perm1, BigInteger perm) {
if (perm1 == null || perm == null || (perm1.equals(BigInteger.ZERO) || (perm.equals(BigInteger.ZERO))))
ret...
SELECT * FROM 'client' WHERE avatar <=> NULL
This returned the only two items you have in the database, both for <=> and = . Another test I did was with <=> , which returns all items that the =...
What is the purpose of the => operator in the use of List<T> lists, I'm starting to use generic lists and I came across this operator, it is only used in this method LISTA.ForEach(i => Console.WriteLine(i)); ?
Below...
I would like to know the difference between the two operators that would be:
(1): ==
(2): ===
If possible, I would also like to understand the use of their opposite operators in this case:
(3): !=
(4)...
How to use the or operator in a control structure switch ?
Example
switch ($options) {
case 1 || case 2:
echo "Valor de opção 1 e 2";
break;
case 3:
echo "Valor de opção 3";
break;
}
...