Course Solutions Uncategorized (Solved) : Please Help Code Supposed Take File Following Format Note Colons Seperators Print Info Fil Q32859462 . . . .

(Solved) : Please Help Code Supposed Take File Following Format Note Colons Seperators Print Info Fil Q32859462 . . . .

 

Please help.

The code below is supposed to take a file of the followingformat:

<name 1>:<street address 1>:<city 1>:<state1>:<zip 1> (Note the colons are seperators)
<name 2>:<street address 2>:<city 2>:<state2>:<zip 2> (and so on) and print out a the info from thefile in a neat format.

EX: Ann Archer:123 Ace Ave.:Ames:AL:12345 andprint it outas:                                                                             

Ann Archer
123 Ace Ave.
Ames, AL 12345

The problem is that it doesn’t print the words right. Iwondering if I could be shown what to do to fix it.

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX_NAME_LENGTH 32
#define MAX_ADDRESS_LENGTH 64
#define MAX_CITY_LENGTH 16
#define STATE_LENGTH 3

struct snippet {
   char name [MAX_NAME_LENGTH];
   char addr [MAX_ADDRESSS_LENGTH];
   char city [MAX_CITY_LENGTH];
   char state

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post