Questions tagged as 'c'

1
answer

How to pass a pointer inside a struct per function parameter?

The situation is as follows: I have a struct with a field that is a pointer pointer, however I want to pass as a parameter in a function only the pointer pointed to, that is, the most internal pointer of that field in the struct: In code i...
asked by 25.10.2015 / 12:53
0
answers

Variable error in C

Good morning, I'm developing a code to perform the solution of a linear system in C using iterative methods (Gauss-Jacobi, Gauss-Seidel), the resolution method is correct, but at the end of code execution the value shown in the console is wro...
asked by 05.10.2015 / 14:13
1
answer

Error not filling in program fields

I created a program in VisualStudio that uses 4 TextBox, and when I do not put anything in the 4 TextBox and then I click the button that adds what is inside the 4 TextBox program of the error, how can I replace this error with a message of type...
asked by 11.07.2015 / 06:30
0
answers

Color in Pascal / C

I have the following region staining code using Pascal queue: program coloracao; uses crt, filas; const dim = 5; type imagem = array [0...dim+1, 0...dim+1] of integer; const I: imagem = ((-1, -1, -1, -1, -1, -1, -1), (-1, 2...
asked by 04.06.2015 / 15:39
1
answer

Editing in Linked Lists

I have a protection for the University for a programming chair. One of the goals is the evaluation of inserted projects (the insertion part is already working), my problem is that when I evaluate , I do not know how but it deletes the list >....
asked by 24.05.2015 / 02:11
2
answers

How to show all elements of an array declared in a struct in C?

In this code: #include <stdio.h> #include <stdlib.h> struct cadastro { char nome[50]; int idade; char rua[50]; int numero; }; int main() { struct cadastro c[4]; //Array[4] de estruturas for(int i=0; i<4; i++) {...
asked by 18.05.2015 / 05:27
1
answer

How do I get into several different files

Good night, I have a doubt, I have a program that will receive several files of type nome.txt , and I must count how many characters there are inside the file, I tried to make a prototype but the doubt is in how I will add this using% how...
asked by 07.06.2015 / 04:25
1
answer

Classical "Execution of C: \. . . failed "in codeblocks

I'm having this problem in codeblocks where when I try to run any program on it I get C: \ Users \ C: \ Users \ C: \ Program Files \ C: \ Program Files \ C: \ Program Files \ \ Desktop \ Programming \ C 'failed. I have already consulted se...
asked by 20.05.2015 / 21:48
1
answer

How to get the value of a variable from memory? [duplicate]

I run the first CC period and would like to know how I could get variable values from a game, for example, in real time. For example, when a Boolean variable changes the value to TRUE, I wanted to have access to that state of the variable. Can...
asked by 03.06.2015 / 03:49
1
answer

Error in copying structured type vector

Error copying elements from a structured type vector to another vector of the same type : At the end of the code below, I use a function to "start" all the elements of tabela2 (vector that will receive the table contents), but the p...
asked by 29.10.2014 / 16:15