home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18918 < prev    next >
Encoding:
Text File  |  1992-12-27  |  742 b   |  26 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!news.ysu.edu!do-not-reply-to-path
  3. From: ah017@yfn.ysu.edu (John B. Lee)
  4. Subject: Need help with string arrays
  5. Message-ID: <1992Dec27.232512.22474@news.ysu.edu>
  6. Sender: news@news.ysu.edu (Usenet News Admin)
  7. Nntp-Posting-Host: yfn.ysu.edu
  8. Organization: Youngstown State University/Youngstown Free-Net
  9. Date: Sun, 27 Dec 1992 23:25:12 GMT
  10. Lines: 14
  11.  
  12.  
  13. In a current program that I am writing I have an array declaration
  14. that looks like this:
  15.  
  16. char names[][4];
  17.  
  18. How would I use the gets() function to put a string into this array.
  19. Am I declaring the array correctly to receive five strings?  << This
  20. is what I'm trying to do.
  21.  
  22. John Lee
  23. usr7245a@cbos.uc.edu
  24. ah017@yfn.ysu.edu
  25. -- 
  26.