Questions tagged as 'c'

1
answer

Manipulation of values in input files c .txt

I need to do the following Create an algorithm where you calculate by means of several temperature inputs the percentage outside the variance stipulated as maximum and minimum having as out of values + -3 from stipulated temperature values, o...
asked by 27.08.2017 / 05:49
1
answer

How do I print a hex in c through printf?

// example mascara = 0xFF; blue = COR1 & mascara // color a macro I've used printf ("% s \ n", blue); // bold doubts     
asked by 26.08.2017 / 21:57
1
answer

How to count the total characters of a txt file, including spaces and '\ n'?

#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { FILE *arquivoRead; FILE *arquivoEscrita; char ch; int count=0; int lin, col; arquivoRead = fopen(argv[3]...
asked by 02.08.2017 / 16:41
1
answer

Concatenate String in C without use of strcat () function

I need a help, I needed to solve this programming language exercise, I would concatenate a string, in case STRING_B in STIRNG_A, without using a function ready, by pointers method. example: ENTRADAS >> "CASA " - "BAHIA" SAIDA >>...
asked by 19.08.2017 / 18:46
1
answer

Change signature and parameters of some functions

I'm creating a program that inverts the non-vowel sequences of a word represented by a list that is simply chained, without head, and without sentinel. That is, each node in the list has a letter field. My work is to invert the non-vowel sequenc...
asked by 13.09.2017 / 01:36
3
answers

Separate small strings from a giant string

Hello. I have to do a function to read a huge string and then break it down into small strings for each field. Each field would be separated by ; example: BRUNNY;PR;MG;T;Câmara dos Deputados, Edifício Anexo;4;, gabinete nº;260;Brasília...
asked by 13.09.2017 / 01:51
1
answer

Date parser in C

I was doing tests to do parsers of date and I made this example based on a program that formats through sscanf() with a constant string defined because I did not understand well where is the error: #include <cstring> #include...
asked by 25.07.2017 / 20:28
1
answer

Problem in implementing a linked list - list insertion

I'm trying to implement this implementation in C. I'm having two problems. First: Inside the main, I log the data I want and when I enter the list I get a problem. Second: My data reading function "print_dates" gives error when compiling....
asked by 22.07.2017 / 02:43
1
answer

What is the operation of a list chained in C? [duplicate]

I'm doing a job for college and have not yet fully understood the logic behind a list chained to C. I need to register login, name and value in a record, from which I created a struct (set of variables); I created another struct to be my no...
asked by 21.07.2017 / 23:05
1
answer

conio.h and time.h in cppdroid

Can you add libraries to cpp droid? I need to use these two libraries but the program does not identify the functions. If there is no way in cpp do you have any c compiller for android that supports?     
asked by 23.07.2017 / 17:11