Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Zero
#include <iostream> #include <iomanip> using namespace std; struct presetW { int aimkey=0; int aim=0; bool turn = 0; }; struct presetZ { int aimkey = 0; int aim = -1; bool turn = true; }; int main(int argc, const char * argv[]) { presetW* preset_array = new presetW[8]; presetZ* preset_arraz = new presetZ[8]; for(int i = 0; i < 8; ++i) cout << preset_array[i].aim << preset_array[i].aimkey << preset_array[i].turn << " " << preset_arraz[i].aim << preset_arraz[i].aimkey << preset_arraz[i].turn << endl; }
run
|
edit
|
history
|
help
0
MSVC14 <experimental/generator> header
0004
div64 inline asm
decltype_lambda
MSVC14 <exception> header
sample ptr and obj ex
iterator by value, by reference
C++ move/copy constructor and assignment demo
MSVC C2888 bug
Redeclare with auto