User Profile
Collapse
-
I can try what is it about ? -
could tell others to help me please. -
can u help me in my program -
//Author: Jerry Ebanks
//Name of Program: ATM Exam(CIS4)
/*
Purpose:The ATM machine can perform three basic functions:1)Dep osit; 2) Withdraw; and 3)View current balance
*1) After each deposit and withdrawal the system should display the amount deposited/withdrawn and
*the Current Balance.
*2) Display the current balance if option (3) Statement is chosen.
*/
//Date 10th/12.08...Leave a comment:
-
Why won't my code append data to file
i created an atm machine but the problem now is that it overwrites the file that contains the pin number information. for example,
printf("Enter pin");
scanf("%d",&pin );
inputfile=fopen ("cus_info","r" );
lets say the text contains: 101 400
102 400
103 400
400... -
-
please can anyone help me.
the idea of the program is to be like
printf("Enter your pin muber:");
but i need to use one of these values in the file i created:
#include <stdio.h>
int main()
{
FILE *customer_infor mation;
char pin_number[4]={101,102,103,1 04};
int test;
customer_inform ation=fopen("cu stomer_informat ion.txt","w");
... -
i would like to use char or has a string only and not int for the pin number. could i do that and now. please.Leave a comment:
-
C an ATM
hello. am new in this forum but i notice that u have dissucions about c so i am wondering if anyone can help me in doing an ATM program using file I/O. i know how to create a text file and use it but i dont know how to make it read one at a time. for example: this is my starting program.
#include <stdio.h>
int main()
{
FILE *customer_infor mation;
char pin_number[4]={101,102,103,1 04};
...
No activity results to display
Show More
Leave a comment: