Yes, it happens also with a small program. For example:
Code:
#include <stdio.h>
#include <math.h>
#include <vector>
#include <pthread.h>
#include <iostream>
using namespace std;
int size;
vector<int> X(100);
int prime(int n)
{
bool a=true;
for(int i=2; i<n; i++)
{
if (n%i==0)
{
a=false;
break;
}
}
if (a==false)
cout << n << " is not prime";
else
cout << n << "is prime";
return 0;
}
int main()
{
int k;
cout << "give the size" << "\n";
cin >> size;
cout << "give the elements" << "\n";
for (k=0; k<size; k++)
{
cin >> X[k];
}
for(k=0; k<size; k++)
{
cout << prime(X[k]) << "\n";
}
}
Next to the cpp file appears always a box "ostream".I have looked in the code of iostream and the part between
Code:
#if defined(_DLL_CPPLIB) && !defined(_M_CEE_PURE)
template class _CRTIMP2_PURE basic_ostream<char, char_traits<char> >;
template class _CRTIMP2_PURE basic_ostream<wchar_t, char_traits<wchar_t> >;
#endif
is inactive!! i don't know why.I'm quite new in programming..and another thing is that don't appear the precompiled headers!! are disabled??