Questions tagged as 'c'

1
answer

Problem after applying a patch for random name generation in ffmpeg

I applied the following patch below, it works as expected, but occasionally transcoding to and in other cases ( rare cases depending on the version of compiled ffmpeg ) continues to run but instead of creating multiple segments with random names...
asked by 21.11.2016 / 15:28
1
answer

Convert assignments from C ++ to C

I would like help converting these assignments made in C ++ to C: string binario = bitset<256>(address).to_string(); int InicioDado = 256-log2(cacheconfig.lineSize); string dado = binario.substr(InicioDado, log2(cacheconfig.lineSize)); i...
asked by 21.11.2016 / 14:11
1
answer

Value of char * is shown even where it was not called using Arduino

This is exactly what I'm using: #include <SPI.h> #include <Ethernet.h> byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // Tentativa frustada, possui o mesmo problema: //uint32_t i; //uint8_t* TotalRequisicao; /////...
asked by 16.02.2017 / 04:49
2
answers

Factorial with recursion

I have to do a program that calculates the factorial of a number using recursion inside the main. #include<stdio.h> #include<stdlib.h> #include<conio.h> int main (int argc, char *argv[]){ float numero; int valorA = a...
asked by 18.11.2016 / 22:28
1
answer

How to create random filenames with ffmpeg?

I'm compiling a custom version of ffmpeg, and I want it to generate random file names but it does not support this, so I need some function that does this with X the quantity is not important, as long as it is above 10 and below 20), if pos...
asked by 30.10.2016 / 18:37
1
answer

Standard input and output (using C programs)

I have a program that prints something, and another that reads something and prints another, I would like to know if it has how to connect the output of one with the input of another. The problem I made was to pass the output from one to t...
asked by 02.11.2016 / 01:52
1
answer

How to install C ++ compilers and libraries from previous versions in visual studio 2015?

How can I install old versions of compilers and c ++ libraries in visual studio 2015 without having to install the IDE together? (that is, only what is needed to compile, run, and debug applications). I would like to leave it like this:...
asked by 26.11.2016 / 00:29
2
answers

Convert Header C / C ++ to Delphi

The intention is to consume a biometrics dll link I thought the best way would be to convert the headers that they provide (not a good idea). There are 3 headers: VrBio.h VTypes.h VConsts.h So far I've been able to convert (I thi...
asked by 25.11.2016 / 19:39
2
answers

calling a function inside another function in c

I need to get float values to store in struct , but I need to validate these values through a validation function. ' The function that validates these values is working correctly, but when I try to call it inside the function it w...
asked by 01.12.2016 / 01:26
3
answers

How to highlight text (change color) in C ANSI [closed]

Good night ... I am in doubt about how to use the textcolor function in c but I did not find it in the library conio ... does anyone know where this function is located or if I have to create it how to do it? Thank you     
asked by 11.10.2016 / 03:43