Questions tagged as 'sintaxe'

1
answer

How to auto increment in MySQL without declaring the columns in INSERT?

I noticed that when I have a column with auto_increment , I have to declare the columns in INSERT . For example, I created this test table: create table teste( id int auto_increment, nome varchar(100) not null, valor decimal(5,2...
asked by 30.07.2018 / 01:52
1
answer

Why are boolean values converted to string in camel case in C #?

Today I came across a peculiarity of C # which I had never stopped to pay attention to: When converting a value bool to string , the result is a text in camel case : string verdadeiro = true.ToString(); //Converte para True st...
asked by 05.09.2017 / 20:16
1
answer

typedef struct syntax

What is the difference between writing typedef struct "nome1"{}"NOME2"; , as implemented in a linked list; and typedef struct{}"NOME1"; , as implemented in the sequential list I've seen. I've also come across struct "nome1"{}ty...
asked by 19.08.2017 / 00:04
1
answer

What does this mean "people [last, first]" in Python?

This is the first time I see this people[last, first] syntax with the comma separating the indexes in Python. I do not even know what data structure is people . The question is    What does this statement do: for last, firs...
asked by 22.11.2014 / 22:59
0
answers

wxMaxima. Defining a Three-Variable Function

I'm trying to do some symbolic / algebraic calculations in wxMaxima. But I'm having syntax problems.    Question. Let 'n' and 'm' be previously stipulated. What is the syntax / 'command line', as well as a suitable recursive procedure, to...
asked by 09.08.2016 / 03:23
2
answers

Best way to implement DataAnnotations

Is there any difference in the following implementations? [Required, StringLength(150, ErrorMessage = "Insira no máximo 150 caracteres")] [Index(IsUnique =true)] public int MyProperty { get; set; } [Required] [StringLength(150, ErrorMess...
asked by 22.12.2016 / 02:27
2
answers

Custom typing

   According to DOC Type Manipulation , the allowed conversions are: (int), (integer) - molde para inteiro (bool), (boolean) - converte para booleano (float), (double), (real) - converte para número de ponto flutuante (string...
asked by 14.11.2016 / 16:17
1
answer

Difference between else if and elsif

I know that these two terms do not exist in the same language (correct me if I'm wrong), but in some languages (C #, in the example below), we have the following code: if(condicao){ ... } else if (condicao) { ... } In others (Perl, in...
asked by 24.03.2017 / 13:04
1
answer

What is & quot in Java?

I would like to know what & quot means in java. Example: used to form the name of an object: ClasseObjeto celula+""+col+"_"+lin = new ClasseObjeto();     
asked by 23.10.2017 / 22:34
1
answer

ERROR syntax error, unexpected T_VARIABLE

I'm having a problem and I'm a beginner in PHP, I do not know if it's easy to fix this error.    (Parse error: syntax error, unexpected T_VARIABLE in   /home/u611580299/public_html/wp-content/themes/simplicityantigo/includes/google-fonts.php...
asked by 18.12.2014 / 01:45