Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


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

using namespace std;

vector<int> v;

void pause ()
{
  char stop;
  cin >> stop;
}

void clear ()
{
  system("cls");
}

int main ()
{
  clear();

  int myint;
  cout << "enter int: " << endl;

  do {
    cin >> myint;
    v.push_back(myint);
  } while(myint != 0);

  clear();
  cout << "size: " << v.size() << endl;

  pause();
  return 0;
}
Comments: