Posts by Ângelo • 79 points
10 posts
-
2
votes1
answer60
viewsQ: Error debugging by null on connection
I want to document a unit test but I’m getting error: System.Exception: 'Error closing database connection: Undefined object reference for an instance of an object.' My test case was so coded: using…
-
-1
votes1
answer456
viewsQ: Traverse attributes of an object that is in a list in C#
Good night, I need help please. I am writing a program that reads a file. For each line of the file an object is created. Each object is stored in a list. My intention is, when loading the initial…
-
0
votes2
answers118
viewsA: Reading Files in C#
This error happened because it was assigning a value to the field itself. That is, the .Text. The correct is: textNumeroRegistro.Text = pessoa1.profissao;…
-
0
votes2
answers118
viewsQ: Reading Files in C#
good night, a help for kindness. I have the following file: 34543;PRIMEIRA PESSOA;230778;CASADO;BANCARIO 23543;SEGUNDA PESSOA;12051985;CASADO;ADMINISTRADOR DE EMPRESAS 36116;TERCEIRA…
-
0
votes2
answers57
viewsA: Structs not fed
Solved. The problem was the separation of the fields, where comma was used, the semicolon being correct. This "%[^;],%[^;],%[^;],%[^;]\n" Has been corrected for this: "%[^;];%[^;];%[^;];%[^;]\n"…
-
-1
votes2
answers57
viewsA: Structs not fed
People, I almost solved. Instead of doing this while (fgets(linha_veiculos, TAM_BUFFER, arq_veiculos)) { fscanf(arq_veiculos, ... did that: while (fgets(linha_veiculos, TAM_BUFFER, arq_veiculos)) {…
-
-1
votes2
answers57
viewsQ: Structs not fed
Dear Programmers(s) in C, good night, I ask for help for the following case: I want to feed an array of structs to each interaction in a line of a file, the problem is that, although I can read the…
-
0
votes1
answer952
viewsQ: Validate user typed only number - C
I have a string declared as follows: char cpf[12]; I want to validate that the user typed only numbers when he typed ENTER. I captured the value typed by the user like this: gets(cpf); Soon after, I…
-
4
votes1
answer298
viewsQ: Reading file in C
I use the following structure to read each line of a file: fclose(arq); // fecha o arquivo para em seguida abri-lo em modo leitura apenas arq = fopen(url, "r"); if(arq == NULL) { printf("Erro, nao…
-
2
votes1
answer328
viewsQ: Problems Reading C File - Comma Delimiter
aid of kindness. I have the following file line structure: 99933311133,UM NOME QUALQUER,8485885855,UM ENDERECO QUALQUER,84 9992212,S,S The default is:…