Last change
on this file since 92 was
38,
checked in by lemeur, 12 years ago
|
premiere version pour la creation d'un input parmela
|
File size:
374 bytes
|
Line | |
---|
1 | #ifndef MIXEDTOOLS_SEEN |
---|
2 | #define MIXEDTOOLS_SEEN |
---|
3 | |
---|
4 | #include <iostream> |
---|
5 | #include <sstream> |
---|
6 | #include <string> |
---|
7 | |
---|
8 | |
---|
9 | class mixedTools |
---|
10 | { |
---|
11 | public: |
---|
12 | |
---|
13 | static string doubleToString(double x) |
---|
14 | { |
---|
15 | std::ostringstream ostr; |
---|
16 | ostr << x; |
---|
17 | return ostr.str(); |
---|
18 | } |
---|
19 | static string intToString(int x) |
---|
20 | { |
---|
21 | std::ostringstream ostr; |
---|
22 | ostr << x; |
---|
23 | return ostr.str(); |
---|
24 | } |
---|
25 | }; |
---|
26 | |
---|
27 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.