practice++

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int count = 0; extern void countUp(); extern int max(); int main() { cout << "Hello World!\n"; for(int i = 0;i<5;i++){ static int j = i; j += 10; cout << j << "\n"; } short unsigned int x = 50000; short int y = x; cout << x << "\t" << y << endl; countUp(); int j[] = {1,2,3}; for(int& ex : j){ //for each :: for(type& var : list){...} cout << ex; } int var = 0; var = (var < 10) ? 10 : 0; //? conditional :: ex1 ? ex2 : ex3 cout << endl << var << endl; cout << max(5,12) << endl; }
#include <iostream> using namespace std; extern int count; void countUp(void){ count += 10; cout << count << endl; } int max(int x, int y){ return (x>y) ? x : y; }
Editor Settings
Theme
Key bindings
Full width
Lines