Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

switch cout print with a prameter c++

switch(1) {
    case 1 : cout << '1'; // prints "1"
             break;       // and exits the switch
    case 2 : cout << '2';
             break;
}
Source by en.cppreference.com #
 
PREVIOUS NEXT
Tagged: #switch #cout #print #prameter
ADD COMMENT
Topic
Name
3+8 =