How do I use "," instead of ";" in C++

Правка en1, от thekingisback, 2026-03-12 12:17:34

In some cases, I could write like this:

If(f==true)a++,b++;

Instead of ~~~~~ If(f==true){a++;b++;} ~~~~~ However, sometimes I can't write like that and the compiler showes error, can anybody teach me how to use the comma properly? I think it will improve my coding speed by alot. Thanks.

Теги implementations

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский thekingisback 2026-03-12 12:18:38 11
en1 Английский thekingisback 2026-03-12 12:17:34 356 Initial revision (published)