Questions tagged as 'c'

0
answers

How can I modify data a record with pointers in C? [closed]

In my program I have a struct students record where I input data from 3 students, ( name, age, phone ), into the program main ( main ) asks what you want to do, when selecting the option "modify", I need to modify some value entered, but in...
asked by 09.02.2018 / 20:47
0
answers

How to simultaneously play two PCM audio streams in a DMA

I am working on a project on the stm32f769i-disk card, which has to run a video game made by me. The graphic part is solved, where I have problems is wanting to play two or more wav files, I do not know which is the correct way to add them in a...
asked by 11.01.2018 / 03:21
0
answers

Read .txt separated by commas and save in a List or pointer to char in C

I have a file in which I have country information in this way: Mexico, Mexico Df, Felipe Calderon, Mexican peso Other country, another capital, the president, currency ... etc and I want to save them in a variable and then put it into a struc...
asked by 05.06.2018 / 01:13
0
answers

MPI_Send and MPI_Recv

I have a parallel program for sending messages using the mpi library, but it does not work correctly. Once shown the output by console is waiting for something and continues running. I show you the code. #include<stdio.h> #include<mpi...
asked by 10.12.2017 / 03:36
0
answers

How do I join the sets

I have the function broken to make Jaccard's distance, which is the intersection division of sets and the union. The intersection comes out but the union does not. What the threads do is that each thread takes 1/4 of the vectorA and compares it...
asked by 20.11.2017 / 11:47
1
answer

Program to perform the average of a series of random dice rolls by means of functions

good, the program is based on making a series of random rolls of a die and make the average of this series of rolls. The number of runs is requested by the screen. The program is executed using the getRoundand perform Media functions. I do not k...
asked by 07.11.2017 / 21:29
1
answer

Word Search, Browse Matrix

Good afternoon I'm programming a soup of letters in c ++ that shows on the screen the matrix with all the letters. I must be able to go through the matrix with the arrow keys and by pressing enter on a letter that is between the accepted ones, c...
asked by 05.11.2017 / 23:45
1
answer

which means "return 32; "In c?

This is the exercise, I just wanted to know what you mean by:    return 32; #include <stdio.h> #include <stdlib.h> int bits(unsigned int n); int main() { unsigned int n=7,j; j=bits(n); printf("%d",j); return...
asked by 27.10.2017 / 21:38
1
answer

C, Print and save character string

It's a simple program, I tried it with words instead of words and it worked, but I wanted to play a bit but I do not know how to do it for words, for a letter if it works for me. This error throws me: warning: multi-character character consta...
asked by 18.10.2017 / 03:54
1
answer

how can I "extract" from a string in C using fscanf?

I want to use fscanf () as a filter, for example if I do the following with a record with two fields, the first field is "ignored" and it reads the second field fscanf(fd, "%*d, %d", &numero) As I would if I want to read a part of the c...
asked by 17.10.2017 / 03:04