Reputation: 201
I have included stdio.h into my C++ project, why am I still getting this error? Also, after I added #include , printf(), in my code, was no longer underlined in red to suggest that there was any error.
Also, I would like to use the function, format(). Which library is that found in?
Upvotes: 8
Views: 34858
Reputation: 287
you must include stdio.h instead of cstdio.h
#include <stdio.h>
Upvotes: 13
Reputation: 306
Use
#include< cstdio>
using namespace std;
after that you can use printf()
Upvotes: 2