Top "Stdio" questions

This tag is for questions regarding "Standard I/O", i.e. I/O using the facilities in the C header <stdio.

'printf' vs. 'cout' in C++

What is the difference between printf() and cout in C++?

c++ printf iostream cout stdio
GCC fatal error: stdio.h: No such file or directory

I'm trying to compile a program in C on OS X 10.9 with GCC 4.9 (experimental). For some reason, I'm getting the …

c gcc stdio
Cannot open include file: 'stdio.h' - Visual Studio Community 2017 - C++ Error

I am trying to Build a Solution on Visual Studio Community 2017, but I keep getting the error "Cannot open include …

c++ visual-studio visual-studio-2017 stdio
stdlib and colored output in C

I am making a simple application which requires colored output. How can I make my output colored like emacs and …

c colors stdio libc
Code for printf function in C

Possible Duplicate: source code of c/c++ functions I was wondering where I can find the C code that's used …

c printf stdio
How can I get an int from stdio in C?

I have significant trouble with this... printf("> "); int x = getchar(); printf("got the number: %d", scanf("%d", &x)); …

c stdio
Rerouting stdin and stdout from C

I want to reopen the stdin and stdout (and perhaps stderr while I'm at it) filehandles, so that future calls …

c redirect stdio
How can you flush a write using a file descriptor?

It turns out this whole misunderstanding of the open() versus fopen() stems from a buggy I2C driver in the …

c linux stdio i2c
Detecting EOF in C

I am using the following C code to take input from user until EOF occurs, but problem is this code …

c stdio
Unable to open a file with fopen()

I've been trying to open a file and output text, but I keep getting errors. So I thought I would …

c file-io fopen stdio