16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 17:09:19 +02:00

Poprawki do działania tabelki rozkładów. Poprawka funkcji konwersji int na string.

This commit is contained in:
firleju
2016-09-12 22:10:13 +02:00
parent 803cefc71d
commit 38f25f5235
5 changed files with 21 additions and 16 deletions

View File

@@ -23,7 +23,7 @@ http://mozilla.org/MPL/2.0/.
#include "Console.h"
#include <Controls.hpp> //do odczytu daty
#include "World.h"
#include <ostream>
// namespace Global {
// parametry do u¿ytku wewnêtrznego
@@ -921,10 +921,9 @@ double Global::CutValueToRange(double min, double value, double max)
std::string Global::to_string(int _Val)
{
std::string str;
int num = 3;
sprintf((char*)str.c_str(), "%d", _Val);
return str;
std::ostringstream o;
o << _Val;
return o.str();
};
#pragma package(smart_init)