Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. struct person{
  4.     string name;
  5.     int age;
  6. };
  7. int main(){
  8.    
  9.     person ali;
  10.    
  11.     ali . name  = "ali";
  12.    
  13.     ali . age = 30;
  14.    
  15.     cout<<ali . name;
  16.     cout<<"\n"<<ali . age;
  17.    
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement