add original source

This commit is contained in:
Bo Wang
2014-04-22 21:54:16 -04:00
parent f7a05be5e1
commit 6e45d14431
128 changed files with 5726 additions and 0 deletions

17
source/listing_5.3.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include <iostream>
void foo(int a,int b)
{
std::cout<<a<<,<<b<<std::endl;
}
int get_num()
{
static int i=0;
return ++i;
}
int main()
{
foo(get_num(),get_num());
}