hi,

how can i prevent piping from the command line? piping occurs both in windows and unix so its OS independent.

so far i'm thinking this but this code doesn't work:

Code:
#include <iostream>
#include <string>
using namespace std;

int main(int argc, char* argv[])
{
	string temp_string;
	for(int i=0; i<argc; i++)
	{
		temp_string = argv[i];
		if(temp_string == ">")
		{
			exit(99);
		}
		else
		{
			continue();
		}
	}
return 0;
}
any suggestions?