Category: C++
From this two video I tried to re learn and implement the algorithm with pseudo code. Pseudocode:…
C++ precision example: #include<iostream> #include<iomanip> using namespace std; int main() { double f; f=3.12159; cout<<f<<‘\n’; cout<<setprecision(3)<<f<<endl; cout<<setprecision(5)<<f<<endl;…
C++ is a OOP Version of C… A class is a blueprint of an object…..Basically a object…
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…
Recent Comments