- 1
What doing a colon in C++
3 Réponses
+ 1
Do you want to know why is there a semicolon in C++ statements? If so, you can break your statement into many lines and the compiler will understand where it ends. The semicolon indicates the end of each statement, if you forget it, the compiler can yeld an error, because it doesn't understand what you want to do
+ 1
The colon in other hand is used for example to separate parameters in function, etc
0
Thank you.The second answer is what I wanted to know, but thanks also for the first answer.