Questions tagged as 'sintaxe'

2
answers

Form error online

In the browser the following error has occurred, I have tried everything if you can help    Parse error: syntax error, unexpected $ end, expecting T_VARIABLE or   T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in <?php echo "NOVO MOTORISTA"...
asked by 25.10.2017 / 03:35
2
answers

Include or Require on Nodejs to separate codes

Hello! I would like to know if in nodejs it is possible to separate some codes in different files as in this example below, and how to do this: I currently only have one file this way: File 111.js var app = require('../app'); var d...
asked by 20.07.2017 / 23:59
1
answer

VBA: Declare Variables Online

To declare variables in VBA , I always used the following method: all variables of the same type I would put on a same line and declare their type only at the end, as in the example below: Dim RngSource, RngDestin, RngCalc As Range Dim i...
asked by 11.04.2017 / 16:28
1
answer

Syntax query not Angular

I'm starting in Angular and in some cases I saw that parameters are passed in the bracket of the module and in other cases in the function, and in the function I have already seen 2 forms of declaration. Example Module: angular.module('start...
asked by 21.07.2016 / 16:46
1
answer

Array initialization with empty list "{}" in C ++

From what I've seen, it's possible to initialize a vector with the empty list, in C ++, but not in C, so that all vector elements are 0: int meuVetor[10] = {}; // Todos os elementos 0, em C++ What I learned in this answer from SOEn. Is...
asked by 24.03.2016 / 22:40
1
answer

Use of pointers

I need to use pointers, but I do not understand how to express the syntax, it is part of the purpose of the task (change the value of the parameters passed by reference to the functions, such that these variables are printed in main ()). > #in...
asked by 16.11.2015 / 02:50
1
answer

Indent error

I'm trying to create a TextInput in Kivy and set its dimensions, except that whenever it puts its error dimensions:    invalid indentation, must be a multiple of 4 spaces. I still do not understand why you are giving this error....
asked by 20.12.2018 / 19:06
1
answer

Signing a generic function in Kotlin

I was seeing the generics part and would like to know why fun <T> addToList(vararg arg : T): ArrayList<T> { and fun addToList(vararg arg : T): ArrayList<T> {     
asked by 17.12.2018 / 22:19
1
answer

code in C, url = inet_ntoa (* (struct in_addr *) ip-h_addr); I do not understand what is happening.

I was studying sockets for this material link and I came across a code that I do not understand what is going on. The code part is this: struct hostent *ip; ... // função da lib netdb.h para converter ai nosso host para IP ip = gethostbyna...
asked by 20.07.2018 / 12:31
1
answer

Javascript - Quiz

I'm studying JavaScript, beginner level. So I am trying to mount a quiz according to a tutorial I found but encounter the following error when executing: ["SyntaxError: expected expression, got '<'", "filename": "https://stacksnippets....
asked by 14.03.2018 / 18:05