Questions tagged as 'c'

2
answers

Simulate typing the keyboard programmatically in c

The problem: I need my C program to write like a keyboard. When I open google, for example, and click on the search field I would like it to appear several 'a'. As if the key was pressed on the keyboard. Extra context: I'm making a blueto...
asked by 27.10.2017 / 00:30
1
answer

How to measure times in multi-threaded programs in C

I'm doing a multi threaded work in c, and I need to calculate the time of a certain part of the program, does anyone have any idea how I can do this?     
asked by 26.10.2017 / 15:56
1
answer

How to write a loop to read a file to an array of structs in C?

Hello. I have a question about how to read numbers from a given file in c to put inside the loop The .txt file will have the following data: 3 Joao Maria branco p Marcio Guess vermelho p Maria Jose branco p 2 Joao Losna Vermelho G Donald T...
asked by 16.11.2016 / 14:35
2
answers

Clear button radio button

Good morning I would like to know how do I clear what was clicked on the radiobutton button, because in the textBox I use the name.Clear (); I would like to know how I can do it on the radio button Thank you.     
asked by 16.11.2016 / 14:24
1
answer

How to calculate the nth root of a number in C?

I tried to calculate this way, only that pow returns only the number 1 for me: int funcao1(int y,int z){ int k; k = pow(y,1/z); return(k); }     
asked by 14.10.2017 / 22:41
1
answer

How to convert a normal integer to its bibliographic format in c?

I want to know how to convert, for example, the following string: "Barack Obama" for "OBAMA, Barack". That is, pro bibliographic format, type when citing authors of books / articles. But I want to know how to convert any name size to this...
asked by 19.10.2016 / 05:09
1
answer

Sublime Text 3 - Autocomplete of headers in directory

After unsuccessful search for a sublime text 3 plugin, I've come to you for help. I need to recognize the libs installed on the system, so I'm looking for a plugin capable of delivering an autocompletion at the time of #include of the heade...
asked by 13.10.2016 / 21:35
1
answer

Headers Configuration

I'm trying to compile some code in "C" via GCC (Derbian - Kali Linux), and when compiling, I get error messages saying that files like linux/linkage.h and asm/linkage.h could not be found. When issuing the locate linkage.h command,...
asked by 12.05.2016 / 13:14
2
answers

Add prime numbers within a vector

I have this problem: Make an algorithm that receives 1500 numbers, compute and show the sum of the even numbers and the sum of the prime numbers. So far so good, I have been able to filter and add even numbers, BUT, the sum of prime numbers a...
asked by 02.06.2016 / 18:10
1
answer

Why do I get QNAN Error when I calculate this?

Would anyone help me to find out which client is closest to the average found? When compiling 1.QNAN0 which is when I make a malformed math operation, I just do not see which one it is: / header file to compile #include <stdio.h> #incl...
asked by 14.06.2016 / 17:21