31 lines · 630 B · Text
RawDownload
// instantiate int arrayfloat argh[0]; // print out relevant info<<< "array size:", argh.size() >>>; // append items (array should grow dynamically as needed)argh << 3.0 << 4 << 5; // print out relevant info<<< "array size:", argh.size() >>>; // print out elements<<< "contents:", argh[0], argh[1], argh[2] >>>; // pop last elementargh.popBack(); // print out relevant info<<< "array size:", argh.size() >>>; argh << 6 << 7 << 8; // pop middle elementargh.popOut(2); // print array<<< "printing remaining elements of array..." >>>;for (0 => int i; i < argh.size(); i++) {    <<< "elem", i, "-", argh[i] >>>;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t