Basic Hello World Program In C++
Sample Output:
Code:
Sample Output:
Code:
/* www.mycfiles.com - Basic Hello World Program In C++ */
#include<iostream.h>
#include<conio.h>
class Hello{
public :
void show(){
cout<<"Hello World I Am In C++";
}
};
void main(){
Hello h; // The Object For Class hello Is "h"
h.show(); //This Is The Syntax To Create Object
getch(); //Class_Name Object_Name
}
Comment bellow for your Query and Feedback#include<iostream.h>
#include<conio.h>
class Hello{
public :
void show(){
cout<<"Hello World I Am In C++";
}
};
void main(){
Hello h; // The Object For Class hello Is "h"
h.show(); //This Is The Syntax To Create Object
getch(); //Class_Name Object_Name
}
No comments:
Post a Comment