Advertisement
Guest User

Untitled

a guest
May 16th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 0.72 KB | None | 0 0
  1. CLS
  2. TYPE FriendType
  3. FullName AS STRING * 15
  4. PhoneNumber AS STRING * 14
  5. END TYPE
  6.  
  7. ' Beginning database
  8. DIM Friends(5) AS FriendType
  9.  
  10. ' Fill the database with names and numbers
  11. Friends(0).FullName = "George"
  12. Friends(0).PhoneNumber = "1-347-449-3204"
  13.  
  14. Friends(1).FullName = "Justin"
  15. Friends(1).PhoneNumber = "1-646-709-2001"
  16.  
  17. Friends(2).FullName = "Erik"
  18. Friends(2).PhoneNumber = "1-917-515-3072"
  19.  
  20. Friends(3).FullName = "Dean Mason"
  21. Friends(3).PhoneNumber = "1-609-805-6504"
  22.  
  23. Friends(4).FullName = "Nick Mason"
  24. Friends(4).PhoneNumber = "1-609-805-5045"
  25.  
  26. Friends(5).FullName = "Naor"
  27. Friends(5).PhoneNumber = "1-917-674-2761"
  28.  
  29. FOR I = 0 TO 5
  30.     PRINT Friends(I).FullName; ": "; Friends(I).PhoneNumber
  31. NEXT I
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement