Answers for "switch case syntax c++"

C#
0

switch cpp

#include<iostream>
using namespace std; 
int main(){
	switch(<espressione>){
		case <costante x>:
			// Istruzioni
			break;
		case <costante y>:
			// Istruzioni
			break;
		case <costante z>:
			// Istruzioni
			break;

		............

		default:
			// Istruzioni
			break;
	}
}
Posted by: Guest on April-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language