Questions tagged as 'c'

0
answers

wildcard windows

Someone can tell me how to solve the following problem, about windows environment: In makefile I have: INCLUDE = $(wildcard $(addsuffix /*.h,$(INCLUDEDIR))) where are the headers. But I need it to appear \ instead of /*.h. The proble...
asked by 04.07.2018 / 01:40
1
answer

Help in the C language

This is the code that I have so far what is working for now is the selection of who plays first, then asks me to select each box with the corresponding coordinates and to make that step confuses me a bit Attachment code #include <stdio.h...
asked by 20.06.2018 / 21:13
0
answers

Send rows from a matrix to n processes in C with MPI

For example, if I have an 8x8 matrix: 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 And I have 4 processes. Each one will receive data i...
asked by 22.06.2018 / 21:35
0
answers

storage size of 'p' is not known struct

I have no idea why I have this error and I'm going crazy, to see if you can help me out. Code: The error gives me exactly in "struct parametors p" The structure is such that:     
asked by 17.06.2018 / 18:01
0
answers

How to separate the data entered in a txt file by commas in c language?

int main() { struct datos { char nombre[21]; int edad; char ciudad[21]; }persona[10]; // Array de struct con datos para 10 personas. FILE *fichero; int i, numero=0; fichero = fopen("gente.txt", "wt...
asked by 24.06.2018 / 14:49
1
answer

Problem with interruptions in hybridization in C and Assembler

I have a problem I want to use assembler interrupts with C but it says    Unhandled exception in 0x009B1F01 in ConsoleApplication3.exe: 0xC0000005: Access violation when reading location 0xFFFFFFFF. the code is as follows long random()...
asked by 13.06.2018 / 03:44
1
answer

Can cc compile a .cpp file?

I am new to using a Linux environment to compile and run my programs in c and c ++. As such I have realized that to compile files.c in terminal I occupy cc or gcc , otherwise with .cpp files that occupy g ++ My doubt was that if there wa...
asked by 12.06.2018 / 21:39
1
answer

Sento function error in UDP protocol

Good I put you a little in situation to see if someone can help me. I'm trying to communicate two computers using a UDP protocol. One computer has a Windows operating system and the other is a Raspberry Pi with Raspbian. The Raspbeery Pi works a...
asked by 10.06.2018 / 15:11
0
answers

The profiler gprof does not work correctly

Well my problem is this: I'm working on c on Linux. I am evaluating the execution time of different functions and use gprof for it. I was using it without problems but I had to reinstall the operating system and now the generated reports are emp...
asked by 11.06.2018 / 01:05
1
answer

Doubt of passage of vector of structures to a function in C

I get the following error when wanting to pass the vector to a function:    [Error] could not convert '(teachers *) (& prfsr)' from 'professors *' to 'professors'. I pass the code to see what's wrong, I've been trying for a while to s...
asked by 10.06.2018 / 06:07