Posts by IanMoone • 328 points
21 posts
-
-2
votes2
answers83
viewsQ: List to frontend values of multiple tables
Good afternoon, I am a beginner in Act and Noode.js and I have a problem. I have a table on a web page where you’ll receive the data from a trip. The columns (Id localities, name, date, time) are…
-
0
votes2
answers311
viewsQ: How to subtract 2 hours string
I’m doing a Java project in Android Studio where I have a database connected to a BD on a server. In one of the tables, I have 2 hours, hora_inicio and hora_fim that are extracted to string. I…
-
1
votes2
answers76
viewsQ: Display values in one table but not in the other
Good morning. I’m new to Database and SQL, and I have a question in a college exercise. The objective of the exercise is: I was able to do the part of presenting the number, description of the…
-
0
votes1
answer62
viewsQ: How to reduce page size without formatting
Good morning, I’m a beginner in html and css and I was doing a page for college. The page is done and works well in full screen, but if I reduce the size of the page in the browser, it is no longer…
-
0
votes1
answer214
viewsA: C Language Database
Your scanf were all wrong. #include <stdio.h> #include <stdlib.h> typedef struct{ int idade; char nome[50]; char sexo[2]; char estado_civil[50]; int qtd_amigos; int qtd_fotos; } cliente;…
-
0
votes1
answer47
viewsA: Unconfigured output on Atom
You can include the "locale" library or the "setmode" function, here are two links that help and explain:…
-
1
votes2
answers87
viewsA: String scanf() time problem
Well, there are some errors in your code. Assign 1 or 2 to the sex variable, so it has to be int and not char. Char is for characters, unless you use a function that converts from char to int. Then…
-
0
votes1
answer47
viewsA: It’s not compiling! And I can’t find an answer!
Well, I think there’s a lot wrong with that code. The structure of for, is wrong and should be if, and when there is if, that structure is for. I do not know what you intend to do, but it is obvious…
-
0
votes2
answers34
viewsA: Program not to loop, even by typing the interrupt key!
Instead of being && no while, should be || #include <stdio.h> #include <string.h> typedef struct { int codigo; char departamento; char nome[30]; float salario; }DadosFuncionario;…
-
0
votes2
answers174
viewsA: Programming exercise C
Use strcmp to compare marital status, and add +1 to the corresponding marital status. So you can do the count you want #include<stdio.h> #include<string.h> struct basededasos{ Int…
-
1
votes1
answer97
viewsA: I’m having trouble compiling a simple C program
No y, do not need the "&" in the printf, and put "%d" since it is of type int # include <stdio.h> int main(){ int y = 5; int *yPtr; printf("Address of y veriable: %d \n",y);…
-
1
votes3
answers51
viewsA: Average age in a family - Core dump error
Failed to initialize the average variable and put & in the scanf #include <stdio.h> int main() { int qtd, idade, i; float soma=0 , media=0; printf("Informe quantos membros há na família:…
-
2
votes2
answers74
viewsA: Scanf does not close the read
instead of %s use %c in the matrix scanf. #include <stdio.h> int main(){ int l,c,i,j; scanf("%d %d",&l,&c); char matriz[l][c],matriz_aux[l][c]; for(i = 0; i < l; i++){ for(j = 0; j…
-
1
votes1
answer334
viewsA: Path in levels in the binary tree
You are initializing the variable tam with no value, you have to assign a value to it before calling it in the while cycle. //Estrutura da árvore typedef struct no{ int chave; struct no* esq; struct…
-
5
votes2
answers139
views -
1
votes1
answer127
viewsQ: Error Read access violation in visual studio function
Good morning, I have a project to do, it is almost done, but now I have created two functions that give me reading access violation error, and I am not able to solve the problem, someone can help?…
-
0
votes1
answer230
viewsQ: Conversion of C-pointers to Assembly
Good afternoon, I will have Assembly test and I have a question that is about pointers in Assembly. I’m trying to do an exercise, but I can’t fix it. "Consider the statements in C: int x=100, y=200;…
-
4
votes1
answer185
viewsQ: Difference between MOV and MOV ptr
Maybe it’s not the ideal place to ask this, but I’m having a test and I don’t understand the difference between MOV and MOV ptr. for example, if we have in c language "unsigned char x,y", in…
-
0
votes1
answer131
viewsA: C Language - Read File to Save to Lists
fscanf(f, "%d", &Imag->NLINHAS); Usually I use "fscanf" instead of "fread" to read the contents of the file. fscanf(f,"%s" ,&li->titulo); // nome da imagem…
-
1
votes1
answer413
viewsQ: How to calculate blobs in C?
How can I calculate a pixel zone in C? The pixels, R G B are given from a file. The user has to insert an R, G and B and a deviation as it is in the function to calculate zones. From that, you’re…
-
0
votes1
answer37
viewsQ: Pass RGB pixels from a file to C Structure
Good afternoon, I’m doing a project on the Data Structure chair and I have this file, with multiple RGB pixels. I would like to read the file and pass the values to a structure, where each pixel had…