C ++ notes

xiaoxiao2021-03-06  14

Once I have seen a code switch

// * /

Codesegement1;

// * /

Change the first line of change

/ * /

Codesegement1;

// * /

Later, in my practice, I found a wonderful usage.

Code switching switch

// ---------------------- The first paragraph is effective, the second paragraph is annotated

// * /

Codesegement1;

/ * /

Codesegement2;

// * /

Simply delete the first line / can become

// ---------------------- The first paragraph is annotated, the second paragraph is effective

/ * /

Codesegement1;

/ * /

Codesegement2;

// * /

转载请注明原文地址:https://www.9cbs.com/read-49617.html

New Post(0)