Raisintoe
Raisintoe

Reputation: 201

'printf': identifier not found

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

Answers (2)

Mohsen Bahaloo
Mohsen Bahaloo

Reputation: 287

you must include stdio.h instead of cstdio.h

#include <stdio.h>

Upvotes: 13

LoveToCode
LoveToCode

Reputation: 306

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

Upvotes: 2

Related Questions