Questions tagged as 'c'

1
answer

Problem with Printf and Scanf

I want to make my program ask to enter a sentence and then a letter but even though the phrase asks for it the letter does not ask for it yet IF it shows the text "Letter:" that follows that the command line of the console starts ... The code...
asked by 06.03.2018 / 22:47
1
answer

Problem with Windows and C

Today I decided to learn C, I'm creating a very basic program that took the average of 4 numbers that are entered into the program: #include <stdio.h> void main(){ int calif1, calif2, calif3, calif4, total; printf(" introduzca el...
asked by 06.04.2018 / 03:05
2
answers

Problems with EntryPoint of DLL created in C

I need to use a DLL created in C in a C # application. I have followed several forms seen on the internet and I can not use the methods that are supposed to be in the DLL. When looking for the entrypoints, 4 appear, which are the following...
asked by 13.03.2018 / 15:00
2
answers

Problem when scanning a character and saving it in a structure

When I scan the sex and save it in the structure the functions CancionMasVotada and Premio print me wrong results, however if I remove the scanf of sex everything works perfectly. The code is as follows: #include <stdio.h&g...
asked by 24.02.2018 / 17:14
2
answers

How can I install DEV C ++ in Linux, step by step?

I'm trying to install Dev C ++ on ubuntu but I have not found a way to do it, the instructions thrown by several blogs or forums are wrong.     
asked by 15.02.2018 / 22:13
1
answer

C deletes the value of the variable when it is passed as a parameter of a method

I'm doing a program in C language, the problem is that I have a variable of type int and when I pass it as a parameter, C deletes it from me. char letra, name[] = ""; int compuesto; compuesto = Es_Compuesto(nom, lon);//RETORNA UN INT if (compu...
asked by 13.12.2017 / 21:58
2
answers

error: request for member 'fix' in something not a structure or union

The program tries to implement an array with a buffer but sends an error with a message that says:    error: request for member 'fix' in something not to structure or union How can this error be resolved? #include <stdio.h> #inclu...
asked by 26.11.2017 / 00:32
3
answers

Given a sentence ending in point, count how many words begin with the letter S [closed]

Very good. Compile and everything well, I execute and everything is fine, the problem is that when for example I put a sentence where YES it should tell me at least that there is 1 word that starts with S, the counter follows at 0. Does so...
asked by 24.01.2018 / 23:09
2
answers

How do I manage to run my random program? I can not identify the error

#include <stdio.h> #include <stdlib.h> int main(int argc, char* argv[]) { char *v[3] = {"piedra", "Papel", "tijeras"}; int ju, pc, jugados = 1, ganados = 0, perdidos = 0; randomize(); do...
asked by 16.11.2017 / 05:56
1
answer

Segmentation fault when traversing an array in C

first of all I tell you that I already checked in the forum about the error and I did not find the solution or the explanation of why this error is generated. I have the following code that creates an array with the sizes entered by the user, th...
asked by 13.11.2017 / 07:13