ravneravn

test

May 22nd, 2013
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --test
  2.  
  3. project = {}
  4. names = {}
  5.  
  6. for i = 1, 10 do
  7. names[i] = {}
  8. end
  9.  
  10.  
  11.  
  12. function getInputProject(projectName)
  13. input = read()
  14. table.insert(project, input)
  15. end
  16.  
  17.  
  18. function getInputName(project)
  19. input = read()
  20. table.insert(names[project], input)
  21. end
  22.  
  23.  
  24. print("enter project")
  25. getInputProject()
  26. print("a new project")
  27. getInputProject()
  28. print("add a name to project2")
  29. getInputName(2)
  30. print("and one to project1")
  31. getInputName(1)
  32.  
  33. term.clear()
  34.  
  35. print(project)
  36. print(names)
  37. print(names[1][1])
  38. print(names[2][1])
  39. print(names[1])
  40. print(names[2])
RAW Paste Data