Saturday, January 25, 2020

CPP: Switch statement

#include <iostream>
using namespace std;
int main()
{
int value = 1;
switch (value)
{
case 1:
cout << "Case : " << value << endl;
break;
default:
break;
}
return 0;
}
view raw switch.cpp hosted with ❤ by GitHub


To build:
$: clang++ switch.cpp

Run it:
$: ./a.out

No comments:

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04 I am planning to run qemu-system-ppc to play around QEMU ...