SHARE
TWEET

Untitled

a guest Jul 16th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using std::cin;
  4. using std::cout;
  5. using std::endl;
  6.  
  7.  
  8.  struct ExampleTad
  9.  {
  10.     unsigned char charr[20];
  11.     unsigned int intarr[20];
  12.  
  13.     ExampleTad (): charr {'x', 'Z'},intarr{1, 2, 3} {};
  14.  };
  15.  
  16. int main ()
  17. {
  18.  
  19.   ExampleTad exvar;
  20.  
  21.   cout << "charr text: " << exvar.charr
  22.        << endl
  23.        << "intarr element: " << exvar.intarr[1];
  24.  
  25.  
  26.   return 0;
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top