Results 1 to 25 of 44
Thread: switch C++
Hybrid View
-
30th October 2011 15:54 #1Registered User
Join Date: Nov:2008
Location: Sofia, Mladost 3
Posts: 311
switch C++
switch , .
:
if ()
{
switch()
{
case1:.....
case2:....
}
|
else if ( )
switch(a) - switch- , .
-
30th October 2011 16:17 #2
, .
main-Code:class example { int letsSwitch(int a) { switch(a) { case..... } } }
..Code:if() { b = letsSwitch(b); } else { if() { b = letsSwitch(b); } }
-
30th October 2011 16:28 #3Registered User
Join Date: Nov:2008
Location: Sofia, Mladost 3
Posts: 311
, ( ) . 72 "sedemdeset i dve". 100 case-a, 0 100.
-
30th October 2011 16:36 #4
switch 2 ( ), if switch?!?
Code:if (() || ( )) { switch() { case1:..... case2:.... } }| Aorus X570 Master | Ryzen 9 5900X | Hellhound 7900XT | G.SKILL 32GB DDR4 3800 CL16 | Enermax Galaxy 1000W | SSD Corsair MP510 960GB & WD-RE3 2 x 1TB RAID0 | Pioneer BDR-209EBK | Creative X-Fi Titanium Fatal1ty & GigaWorks S750 | ViewSonic VX3276-2K-MHD |
-
30th October 2011 17:55 #5Registered User
Join Date: Oct:2003
Location:
Posts: 4,317
if . ,
, .
-
30th October 2011 18:08 #6Registered User
Join Date: Nov:2008
Location: Sofia, Mladost 3
Posts: 311
. switch c 9 case- 1 9 - A=33 3 "trideset i " << switch-a.




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in