Skip to content

Commit 6f56696

Browse files
committed
updated
1 parent 04233a8 commit 6f56696

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

sdata.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#pragma once
2+
#include<bits/stdc++.h>
3+
using namespace std;
4+
class student
5+
{
6+
public:
7+
string name,cls,sec;
8+
int id;
9+
void ipt()
10+
{
11+
cout<<"Roll.no : ";
12+
cin>>id;
13+
cout<<"Name : ";
14+
cin>>name;
15+
cout<<"class : ";
16+
cin>>cls;
17+
cout<<"section : ";
18+
cin>>sec;
19+
20+
}
21+
void pnt()
22+
{
23+
cout<<id<<"\t\t"<<name<<"\t\t"<<cls<<"\t\t"<<sec<<endl;
24+
}
25+
};
26+

0 commit comments

Comments
 (0)