#pragma once 
 | 
  
 | 
//#include <stdio.h> 
 | 
//#include <stdlib.h> 
 | 
//#include <tchar.h> 
 | 
//#include <memory.h> 
 | 
#include "system/base.hpp" 
 | 
#include "xstring.hpp" 
 | 
  
 | 
class xint 
 | 
{ 
 | 
private: 
 | 
    int value; 
 | 
public: 
 | 
    xint(int val = 0) :value(val) {} 
 | 
    xint(double val) :value((int)val) {} 
 | 
    xint(xstring val) :value(val.toInt()) {} 
 | 
public: 
 | 
    operator int() { return value; } 
 | 
    double toDouble() { return (double)value; } 
 | 
    xstring toString() { return xstring(value); } 
 | 
}; 
 |