Hi,
I want to know about C++, How do I declare a constant (like C++ const) in Java(tm) and how do I declare enums (like C enum) in Java(tm).if any one knows about this reply me
Thanks in advance

Hi,
I want to know about C++, How do I declare a constant (like C++ const) in Java(tm)

const int contant_var = 10 ;

and how do I declare enums (like C enum) in Java(tm).if any one knows about this reply me
Thanks in advance

enum

Thanks for your reply,
I have another question can you tell me the difference between endl and '\n' and why I cant convert ** to a const char ** and * to a const char *&? If you know about this reply me

Thanks for your reply,
I have another question can you tell me the difference between endl and '\n'

link.

and why I cant convert ** to a const char ** and * to a const char *&?

What are you trying to do here? All these asterisks are confusing me.
Post the code that you are trying to compile.

um are you saying that you cant convert a string to
a c style string like when reading files or something. To fix this use the .c_str() member function.

example:

string dude="random";
ifstream file (dude.c_str());
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.