- int
- main(void)
- {
- int num;
- vector< int >ivec;
while( cin >> num )
ivec.push_back(num);
cout << "Please input the number you want to count:"
cin >> num;
cout << num << " appears " << count(ivec.begin(), ivec.end(), num) << " times!" << endl;
return 0;
- }