Questions tagged as 'c'

0
answers

Cuda Multi Inter Process Communication (IPC)

Does anyone know which way a simple IPC takes with cudaIpcGetMemHandle but saving data in different Devices and accessing them?     
asked by 25.10.2018 / 21:13
2
answers

Is my battery program correct?

I made this program from a stack, but sometimes in the "output" array I get data that is not, that is, I give it to withdraw and sometimes I pass the data removed to the "output" array as it should be , but other times it puts me very large numb...
asked by 22.10.2018 / 00:24
1
answer

My program is cycled when I enter characters, do I need to know what to do to accept only whole numbers?

#include <stdlib.h> #include <stdio.h> int mes; int main() { do { printf("\n\n Introduce un numero del 1 al 12 correspondiente al mes de tu eleccion: "); scanf( "%d", &mes );...
asked by 28.10.2018 / 22:26
1
answer

Sort double circular list in c language

I'm trying to make a function that orders me a list of this type, so far I made one that orders a double list but I do not know how to change it so that it does what I want This is the code of my function: void ordena_lista(Nodo *nodo){...
asked by 13.10.2018 / 20:06
0
answers

I want to be able to save files on a server made in c

The truth is that I have just started with the issue of socket in cy and I already programmed the client and the server with the tcp protocol, but I wanted to be able to save files in the server in order to download it from the client in another...
asked by 20.10.2018 / 18:56
1
answer

Modify a binary file in C

I need to read and modify a binary file, I am using this code: FILE *fp; t_data dat; fp=fopen("file.bin","r+b"); fread(&dat,sizeof(t_data),1,fp); while(!feof(fp)) { if(dat.aaaa==2018) { int pos = ftell(fp)-sizeof(t_data);...
asked by 11.10.2018 / 16:12
0
answers

Error Android game maker studio

When I install my apk exported from game maker studio the following unexpected error appears, I hope your help please     
asked by 09.10.2018 / 06:47
1
answer

C: Use free () function to release double character pointer correctly

I have a function in which I need to implement the use of free () to free the memory that was used. My code is written this way: void totalDePaisesVisitados(ALUMNO* array, int nu_Alumnos){ int ArrayLenght = 0; int MaxPises = 70; int last...
asked by 10.10.2018 / 03:56
1
answer

Read 1KB of each file in a folder

I need to read the first KB of each file inside a folder, I can show the names of all the files on the screen but then I can not figure out what to do to read each file one by one #include <stdio.h> #include <stdlib.h> #include "an...
asked by 07.10.2018 / 15:36
1
answer

How a 2D Array works with a double pointer in C

How does it work and how can a bidimensional fix be made from a double pointer in C ? int **a;     
asked by 27.09.2018 / 23:53