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:

Running QNX on emulated cortex-a15 using QEMU

Running QNX on emulated cortex-a15 using QEMU General information: - Host (for running QEMU) OS: Ubuntu 24.04.2 LTS - QEMU: QEMU emulator...