Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. //prototyping a fucntion in c++
  2.  
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. void print (); // function prototype
  8. int main(){
  9.  
  10. print(); // function name
  11. return 0;
  12. }
  13. // function
  14. void print (){
  15.  
  16. cout<< " Hello,World" <<endl;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement