'printf': identifier not found

0 votes
asked Apr 27, 2015 by raisintoe

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?

2 Answers

+1 vote
answered Apr 27, 2015 by lovetocode

Use
#include< cstdio>
using namespace std;
after that you can use printf()

+5 votes
answered Apr 27, 2015 by mohsen-bahaloo

you must include stdio.h instead of cstdio.h

#include <stdio.h>

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter

...