fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. class Student{
  4. int rollno;
  5. public:
  6. Student(int r) : rollno(r){
  7. cout<<"rollno "<<r<<endl;
  8. }
  9. };
  10. int main(){
  11. Student jeysri(203),mona(261),vaas(271);
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5424KB
stdin
Standard input is empty
stdout
rollno 203
rollno 261
rollno 271