1 #include"tool.h" 2 void main(){ 3 plus(1,2); 4 }
1 #include"tool.h" 2 void plus(int a,int b){ 3 printf("%d + %d = %d",a,b,a+b); 4 }
1 #include<stdio.h> 2 3 void plus(int a,int b);
main.cpp
tool.cpp
tool.h
标签:color clu std style print cpp body blog post
1 #include"tool.h" 2 void main(){ 3 plus(1,2); 4 }
1 #include"tool.h" 2 void plus(int a,int b){ 3 printf("%d + %d = %d",a,b,a+b); 4 }
1 #include<stdio.h> 2 3 void plus(int a,int b);
main.cpp
tool.cpp
tool.h
标签:color clu std style print cpp body blog post
原文地址:http://www.cnblogs.com/liuyunbuji/p/8045795.html