Message from C, C++ talks

June 2019

— User Muhd has 1/3 warnings; be careful!
The latest warn was because:
read the rules

— I wonder what phones they use

— OMFG! That's beyond hilarious

— Everytime he's saying sir to a lady

— 

#include<iostream>
using namespace std;
class Person{
public:
string name;
int age;
double height;
double weight;
};
void ModifyPerson(string);
void passByValue(int);
void passByRef(int &);

int main(){
int num1 = 3;
int *pNum = new int;
*pNum = 5;
void passByValue(int num1);
cout<<"Value of num1 is "<<num1<<endl;
void passByRef(int &pNum);
cout<<"Back to the main"<<endl;
cout<<"Value of pNum in main function "<<*pNum<<endl;
double *pDouble = new double;
*pDouble = 90.5;
cout<<"Value in pDouble"<<*pDouble<<endl;
delete pDouble;
cout<<"Value in pDouble "<<pDouble<<endl;
Person Ayush;
Ayush.age = 21;
Ayush.height = 5.3;
Ayush.name = "Mittal";
Ayush.weight = 70;
cout<<"Age is "<<Ayush.age<<endl;
cout<<"Height is "<<Ayush.height<<endl;
cout<<"Name is "<<Ayush.name<<endl;
cout<<"Weight is "<<Ayush.weight<<endl;
void ModifyPerson(Ayush);
cout<<"Name is "<<Ayush.name<<endl;
}
void passByValue(int num1){
cout<<"In passByValue function "<<endl;
cout<<"Value of num1 is "<<num1<<endl;
num1++;
cout<<"Value of num1 now: "<<endl;
}
void passByRef(int &pNum){
cout<<"In passByRef function "<<endl;
*pNum = 50;
cout<<"Value of pNum "<<*pNum<<endl;
}
void ModifyPerson(Ayush){
Ayush.name = "Anuj";
}

— Can anyone tell me the error solution

— No

— This was the question

— User Puneet has 1/3 warnings; be careful!
The latest warn was because:
read the rules

— Hi

— Welcome

— Everyone is having different phones mi, Iphone, Moto, One plus .....

— Anyone know how to do virtual folders in VSCode?

— Language is easy with great concept

— Yes