Posts by Leonardo V. De Gasperin • 713 points
32 posts
-
0
votes1
answer292
viewsQ: Problem with vector function in C++
Hello, I’m trying to make a matrix calculator and my idea would be that the user entered with the number of rows, columns and soon after with the matrix elements, the problem is that when I write…
-
0
votes0
answers503
viewsQ: Problem with 2D character Sprite display in Unreal Engine 4
I was following a tutorial from the site of Unreal Engine 4 and in a certain video has an explanation of how to give movement to some character (WASD, jump, run and etc). In another video shows how…
-
3
votes1
answer49
viewsQ: Logical error no for
Hi guys I’m trying to make a controlled loop for my program, so far it’s running normal only in the first round, in the second repeat it jumps the first pass of the go and starts in the second…
-
1
votes1
answer325
viewsQ: Problem with While condition in C++
Hello, I’m studying from Bjarne’s book "PROGRAMMING Principles and Pratice Using C++". I’m trying to make Drill number one chapter four. The exercise tells you to make a program that consists of a…
-
1
votes1
answer430
viewsQ: Commando gcc on Android Terminal Emulator
I am looking for an IDE for my mobile phone and found the Android Terminal Emulator. However, some Commands are different. I would like to know the command to compile in the terminal. For example:…
-
0
votes1
answer323
viewsQ: Failure error[INSTALL_FAILED_INVALID_URI] in GCC
I’ve done everything, installed the GCC C4droid by Google Store, already installed the Android Terminal Emulator and also root ei and free access to $su. However when I try to install GCC using the…
-
4
votes1
answer506
viewsQ: Variable without initializing
I did a basic function of squaring (exercise of a book), and I use a variable named aux and the use to calculate the power value squared, but the compiler claims that aux is not initialized, I would…
-
0
votes1
answer1280
viewsQ: problems with 'Multiple Definition of...' in files. The
Hello, I am doing a program to study lists and I am having a problem with the definitions of functions, I tried to solve with my data structures teacher but I could not understand right, if anyone…
casked Leonardo V. De Gasperin 713 -
2
votes3
answers678
viewsQ: data structure problem
Hello, I am doing a simple program of data structure it, have to organize some flights as for example register airports and flights of these airports, each flight line can only have one plane going…
casked Leonardo V. De Gasperin 713 -
2
votes2
answers1768
viewsQ: Algorithm in C - Primes
The program has to do a check of prime numbers, where the user type a number and the program finds the largest prime number before it. the problem with my program is that it doesn’t check until the…
-
3
votes1
answer118
viewsQ: Sorting algorithm does not work
Something is missing in the program. It checks the order with a single number or a single time. #include <stdio.h> #include <stdlib.h> /*4)escrever 10 números e ordenar em forma…
-
4
votes3
answers269
viewsQ: Solve logic error
I’m doing some college exercises, but I’m having a logic error in this exercise: #include <stdio.h> #include <stdlib.h> /*usuario entra com um numero, o programa devera imprimir o maior…
casked Leonardo V. De Gasperin 713 -
0
votes0
answers38
viewsQ: Sudoku demonstration in C
I’m making a Sudoku that the computer plays, I already have all the logic programmed, but I can’t print the answer in the file and on the screen, if someone can take a look and tested in my code I…
casked Leonardo V. De Gasperin 713 -
-2
votes2
answers299
viewsQ: Sudoku does not print answers on screen
This code has no error, but the program does not solve the game (does not print the answers on the screen): #include<stdio.h> #include<stdlib.h> #include <time.h> #define N 9…
casked Leonardo V. De Gasperin 713 -
3
votes1
answer267
viewsQ: sudoku problem with rows/columns repeated
Well I am doing a college job which is to do a sudoku in which the PC plays, first I am creating the rules of the game which is no number can be repeated in the row nor in the row where it is... As…
-
1
votes1
answer115
viewsQ: C portability on Linux
I’m starting to use the Compile and there they use Linux. I’m having some problems such as printing a text file. Check my program, it works on windows: #include<stdio.h> /* escreva um programa…
-
0
votes2
answers75
viewsQ: Problems in passing arguments by parameter
I’m having trouble passing arguments through parameters. The error occurs in the row 23 column 5 and it’s like this: Too few Arguments to Function 'imc' #include<stdio.h>…
casked Leonardo V. De Gasperin 713 -
7
votes4
answers9003
viewsQ: Invert a 3-digit number in C
I need to make a program that the user type a three digit number and the program reverses that number for example 123 -> 321, I’d like to know the logic to do that, because I can’t think of…
-
0
votes1
answer4146
viewsQ: Stock and sales control
Hello, this progrgrama is a stock control, what he asks this in the first printf of the program, a stock and sale controller only with struct. Cases 3 and 4 are in trouble, because I can’t get…
-
1
votes1
answer1184
viewsQ: matrix multiplication with minimum maximum of each line
hello I made a program in order to multiply each element of each row of an array by its highest value element, but my program multiplies each one by itself #include <stdio.h> #include…
casked Leonardo V. De Gasperin 713 -
0
votes1
answer457
viewsQ: Matrix multiplication in C
I have a little problem with this show, i need in a matrix[4][4] to find the minimum maximum of each line and multiply by each number of the line, in my program it has a syntax error, because I keep…
casked Leonardo V. De Gasperin 713 -
-1
votes1
answer123
viewsQ: Can be improved
Good to have how to improve? I believe so. But improve what? the code make it lighter, improve performance these things. I would like tips and as I am still studying. I will post below 3 vector…
casked Leonardo V. De Gasperin 713 -
3
votes2
answers879
viewsQ: major/minor in vectors
I made some modifications to my code, it is in modifications at the end of the post I will modify it when I find it necessary. hello, I am doing a college exercise, it is very simple, however, I am…
casked Leonardo V. De Gasperin 713 -
0
votes2
answers3362
viewsQ: doubts intercalation of vectors in C
hello, I have a problem here with vectors I would like to know what is going wrong and I am having difficulties, if anyone can help me on this. #include <stdio.h> #include <stdlib.h> int…
casked Leonardo V. De Gasperin 713 -
1
votes1
answer4727
viewsQ: scanf/gets equivalent for java
good people I’m liking programming in java and my doubt is the following, in C language I learned that for the user to type something is used scanf/gets function and in java which would be?? I…
javaasked Leonardo V. De Gasperin 713 -
1
votes2
answers114
viewsQ: cho-han bakuchi in basic C
I am having a doubt in the program I made to represent the game cho-han bakuchi, this game has as a rule to roll two dice of 6 sides in a cup before to show the dice if it makes the bet in which the…
-
3
votes1
answer277
viewsQ: cho-han bakuchi
I’m trying to make C the game cho-han bakuchi. It is quite simple, the Japanese game consists of throwing two 6-sided dice into a cup, before the dice are shown the player makes the bet saying cho…
casked Leonardo V. De Gasperin 713 -
1
votes2
answers344
viewsQ: link factoring
I am stubbing the book 6th edition of C as programming of the Deitel brothers and I am doubtful in an exercise, the exercise is the 4.14 of chapter 4 which is about factorization, it asks a program…
casked Leonardo V. De Gasperin 713 -
2
votes2
answers159
viewsQ: How to control the flow when an invalid value is entered?
In case I want a condition to repeat several times and several times I have to use the command return for any specific line? I will put the program to explain better: #include <stdio.h>…
casked Leonardo V. De Gasperin 713 -
0
votes1
answer330
viewsQ: Problems with programming logic
basic C study and I’m having problems with logic, I’m doing some exercises that require calculations like factoring decomposition and even problems like "A is twice the age of B when A was the age…
casked Leonardo V. De Gasperin 713 -
3
votes4
answers9378
viewsQ: Algorithm Factorization in C
I need to create a program in C, which factors in any number the user enters. I wrote this code, but it doesn’t work completely because it only calculates once. I don’t want an answer ready, I want…
-
8
votes3
answers2685
viewsQ: Algorithm C language - Multiplication
Translate to the language C: take a number on the keyboard and repeat the operation of multiplying it by three (printing the new value) until it is greater than 100. Ex.: if the user type 5, we…