MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / showVector

Function showVector

STL/vector.cpp:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace std;
5
6void showVector(vector<int> &vt)
7{
8 printf("%ld elements: ", vt.size());
9 for (int item : vt) {
10 cout << item << ' ';
11 }
12 cout << endl;
13}
14
15int main()
16{

Callers 1

mainFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected