c++

O

Ondra Holub

why we are u { } brackets.we can use any other symbols . why?

Because this way is C++ defined.

It is the same as we could use 'yes' for negative answer and 'no' for
possitive answer in english - these are just words. But then it is not
english.
 
M

Michael DOUBEZ

Ondra Holub a écrit :
Because this way is C++ defined.

It is the same as we could use 'yes' for negative answer and 'no' for
possitive answer in english - these are just words. But then it is not
english.

To be precise because it is the way C was defined and C++ was design to
be C compatible.

And in answer to OP. Why not ?

Michael
 
B

BobR

Ondra Holub wrote in message...

/* """
why we are u { } brackets.we can use any other symbols . why?
""" */

OP: Is that:
namespace u{};
class u{};
struct u{};
enum u{};

???

/* """
Because this way is C++ defined.

It is the same as we could use 'yes' for negative answer and 'no' for
possitive answer in english - these are just words. But then it is not
english.

""" */

That sounds like a politician to me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,649
Latest member
MargaretCo

Latest Threads

Top