Questions tagged as 'c'

1
answer

I need the function to read all the data registered in the vecto,

The vector name reads names but when I ask to find one entered in another function only the first one passes or I do not know what I have wrong in the for , but I need you to read any data of the vector, not only the first one. void CON...
asked by 06.06.2018 / 06:01
0
answers

How to use the records in a hybrid program of Assembler and C?

I would like to know how it is possible to use the AX , BX , CX and DX records in a code in the language C . if it is necessary to pass them to a variable or directly using "asm" and the registry     
asked by 05.06.2018 / 01:10
0
answers

STM32F407 USART transmit

I am doing the programming of a stm32f407 that communicates with a raspberry by usart. stm32 code: while (1) { HAL_UART_Transmit_IT(&huart2, "hola mundo",10 ); HAL_Delay(200); } python code in PI: import serial ser...
asked by 05.06.2018 / 18:24
0
answers

Problems to communicate parent and children process with fork and pipe

#include<stdio.h> #include<unistd.h> #include<string.h> #include"archivo.h" int main(int argc, char *argv[]){ int pidM, pidm,leidos, pip_cont[2],pip_conv[2]; char buff[BUFF], *archivo=NULL; if( (pipe(pip_conv))...
asked by 05.06.2018 / 18:20
0
answers

Problem reading file

I have a problem reading a file, it does not show me the correct age. And this the code: #include <stdio.h> #include <string.h> char codigo[3]; char nombre[100]; char edad[2]; void setInfoAlumno(char linea[]){ me...
asked by 03.06.2018 / 14:46
0
answers

Save value of CX and DX (Assembler) in a variable C

I need help to know how to use the value of CX in C I have a program which has to draw an x in the place where click with the mouse. And for that I need to know the value of the assembly interruption 33h. int mouse_x(int x){ asm mov ax,03...
asked by 03.06.2018 / 23:02
1
answer

Insert 2 elemenet trees ordered C

I am trying to insert 2 items (phone number and name), and when entering the phone number I find the name associated with that phone number. What I have currently only inserts the phone number and I do not know how to add the name and what they...
asked by 08.06.2018 / 15:57
0
answers

Server (centos) -Client (windows) socket python and c

I have to simulate an ATM, where the centos server is made with python and the client in c (windows). I have ping when I do between the client and the server. Everything is perfect, but when interacting with the other machine, it is never possib...
asked by 08.06.2018 / 08:08
0
answers

Problem when adding and removing item from a stack with linked lists in C

I have a problem adding and removing items from a stack with linked lists. My push function adds but when I want to pop them out with pop it tells me it's empty. Here is the code: Push function BOOLEAN lpila_push(LPila p, void* valor){ /*...
asked by 08.06.2018 / 01:35
2
answers

Why is my vector not saved correctly in the text file?

The problem I have is that when I want to save the content in a text file, it does not do it, it simply saves me the garbage of the variables ... then I leave the code: #include<stdio.h> #include<time.h> #include<windows.h> s...
asked by 30.05.2018 / 03:38