summaryrefslogtreecommitdiff
path: root/gi/scfg/abc/tmp.cpp
diff options
context:
space:
mode:
authorlinh.kitty <linh.kitty@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-13 20:20:55 +0000
committerlinh.kitty <linh.kitty@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-13 20:20:55 +0000
commit298eed4f842bcc01b392a40c4a316110a6347f6c (patch)
tree3b2f4df81bafc58138c7b8f278eae0fc2241eb42 /gi/scfg/abc/tmp.cpp
parent19dc80f89a047b09010187f2306c85a16b25f575 (diff)
linh added
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@241 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/scfg/abc/tmp.cpp')
-rw-r--r--gi/scfg/abc/tmp.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/gi/scfg/abc/tmp.cpp b/gi/scfg/abc/tmp.cpp
new file mode 100644
index 00000000..967a601d
--- /dev/null
+++ b/gi/scfg/abc/tmp.cpp
@@ -0,0 +1,36 @@
+#include <iostream>
+#include <set>
+#include <vector>
+using namespace std;
+
+int x = 5;
+
+class A{A(){x++;}};
+// {
+// int a_;
+
+// };
+
+class B: public A{
+
+ int b_;
+};
+
+int main(){
+
+ cout<<"Hello World";
+ set<int> s;
+
+ s.insert(1);
+ s.insert(2);
+
+ x++;
+ cout<<"x="<<x<<endl;
+
+ vector<int> t;
+ t.push_back(2); t.push_back(1); t.push_back(2); t.push_back(3); t.push_back(2); t.push_back(4);
+ for(vector<int>::iterator it = t.begin(); it != t.end(); it++){
+ if (*it ==2) t.erase(it);
+ cout <<*it<<endl;
+ }
+}