Questions tagged as 'c'

2
answers

Great efficiency problem. Tips to optimize hash table in C?

Good morning, I am implementing the Greedy algorithm to color graphs. Graphs can have up to 1 000 000 of vertices. All integers are uint_32 , and to save them I use a hash table that uses dynamic arrays to solve collisions (and not...
asked by 29.04.2016 / 19:37
1
answer

Problem with functions and arrays [duplicated]

I do not understand why the program does not do what I order in the functions and it simply prints on the screen the two "printf" that I use test in the main. #include <stdio.h> #define MAX 10 void leerVect(int vect[MAX]); void escribi...
asked by 28.10.2018 / 15:28
2
answers

Arduino - Error erasing EEPROM memory in MEGA

I'm new to Arduino and I'm having a problem with Arduino ... I have 2 plates. One is an Arduino UNO and another is an Arduino Mega. I run the following program in both, that the only thing it does is clean the EEPROM memory and show how it was....
asked by 31.07.2018 / 20:35
1
answer

Sum of positions of a cycle for c

I made a program using functions in which you requested the age of the person, and added some conditions that if it is less than 12 years old it is childish and the cost is 300, if it is less than 18 years old it is considered childish and the c...
asked by 10.08.2018 / 01:07
2
answers

verify the existence of character by character of a string with a paragraph in C

How can I store a list of words and then when entering a paragraph by keyboard the program can verify if that paragraph (entered by keyboard) contains the letters of the words stored previously. example stored words: sol, luz, ... by...
asked by 22.07.2018 / 03:57
1
answer

"SSL connect error" connecting to Proxies using libcurl and C ++, a little help?

I wanted to buy a huge list of proxies that I have because I'm only interested in those who use the https (SSL) protocol and those that are not in China. Looking for a quick way to do it I found this function. string proxyWorks(string ip, int...
asked by 20.04.2018 / 20:30
2
answers

Error in data output C

I have a problem, I am learning C and I am "translating / converting" my Java code to C to make it more efficient, just that I have a problem in the output: It is assumed that the output must be 11 15 18, but only the 15 leaves correctly and the...
asked by 08.11.2017 / 02:10
1
answer

Characters with tilde in a char type arrangement

I have this code: include <stdio.h> define TAM 64 int main(int argc, const char **argv) { char cadena[TAM] = {0}; while (fgets(cadena, sizeof(cadena), stdin) != NULL) printf("%s\n", cadena); } When I run it in the...
asked by 19.10.2017 / 17:42
1
answer

How can I delete content from an array in a .txt C?

I have a function to add clients through an array, these clients are stored in a .txt. (as I can show the clients in the txt with line breaks) Once I add the clients I want to be able to eliminate them and for that I create the function to elimi...
asked by 18.03.2018 / 22:47
1
answer

Pipe malfunction, fork

I am studying how to make pipes to child processes; I wrote this test code that creates a series of children (4 in this example), and opens pipes between them and the parent process (at least I would like that): #include <stdlib.h> #incl...
asked by 12.06.2018 / 12:13