Any idee how to do this ?

C++ has no type long long, that is a C99 type

If your compiler supports long long , you may

  • get lucky with std::stringstream
  • have strtoll() at your disposal

Though, as Banfa noted, your code will not be standard C++.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.