Questions tagged as 'c'

0
answers

problems with PIC + SD + Excel

I'm having some problems here, what's happening is the following, I have a project that I need to simulate a school call on the PIC and make it save in Excel, the project requires that I can change the students' entrance and exit times , and als...
asked by 25.11.2018 / 05:30
0
answers

Random function exclusive and without repetition - Language C

Well, I'm doing a C language program, and I need to do some raffles, but they can not be repeated, the program does the input control of a lecture, and will have a draw, in that draw can not be drawn the same numbers, I'm doing lottery by row an...
asked by 25.11.2018 / 19:23
1
answer

Threaded Dynamic List Creation

I am studying data structure through the site: Uncomplicated C Language - Data Structure and in class 12 (3:52 min) the teacher develops the function that creates the list: // Implementação das funções lista* criarLista(){ lista* lde = (...
asked by 19.11.2018 / 17:11
1
answer

"strcpy" behaving strangely depending on how it is placed in the "if"

What's going on here? #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> void escolha_simb(char *jog1, char *jog2) //** escolhe quem vai ser x ou o { char esc; while (1) {...
asked by 26.11.2018 / 21:35
1
answer

Problems accessing struct members [closed]

I have to do some functions with these structs, but since Agenda has a vector of structs Contact and in each contact has another struct Data, how do I access the fields? Do I have to work each struct separately? Thanks in advance, follow the cod...
asked by 26.11.2018 / 18:47
0
answers

Read a file from a graph and represent it in adjacency matrix format

I need to read a file that contains information from a directed graph and build an adjacency matrix of it. The array must contain 1 in the position that there is a loop and 0 in the one that does not exist. The file is in the DIMACS standards an...
asked by 17.11.2018 / 20:39
1
answer

Problem with storing and printing strings in C

I'm picking up words from a text file, and at the time of printing they're all right except when I store them in a vector. If I store them in a vector, at the time of printing, some random characters come out before the words. void leArquivo(F...
asked by 17.11.2018 / 18:13
0
answers

Problem reading blank line in a file in C

I'm having the problem that when the last line of my file is blank the program can not read and when it goes off normally. Function that stores the data in the file void exportCategoria_txt(Strc_Categoria Cat) { FILE * file = fopen("a...
asked by 20.11.2018 / 23:19
1
answer

Assign uint8_t int

I'm getting data and in my project saving in an array of uint8_t and then processing in int variable, okay I could leave everything int but this does not apply to the project. int main() { uint8_t data=0x13; int range=(int) data;...
asked by 13.11.2018 / 23:23
1
answer

How to sort array structures based on song rank?

The rank of the code is going in increasing order but the others do not change the positions along with the rank, how do I position the songs and styles to go along with the code? #include <stdio.h> #include <locale.h> struct musi...
asked by 08.11.2017 / 23:56