Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  gg
Language: C/C++
Code:
#include <iostream>
#include <vector>

using namespace std;

int arrLength(std::vector<int>& array) {

     //cout << "Length: " << *array.end() << endl;

     for(auto i = array.begin(); i < array.end(); ++i)
     {
          cout << "Result: " << (*i) << endl;
     }
}

int main() {
     std::vector<int> numbers = {1, 3, 6, 8, 10, 35, 546, 324};
     arrLength(numbers);
}
Comments: