+ 1

Is # the same as in Python

in Python, using # is ignored by the program and helpful when taking notes or temporarily taking a string out. is this the same for C++?

27th Aug 2017, 7:51 PM
Micah J. MacDonald
Micah J. MacDonald - avatar
4 Answers
0
It is // in c++.
27th Aug 2017, 8:03 PM
Paul
Paul - avatar
0
Or you can put comment between /* this is comment */.
27th Aug 2017, 8:06 PM
Paul
Paul - avatar
0
Absolutely not the same.. # in C++ is used for the preprocessing directives such as: #include #define #ifndef #endif etc.. The comments in C++ have the next structure: //use this for one comment line... /* and this for many different lines of comments */
27th Aug 2017, 8:15 PM
xyz xyz
xyz xyz - avatar
0
Wow this is gonna take some getting used to lol
27th Aug 2017, 8:33 PM
Micah J. MacDonald
Micah J. MacDonald - avatar