Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
3
Posts with Downvotes
1
Downvoting Members
3
2 Commented Posts
0 Endorsements
Ranked #107.41K
~2K People Reached
Favorite Forums
Favorite Tags
c x 1
Member Avatar for nimuns

i have here 2 program the first one #include<stdio.h> [CODE]#include<conio.h> #include<stdlib.h> #include<process.h> struct record{ char acc_name[6]; int pin; float bal; }; void main() { FILE *fp; struct record b; clrscr(); if((fp=open("accounts.dat","wt"))==0) { printf("Error"); exit(1); } printf("Enter account name:"); gets(b.acc_name); printf("Enter account pin:"); scanf("%d",&b.pin); printf("Enter balance:"); scanf("%f",&b.bal); fprintf(fp,"%s %d %.2f",b.acc_name,b.pin,b.bal); fclose(fp); …

Member Avatar for Nick Evan
0
2K