No, I would expect something like this:

Code:

#include<iostream>
#include<vector>
using namespace std;
int main() {
int n = 3, m;
vector<int> primes(0);
bool op = 1;
primes.push_back(2);
primes.push_back(3);
while (n < 200) {
n++;
for (m = n - 1; m > 1; m--)
if (n % m == 0) {
op = 0;
break;
}
switch(op) {
case 0: op = 1; break;
case 1: primes.push_back(n); break;
}
}
m = 0;
do {
cout << primes[m] << endl;
m++;
} while (m < primes.size());
cin.get();
}

Actually, I might have written it as:

Code:

#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> primes;
primes.push_back(2);
primes.push_back(3);
for (int n = 4; n <= 200; ++n) {
bool is_prime = true;
for (int m = n - 1; m > 1; --m) {
if (n % m == 0) {
is_prime = false;
break;
}
}
if (is_prime) {
primes.push_back(n);
}
}
for (vector<int>::size_type m = 0, size = primes.size(); m < size; ++m) {
cout << primes[m] << endl;
}
cin.get();
}