Posts by Eduardo Balestrin • 449 points
21 posts
-
1
votes0
answers84
viewsQ: Training Neural Network MLP
Hello, I am developing a neural network for recognition of 5 geometric figures: circle, star, pentagon, square and triangle. The network is of type MLP with 1 hidden layer(10 neurons), the entrance…
-
0
votes1
answer132
viewsQ: Return search HQL JAVA
I have the following function that searches in BD a user that satisfies the login and password passed by parameter: public Usuario getUsuarioLogin(String pLogin, String pSenha) { String hql = "…
-
2
votes1
answer257
viewsQ: Place object array in combobox
I have the following method for adding objects to a JComboBox: public void PopulaCategoria() throws SQLException{ for(Categoria categoria : caDAO.getCategorias()){ comboCategoria.addItem(categoria);…
-
1
votes1
answer783
viewsQ: Exit a c program via CMD
In the following code, when I press 9 the program must close: case 9: exit(0); After pressing 9 the screen below in cmd is displayed, but after pressing 9 is displayed the message: Press to close…
-
1
votes1
answer325
viewsQ: Address type Struct for INT
I have the following Struct: struct nodo{ int elo_a; char nick[26]; char cidade[16]; int idade; int elo_p;}; I have both struct assignments: struct nodo *variavel; struct nodo *offline; Ok, I…
-
1
votes1
answer2487
viewsA: Syntax error: Missing semicolon
I found the solution, just one ; after END IF - END IF;
-
1
votes1
answer2487
viewsQ: Syntax error: Missing semicolon
Syntax error message: Missing semicolon is appearing in my END IF, more specifically only the IF is underlined with red: DELIMITER $ CREATE PROCEDURE cadastraEleitor(IN nome VARCHAR(100),dataNasc…
-
0
votes1
answer805
viewsA: Copy string to struct
I solved the problem by changing scanf("%s",&nome); for gets(nome);
-
-1
votes1
answer805
viewsQ: Copy string to struct
While trying to copy String nome into String in Struct novo->nome the program stops working if I comment on the function strcpy(novo->nome,nome); the code is executed normally. //Função de…
-
0
votes1
answer111
viewsQ: crt*. or C files
What are the archives for crt1.o,crt0.o,crti.o e crtn.o in a program C. I know the extension .o has to do with object file, but what the cited files serve?
-
5
votes2
answers724
viewsQ: Delete a space allocated by malloc
First I allotted 6 spaces of 52 bytes belonging to a struct in memory: lista = malloc(6 * sizeof(registro)); In practice to access them via pointer is done: lista[0], lista[1], lista[2]... And how I…
-
0
votes1
answer232
viewsQ: fread and structure memory allocation
I have the following structure: typedef struct registro {//52 bytes char codigo[4]; char descricao[31]; char unidade[3]; int quantidade; float valor; char status; }registro; It must store the values…
-
7
votes3
answers23806
viewsQ: Size of a String
A char in the C language occupies 1 byte in memory. Ex: char ch;//a variável ch esta ocupando 1 byte na memória And a vector of char best known for string, its size in bytes will be counted…
-
2
votes3
answers596
viewsQ: How to arrange the date order?
In the database: Showing on page (in php): I would like it to appear as follows: 03-11-2015…
-
3
votes1
answer484
viewsQ: How to compare array to string?
The array $buscaMov[9], contains the word "Internal", but the if only returns me false, in case, will always stop at the else. You should register in the shopping table, but only register in sales.…
phpasked Eduardo Balestrin 449 -
0
votes1
answer24
viewsQ: Command not redirecting
I am placing a command inside a script so that when the User presses the "Submit" button, it is recorded given in the database and soon after this happens a page redirection: <script…
javascriptasked Eduardo Balestrin 449 -
2
votes2
answers146
viewsQ: Select only one item
Here’s the code: <?php while($ver=mysql_fetch_row($busca)){ ?> <tr> <td><input type="radio" value="<?php echo "$var[0]"; ?>"></td><td><?php echo…
-
0
votes2
answers9874
viewsQ: PHP variable in an HTML value
How do I put the php variable in the next value: <?php while($ver=mysql_fetch_row($busca)){ $id1 = $ver[0]; ?> <tr> <td><input type="radio" value="$id1"></td>…
-
0
votes0
answers46
viewsQ: List information from a database
I have a prototyping of a screen that should list data from a table: I have to select the entire row of information, so I can’t put each data in a separate column, which means I want to put the…
-
2
votes1
answer138
viewsQ: Warning message
I am using common javascript Alert in a field check function: if(document.cadFinan.dataParcel.value == ""){ alert("O Campo data é obrigatório!"); return false; } But I would like something nicer,…
javascriptasked Eduardo Balestrin 449 -
2
votes1
answer155
viewsQ: Variable return in javascript = Undefined
Here’s the code: <script type="text/javascript"> function Enviar(){ var tempo = document.getElementById('tempo'); var veloc = document.getElementById('veloc'); var distancia = parseInt(tempo)…
javascriptasked Eduardo Balestrin 449