Questions tagged as 'c'

0
answers

Api ipv6 kernel 4.6

I'm working on an application made with Netlink in Linux kernel 2.6 And I want to make it work for a Linux kernel 4.6 I'm having problems with the ioctl function. Before running my application, I generate an ad-hoc connection (via wireless in...
asked by 29.03.2017 / 14:30
0
answers

How to copy content from a linked list into a text file in C?

I would like to know how I could copy the contents of a linked list into a text file created at runtime. I have this part of the code but it does not work: printf("Nombre de fichero destino: "); scanf("%s", copia); if ((fp = fopen (copia, "...
asked by 25.05.2017 / 12:17
1
answer

calculate quotient in c language

The problem is based on a program that asks to calculate the sum of the elements above the secondary diagonal, calculate the sum of the secondary diagonal and divide the first by the second (matrices), that is: sum elements above of secondary di...
asked by 26.03.2017 / 18:45
0
answers

Get image of xml

Good morning. I have an xml where I keep the routes of some images. my application creates a button for each route I have in the post xml, but I can not get the button to be created with the image in the routes, put an image of? which I th...
asked by 02.04.2017 / 10:45
1
answer

Do not save the string inside the vector

Hello in this code gives me an error when I ask the user to enter a string and modify the one that I already entered that is "dog", the problem is in these lines printf("Ingrese una palabra: "); scanf("%s",(vector+1)); If I do not use t...
asked by 09.02.2017 / 21:59
1
answer

Error value returned in pipe

They ask me to do a function that first ls the current directory and store it in a file (tmp) and then read that file, grep -c and return the value in the return. I can not get the correct value back to me correctly in int, yes as char. int do...
asked by 09.12.2016 / 18:40
2
answers

Parse file TXT in C

The exercise consists of given a TXT file created with the notebook that the program read and parse in a variable way, detecting each field of the text file and recognizing them so that they can be used or displayed. My problem is that th...
asked by 04.01.2017 / 19:06
0
answers

Operation of displays with push buttons (C)

To perform a function of a program I am asked to move the light of a 7-segment display with push buttons, there are 4 displays, one button increases and the other decreases one by one until reaching the last segment of the last display. is doing...
asked by 31.10.2016 / 18:33
1
answer

Hangman Program in Qt

Could you help me and tell me what is wrong with the following exercise and how to improve it? The statement is:    In this exercise we will program the game of the simplified hangman. At the beginning we will ask the first player for the...
asked by 13.10.2016 / 20:14
1
answer

Cesar encryption using matrices and chars, error in the numbers

Here I have the code, basically I have to use the cipher cease in C using matrices and chars only, this is what I have for now: #include <stdio.h> #include <stdlib.h> main () { char alfabeto[26] = {'A','B','C','D','E','F','G'...
asked by 31.03.2016 / 22:11