35 lines · 504 B · Text
RawDownload
// instantiate a float arrayfloat argh[0]; // print<<< "array size:", argh.size() >>>; // resize4 => argh.size; // print<<< "array size:", argh.size() >>>; // set elements3.0 => argh[0];4 => argh[1];5.0 => argh[2];6 => argh[3]; // print<<< "contents:", "">>>;for( int i; i < argh.size(); i++ )    <<< "argh[", i, "]:", argh[i] >>>; // recap2 => argh.size; // print<<< "array size:", argh.size() >>>; // clear the contentsargh.clear(); // print<<< "array size:", argh.size() >>>; 

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