Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream.h>
- #include<conio.h>
- struct Node
- {
- int NilaiUTS;
- int NilaiUAS;
- int N1, N2;
- };
- Node *P, *Q;
- main()
- {
- clrscr();
- P = new Node;
- P -> N1 = 99;
- Q = new Node;
- Q -> N2 = 78;
- cout<<endl;
- cout<<" nilai P : "<< P -> N1 <<endl;
- cout<<" nilai Q : "<< Q -> N2 <<endl;
- cout<<endl;
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment