Questions tagged as 'printf'

1
answer

Save std :: cout to file

I need to adapt some exits from the program Ripser . More precisely, I need to do the following: 1. Running the program in an example, we have: ./ripser examples/random16.lower_distance_matrix whose output is distance matrix with 1...
asked by 17.11.2017 / 01:48
1
answer

How to resolve error in printing strings?

I'm passing a struct by reference to a function at the time of inserting the data, and again at the time of printing this data. But the "insert_element" function does not read the time float (it skips the reading), and the function "Print_dates"...
asked by 07.11.2018 / 12:15
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
0
answers

Read entry and store specific information in C

I want to identify all 32 reserved words of C written in an entry that simulates a C code, but it is not storing all and I do not know what is wrong, obs stores only if it appears and what not the number of times it appears. Here is the code and...
asked by 08.11.2018 / 21:55
0
answers

Condition error in string vector in C [duplicate]

I'm having difficulty with a specific exercise: #include <stdio.h> #include <stdlib.h> #include <locale.h> #include <windows.h> #include <ctype.h> #include <string.h> /* run this program using the console...
asked by 06.09.2018 / 21:19
1
answer

Problem with printf and scanf - My code does not print the correct information

I have this code here that is not reading the characters correctly when printing the user-populated data on the screen. Can you help me? // Question 1) Make an algorithm that reads a user's name, rg, age, gender, address, phone, and cell. //...
asked by 19.03.2018 / 23:27
0
answers

Using printf and scanf in Eclipse and Netbeans - Language C

Good evening. I have the program below that asks the user to insert two numbers and then present them. In Code Blocks is working correctly, however when I run in Eclipse or Netbeans, the system waits for the numbers to be entered without the pre...
asked by 25.02.2018 / 02:04
1
answer

Print item from a queue by removing each item from it

I'm doing a program that receives a string with comma-separated words that separates those words and lines them (so far I've been able to do it quietly), then the program has to remove and print the items, but I can not develop the de-working fu...
asked by 10.07.2017 / 05:32
0
answers

Read TXT with Extended AscII

I made the following code to read a TXT file that contains extended char ascii table. int main(void){ printf("%c %c %c %c %c %c %c %c %c \n",205,187,186,187,200,201,205,188); FILE *ffpOrig=fopen("a.txt", "r"); for(;!feof(ffpOrig);){ unsigned...
asked by 15.09.2016 / 18:49
2
answers

After entering the Value of P, you are not running the printf of the second for

#define MAX 15 #define TAM 2 struct { char m[MAX]; int ano; float v; } car[TAM]; int main(void) { int i; int p; for(i=0; i<TAM; i++) { printf("Determine a Marca e Modelo do Carro %d: ", i+1); gets(...
asked by 17.06.2018 / 05:48