diff Bison-Flex/Compiler-StackBase/UTF8/file.txt @ 6:86c0a38332fe

update
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 17 May 2011 18:26:00 +0900
parents 805d39d28230
children
line wrap: on
line diff
--- a/Bison-Flex/Compiler-StackBase/UTF8/file.txt	Tue May 17 12:45:07 2011 +0900
+++ b/Bison-Flex/Compiler-StackBase/UTF8/file.txt	Tue May 17 18:26:00 2011 +0900
@@ -1,8 +1,14 @@
+void increment(int& x)
+{
+  x += 1;
+}
 int main()
 {
-  int a, b;
-  a = 20;	
-  b = 30;
-
-  return a;
+  int i,x;
+  x = 0;
+  for(i=0; i<5; i+=1)
+    {
+      increment(x);
+    }
+  return x;
 }