C++ Simple Program Using function call (function call concept) - HelpMeOutAlways

Thursday, October 4, 2018

C++ Simple Program Using function call (function call concept)


Source Code

#include<iostream>
#include<conio.h>
using namespace std;
void starline(){
for(int i=1;i<80;i++){
cout<<"*";
}
}
int main(){
starline(); //fulnction calll
string name;
cout<<"\n Enter Your Name:"<<endl;
getline(cin,name);
starline(); //function call for stars
string uni_name;
cout<<"\nEnter Your University Name:"<<endl;
getline(cin,uni_name);
starline(); //function call for stars
int std_id;
cout<<"\nEnter Your Student Id"<<endl;
cin>>std_id; /// function call for stars
starline();

getche();
}

Output

c++ object oriented programming using function call


No comments:

@way2themes