00001 #include <iostream> 00002 class Version{ 00003 private: 00004 std::string _version; 00005 std::string _name; 00006 00007 00008 public: 00009 Version(){ _name=""; _version="0.0"; } 00010 Version(std::string name,std::string version){ 00011 _name = name; 00012 _version = version; 00013 } 00014 void printVersion(){ 00015 std::cout << _name << " : " << _version << std::endl; 00016 } 00017 00018 };