fork download
  1. # include <iostream>
  2. # include <cstring>
  3. using namespace std;
  4. class Student {
  5. public:
  6. char imya[10];
  7. };
  8.  
  9. int main() {
  10. Student s;
  11. strcpy(s.imya, "Vasya Pupkin");
  12. printf("Imya: %s\n", s.imya);
  13. return 0;
  14. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
Imya: Vasya Pupkin