+ 6

How to change syntax's name using "#define" tool?

For example can i replace "int" by "entier" that way: #define int entier; Am I true or False.

4th Jun 2017, 5:53 PM
BENOTMANE
BENOTMANE - avatar
7 Respostas
4th Jun 2017, 6:45 PM
BENOTMANE
BENOTMANE - avatar
+ 5
@Manual, For example can we replace "int" by entier that way: #define int entier; Am I true or False.
4th Jun 2017, 6:05 PM
BENOTMANE
BENOTMANE - avatar
+ 5
@Manual did you know in C++ we can replace a keyword from the standard library so easily By using the keyword not #define but "typedef" that's what I mean. For more : http://en.cppreference.com/w/cpp/language/typedef
4th Jun 2017, 6:38 PM
BENOTMANE
BENOTMANE - avatar
+ 3
@I'm Muslim Thank you again. I will have to use typedef in a code.
5th Jun 2017, 3:50 PM
Manual
Manual - avatar
+ 2
I have not done that before. I do not believe you can replace a keyword, from the standard library so easily. why do you want to replace int?
4th Jun 2017, 6:09 PM
Manual
Manual - avatar
+ 1
@I'm Muslim I define is does not have the same use in C++ as Java. The C++ course refer to it for creating headers and sources for .cpp files. Define for C++ can be used to name headers. [Edit] http://www.cplusplus.com/forum/beginner/14266/
4th Jun 2017, 6:13 PM
Manual
Manual - avatar
0
I use #define for headers. What do you mean by change the syntax name? https://en.m.wikipedia.org/wiki/Syntax_(programming_languages)
4th Jun 2017, 6:01 PM
Manual
Manual - avatar