Questions tagged as 'sintaxe'

1
answer

Display DB data in list form

I'm developing a website to make animal donations / adoptions online, but I'm extremely lazy on the subject and my knowledge in PHP is small. For the user to donate an animal (add an ad on the site) he will have to fill out a form containing Ad...
asked by 12.12.2017 / 01:39
1
answer

I get exited with non-zero status in this code pq?

#include<stdio.h> int main(){ int i,jog,rod,placar[500],ponto=0,p,maxPonto=0,vencedor=0,rodCopia; scanf("%d %d",&jog,&rod); rodCopia = rod; for(i=1;i<=jog;i++){ scanf("%d",&p); placar[i]+=p;...
asked by 23.11.2017 / 01:06
1
answer

Problems with mysql

So, guys, I did a shopping cart in php using wampserver. I created the DB in mysql and created two BD ones with the name "mxmaster" and another with the name "shop". I made the connections all right in php, creating cart, products, home, through...
asked by 22.11.2017 / 01:10
1
answer

PHP - Parse error: syntax error, unexpected 'endif' (T_ENDIF)

I'm having this error in the code in the file functions.php line 2883, below: ?> <!DOCTYPE html> <!-- Ticket #11289, IE bug fix: always pad the error page with enough characters such that it is greater than 512 bytes, even after gz...
asked by 25.10.2017 / 22:20
1
answer

Error "TS1005: ';' expected "when compiling class with TypeScript

I am studying TypeScript classes through official documentation: link . I used exactly the same sample code from the documentation: class Greeter { greeting: string; constructor(message: string) { this.greeting = message;...
asked by 11.10.2017 / 13:55
0
answers

Syntax error in Informix database query

I made a prototype of a informix database in Access to optimize the construction of my queries. I use with MySQL and through some syntax adjustments I get a good one. But in%% of% I can not. I want to believe it's a little detail b...
asked by 06.09.2017 / 09:52
1
answer

Meaning of this syntax

I need to continue a job that is partially ready. However I did not find on the internet files that described or taught this in an understandable way. What is the meaning of this syntax?  Ide: NetBeans and C ++ language void Grafo::buscarElosE...
asked by 29.04.2017 / 03:31
0
answers

Syntax error in GLPK

set linhas; set colunas; param c{j in colunas}; param A{i in linhas,j in colunas}; param b{i in linhas}; var x{j in colunas}>=0; minimize FO: sum{j in colunas} c[j]*x[j]; s.t. R{i in linhas}:sum{j in colunas} A[i,j] = b[i]; end;    File...
asked by 23.01.2016 / 21:10
2
answers

Problems creating class and method

I have the following code: public class String verifyWord(String wordChosen, Scanner reader){ //linha 1 boolean answeredCorrectly = false; int tries = 1; String wordChosen = random.nextInt(); String answer = wordChosen; wh...
asked by 26.09.2017 / 16:48
5
answers

Store IF result in a variable for later use

This code is in error when I call the variable $os : $os = (if($status_os_cliente == "A"){ echo "SIM"; } else{ echo "NÃO"; });     
asked by 13.11.2017 / 14:06