Samchon Framework for CPP  1.0.0
string_util_main.cpp
1 #include <samchon/library/StringUtil.hpp>
2 
3 #include <iostream>
4 
5 using namespace std;
6 using namespace samchon::library;
7 
8 #ifdef _WIN64
9 # ifdef _DEBUG
10 # pragma comment(lib, "x64/Debug/SamchonFramework.lib")
11 # else
12 # pragma comment(lib, "x64/Release/SamchonFramework.lib")
13 # endif
14 #else
15 # ifdef _DEBUG
16 # pragma comment(lib, "Debug/SamchonFramework.lib")
17 # else
18 # pragma comment(lib, "Release/SamchonFramework.lib")
19 # endif
20 #endif
21 
22 void main()
23 {
24  string name = "Samchon Framework";
25  unsigned short major = 1;
26  int minor = 0;
27  long patch = 0;
28 
29  cout <<
30  StringUtil::substitute
31  (
32  "{1}: v{2}.{3}.{4}; Since {5}, {6}",
33  name, major, minor, patch,
34  "December", 2012
35  ) << endl;
36 
37  system("pause");
38 }
Definition: RWMutex.hpp:4
Package of libraries.
Definition: library.hpp:84