Questions tagged as 'c'

1
answer

Read files in python

I need to read a file in python and look for the words that end with ing in it. I had already done my code in C and it worked, now when I pass it to python I run into the problem that I can not read the file. I hope you can help me def lec...
asked by 24.09.2017 / 04:44
1
answer

Help with a problem of c, save operation on variable

It does not save the operation that is done in printf, for example 2 + 2, it does not save it in scanf, I'm just starting #include<stdio.h> int main(){ float resultado; printf("Introduce la operacion: "); scanf("%f", resultado); printf(...
asked by 03.10.2017 / 20:02
1
answer

SIGSEGV Codeblocks

Good afternoon! I have to finish a work of a game for the university and I have the typical problem of "sometimes it works". I tell you above: it's a game where you take a character, if the enemies touch you, the game ends and you take points th...
asked by 28.06.2017 / 19:46
1
answer

Get a string to a new one ignoring words from another string in C?

Let's say I have a certain string called a string [1024], which looks something like this: char cadena[1024] = "int/0void/0/main/0a/0"; Afterwards, I have a two-dimensional arrangement where I stored some words char palres[20][10]={ "int"...
asked by 17.06.2017 / 16:30
0
answers

Help with Automata Battery in C

I am developing a work on automata and it is not clear to me the application of the stack in this one. I did not want to go to this page because I wanted to solve my doubts by my own merit, but due to the time and complications I could not, s...
asked by 17.06.2017 / 22:59
0
answers

8 relay Board how can I do a program to control it [closed]

I have this box of relays called link What I want and intend is to make a program in python or java that connects to it through a com port and activate and deactivate the relays Is this possible?     
asked by 28.04.2017 / 12:53
1
answer

How to cast a float a void * and vice versa in C?

Good, I have a problem in C, I want to cast a float to a void * and then in another function to cast it from void * to float, the problem is that it is printing 0.0. For what is this? char * i = "1.22"; float numeroFlotante = (float) strtod(i,...
asked by 18.04.2017 / 18:41
1
answer

Help with counting and comparing a variable in FOR in C

I hope you can help me with this statement that I got from homework, I can not find the way to do the point to, and with the rest: -As a result of an experiment, a laboratory obtained 18 values of temperature, all other than zero. A program m...
asked by 25.04.2017 / 22:30
1
answer

Error: ... undeclared (first use in this function)

I am trying to compile this program but it gives me compile error, even though I have added functions.h Code of p2_e4 (where the main is): #include <stdio.h> #include <stdlib.h> #include <string.h> #include "stack_fp.h" #...
asked by 14.05.2017 / 20:43
1
answer

Word order in C language [closed]

I have to carry out a program that allows me to correct badly worded words that are inside a .txt file Example: Wrongly worded word in the .txt file: "hloa" Word after being corrected: "hello" I need some kind of guide because I do n...
asked by 18.03.2017 / 22:02