www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/10/16:58:41

To: djgpp AT delorie DOT com
Message-ID: <19961209.194348.6911.2.jesusfreak44@juno.com>
From: jesusfreak44 AT juno DOT com (Brian J Landsberger)
Date: Mon, 09 Dec 1996 22:41:34 EST

	Here is a litle database type thing, and it bugs up ..... why ?



+-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
Brian James Landsberger
jesusfreak44 AT juno DOT com
http://linknet.kitsap.lib.wa.us/~bbsnet
+-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+



/* Code starts here */


#include <stdio.h>
struct entry {
	char fname[20];
	char lname[20];
	char phone[10];
	};
struct entry list[4];
int i;
main()
{
for (i=0; i<4;i++)
	{
	printf("\nEnter first name: ");
	scanf("%s",list[i].fname);
	printf("\nEnter last name: ");
	scanf("%s",list[i].lname);
	printf("Enter phone in XXX-XXXX format: ");
	scanf("%s",list[i].phone);
	}
	printf("\n\n");
	for (i=0;i<4;i++)
	{
	printf("Name: %s %s",list[i].fname,list[i].lname);
	printf("\t\tPhone: %s\n", list[i].phone);
	}
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019