Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
Hi😍😍😍😍
#includeusing namespace std; class student{ private: char name[50]; int roll; int phy; int chem; int math; public: void set_a1(char name1[],int roll1){ strcpy(name,name1); roll=roll1; } void set_a2(int phy1,int chem1,int math1){ phy=phy1; chem=chem1; math=math1; } float get_a(){ return((float(phy+chem+math)/300)*100); } void Display(){ cout
#include using namespace std;class Node {public: int data; Node* next; Node() { data = 0; next = NULL; }};class LinkedList {public: Node* head; LinkedList() { head = NULL; } void insertNode(int data) { Node* newNode = new Node; newNode->data = data; newNode->next = NULL; if (head == NULL) { head = newNode; return; } Node* temp = head; while (temp->next != NULL) { temp = temp->next; } temp->next = newNode; } void mergeLists(LinkedList list2) { Node* temp1 = head; Node* temp2 = list2.head; while (temp2 != NULL) { Node* temp = temp1->next; temp1->next = temp2; temp2 = temp2->next; temp1->next->next = temp; temp1 = temp; } } void displayList() { Node* temp = head; while (temp != NULL) { cout data next; } cout
#includeusing namespace std;#define maxi max_element#define mini min_element#define p coutint s[100] ;int idx = -1 ;void push(int c){ idx++ ; s[idx] = c ;}void pop(){ idx-- ;}int top(){ return s[idx] ;}bool empt(){ if(idx == -1) return true ; return false ;} main(){string a;int n;cin>>a;n=a.size();fo(i,n){ if(a[i]=='*'||a[i]=='/'||a[i]=='+'||a[i]=='-') { int c=top(); pop(); int b=top(); pop(); if(a[i]=='*')push(c*b); else if(a[i]=='+')push(c+b); else if(a[i]=='-')push(c-b); else push(b/c); } else {push(a[i]-'0'); // p
420
B2 er code#includeusing namespace std;class A;class B{ int y;public: void set_data(int a) { y=a; } friend void max(A,B);};class A{ int x;public: void set_data(int a) { x=a; } friend void max(A,B);};void max(A a, B b){ if(a.x>b.y)cout
Hi😍😍😍😍
#include
using namespace std;
class student{
private:
char name[50];
int roll;
int phy;
int chem;
int math;
public:
void set_a1(char name1[],int roll1){
strcpy(name,name1);
roll=roll1;
}
void set_a2(int phy1,int chem1,int math1){
phy=phy1;
chem=chem1;
math=math1;
}
float get_a(){
return((float(phy+chem+math)/300)*100);
}
void Display(){
cout
#include
using namespace std;
class Node {
public:
int data;
Node* next;
Node() {
data = 0;
next = NULL;
}
};
class LinkedList {
public:
Node* head;
LinkedList() {
head = NULL;
}
void insertNode(int data) {
Node* newNode = new Node;
newNode->data = data;
newNode->next = NULL;
if (head == NULL) {
head = newNode;
return;
}
Node* temp = head;
while (temp->next != NULL) {
temp = temp->next;
}
temp->next = newNode;
}
void mergeLists(LinkedList list2) {
Node* temp1 = head;
Node* temp2 = list2.head;
while (temp2 != NULL) {
Node* temp = temp1->next;
temp1->next = temp2;
temp2 = temp2->next;
temp1->next->next = temp;
temp1 = temp;
}
}
void displayList() {
Node* temp = head;
while (temp != NULL) {
cout data next;
}
cout
#include
using namespace std;
#define maxi max_element
#define mini min_element
#define p cout
int s[100] ;
int idx = -1 ;
void push(int c){
idx++ ;
s[idx] = c ;
}
void pop(){
idx-- ;
}
int top(){
return s[idx] ;
}
bool empt(){
if(idx == -1) return true ;
return false ;
}
main()
{
string a;
int n;
cin>>a;
n=a.size();
fo(i,n)
{
if(a[i]=='*'||a[i]=='/'||a[i]=='+'||a[i]=='-')
{
int c=top();
pop();
int b=top();
pop();
if(a[i]=='*')push(c*b);
else if(a[i]=='+')push(c+b);
else if(a[i]=='-')push(c-b);
else push(b/c);
}
else {push(a[i]-'0');
// p
420
B2 er code
#include
using namespace std;
class A;
class B
{
int y;
public:
void set_data(int a)
{
y=a;
}
friend void max(A,B);
};
class A
{
int x;
public:
void set_data(int a)
{
x=a;
}
friend void max(A,B);
};
void max(A a, B b)
{
if(a.x>b.y)cout