From 06138a7bd764b25afbc3873a8621dfe522d531b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Wed, 5 Nov 2014 10:21:08 +0800 Subject: [PATCH] update --- TinySTL/Test/PairTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/TinySTL/Test/PairTest.cpp b/TinySTL/Test/PairTest.cpp index c8eb905..01fe5fc 100644 --- a/TinySTL/Test/PairTest.cpp +++ b/TinySTL/Test/PairTest.cpp @@ -4,7 +4,8 @@ #include "..\String.h" using namespace TinySTL; -int main(){ + +void testPair(){ // test ctor pair product1; // default constructor pair product2("tomatoes", 2.30); // value init @@ -40,6 +41,4 @@ int main(){ if (foo> bar) std::cout << "foo is greater than bar\n"; if (foo <= bar) std::cout << "foo is less than or equal to bar\n"; if (foo >= bar) std::cout << "foo is greater than or equal to bar\n"; - system("pause"); - return 0; } \ No newline at end of file