CN_ASSIGNMENT/Practice/1.cpp
// cls returns class of given IP address
cls returns class of given IP address
cls returns class of given IP address
char cls(vector<string> str)
	{
		int a = stoi(str[0]);
		if (a >= 0 && a <= 127)
			return ('A');
		else if (a >= 128 && a <= 191)
			return ('B');
		else if (a >= 192 && a <= 223)
			return ('C');
		else if (a >= 224 && a <= 239)
			return ('D');
		else
			return ('E');
	}
char cls ( vector < string > str ) { int a = stoi ( str [ 0 ] ) ; if ( a >= 0 && a <= 127 ) return ( ' ' ) ; else if ( a >= 128 && a <= 191 ) return ( ' ' ) ; else if ( a >= 192 && a <= 223 ) return ( ' ' ) ; else if ( a >= 224 && a <= 239 ) return ( ' ' ) ; else return ( ' ' ) ; }
cls returns class of given IP address
cls returns class of given IP address