My linux world » convert

convert


MyClass.h

#include <string>
 
class __declspec(dllexport) Convert {
 
public: 
  static std::string shortToString(unsigned short elt);
  static std::string wordToString(WORD elt);
};

MyClass.cpp

std::string Convert::shortToString(unsigned short elt) {
  std::stringstream ss;
  ss << elt;
  return ss.str();
}
 
std::string Convert::wordToString(WORD elt) {
  std::stringstream ss;
  ss << elt;
  return ss.str();
}

Copyright © 2024 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.