Category: Language
C++ is a OOP Version of C… A class is a blueprint of an object…..Basically a object…
A ll Codes, C++, OOP
struct Books{ char title[50]; char author[50]; char subject[100]; int book_id; }book; #include<iostream> #include<cstring> using namespace std; struct…
I/O stream: #include<iostream> using namespace std; int main(){ char name[50],age; cout<<“enter name:”; cout<<“Age:”; cin>>name>>age; cout<<“Name: “<<name<<endl<<“Age: “<<age<<endl;…
#include<iostream> using namespace std; int main() { int i; double d; int &r=i; double &s=d; i=5; cout<<“Value…
Actually C++ strings are two types 1. Traditional C style character string 2. String class type Introduces…
I tried to clear here my logic for pointer basic #include<iostream> using namespace std; int main(){ int…
Recent Comments