stoneharry

Untitled

Nov 11th, 2012
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. char GuestNames[101][2002];
  2.  
  3. void HandleNameInput(int n) // n = room number
  4. {
  5.     char FullName[100];
  6.     int i = 0;
  7.  
  8.     printf("Please input your first and last names seperated by a space.\n\n");
  9.  
  10.     scanf("%s%s", &FullName);
  11.  
  12.     for (i = 0; i < 100; i++)
  13.     {
  14.         GuestNames[i][n] = FullName[i];
  15.     }
  16.  
  17.     printf("\nYour name has been successfully saved. Thank you.\n\n");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment