hi guys, i'm just starting out c++.
Now the problem is, no matter whatever program i write, i'm getting this warning.
#warning This file includes at least one deprecated or antiquated header. \
Please consider using one of the 32 headers found in section 188.8.131.52 of the \
C++ standard. Examples include substituting the <X> header for the <X.h> \
header for C++ includes, or <iostream> instead of the deprecated header \
<iostream.h>. To disable this warning use -Wno-deprecated.
Um..... I think your compiler has said it all... Try actually reading it.
The way you've written your code is not per the current C++ standards. There are no headers that are part of the current standard that end with ".h"...
thanks for your reply.
Did you mean, i should use <iostream> instead of <iostream.h>?
well...i tried that. but then i'm getting errors like "cout was not declared in this scope" or "endl was not declared in this scope"..i think in this case they can't find the header files where these functions are written.
sorry for my bad english, i'm not native english speaker.
thanks to all.
>>Did you mean, i should use <iostream> instead of <iostream.h>?
That's exactly what I/it mean(s).
>>but then i'm getting errors like "cout was not declared in this scope" or "endl was not declared in this scope"..i think in this case they can't find the header files where these functions are written
Nope. It means you didn't resolve your namespace properly. All functions and objects that are members of the standard headers are declared within the "std" namespace. To get to them, you must resolve the namespace.
#define A 3// name a constant
long int booking_ID ; ...