fork download
  1. #include <iostream>
  2. #include <map>
  3. #include <string>
  4. int SINGLE_CELL_CAMERA = 1;
  5. typedef std::map<unsigned short, std::pair<char,std::string>> DeviceTypeList;
  6. DeviceTypeList g_DeviceTypeList = {
  7. {(unsigned short)SINGLE_CELL_CAMERA, {'B',"Single Cell Camera"}}
  8. };
  9. int main()
  10. {
  11. std::cout << g_DeviceTypeList[1].first << " " << g_DeviceTypeList[1].second << '\n';
  12. }
  13.  
Success #stdin #stdout 0s 2964KB
stdin
Standard input is empty
stdout
B Single Cell Camera