fork download
  1. #include <iostream.h>
  2. #include<stdio.h>
  3. #include<string.h>
  4.  
  5.  
  6. struct person
  7. {
  8. char name[50];
  9. int age;
  10. float salary;
  11. };
  12.  
  13. int main() {
  14. person p1;
  15. cout<<"enter full name";
  16. cin.getline(p1.name,50);
  17. cout<<"enter age";
  18. cin>>p1 age;
  19. cout<<"enter salary";
  20. cin>>p1 salary;
  21. cout<<"\n display information:"<<endl;
  22. cout<<"\n p1 name:"<<endl;
  23. cout<<"\n p1 salary:"<<endl;
  24. return 0;
  25. }
  26.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:22: fatal error: iostream.h: No such file or directory
 #include <iostream.h>
                      ^
compilation terminated.
stdout
Standard output is empty