compiling errors !

Hi guys !

Does anyone know what the following error means ?

fatal error C1083: Cannot open include file: 'process': No such file or directory

Any reply is apreciated.
It means what it says.
Did you forget to type the extension?

It will always be more helpful if you post your code.
I meant what can I do to avoid this error.

Ok... here's the code :

#include "stdafx.h"
#include <iostream>
#include <process>
#define SIZE 20;

using namespace std;


class stack
{
int a[SIZE];
int tos;

public:
stack();
void push(int);
int pop();
int isempty();
int isfull();
};

stack::stack()
{
tos = 0; // Initialize top of the stack
}

int stack::isempty()
{
return (tos == 0 ? 1:0) ;
}


int stack::isfull()
{
return ( tos == SIZE ? 1:0);
}

void stack::push(int i)
{
if ( !isfull() )

a[tos++] = i;

else
cerr << " Stack overflow ! Possible data loss \n";
}


void stack::pop()
{
if( !isempty() )

return a[tos--] = i;

else
cerr << " Stack is empty ! What to pop ?? \n ";
}


int _tmain(int argc, _TCHAR* argv[])
{
stack s;
int ch = 1, num;

while( ch )
{
cout << " Stack operations menu : \n
1. Push \n
2. Pop \n
3. Isfull \n
4. Isempty \n
0. Exit " ;

cin >> ch ;

switch ( ch ):
{
case 0:
exit (1);

case 1:
cout << " Enter the number to push \n";
cin >> num;
s.push( num );
break;
case 2:
cout << " The number you popped is : " << s.pop() << " \n ";
break;

case 3:
( s.isfull() ) ? ( cout << " Stack isn't full \n" ) : ( cout << "Stack is full \n " );
break;

case 4
( s.empty() ) ? ( cout << " Stack isn't empty \n" ) : ( cout << "Stack is empty \n " );
break;

default:
cout << " Illegal option. Please try again \n"
}

return 0;
}
Did you mean <process.h>? I don't know if that particular header is part of the C++ standard, though.
Topic archived. No new replies allowed.