User Profile

Collapse

Profile Sidebar

Collapse
jerryandchandan
jerryandchandan
Last Activity: Dec 8 '08, 05:39 PM
Joined: Dec 2 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • CodecSmash49
    CodecSmash49 posted a Visitor Message for jerryandchandan
    I can try what is it about ?
    See more | Go to post

  • jerryandchandan
    replied to Why won't my code append data to file
    in C
    could tell others to help me please.
    See more | Go to post

    Leave a comment:


  • jerryandchandan
    jerryandchandan posted a Visitor Message for CodecSmash49
    can u help me in my program
    See more | Go to post

  • jerryandchandan
    replied to Why won't my code append data to file
    in C
    //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...
    See more | Go to post

    Leave a comment:


  • jerryandchandan
    started a topic Why won't my code append data to file
    in C

    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...
    See more | Go to post

  • jerryandchandan
    replied to C an ATM
    in C
    i have but i dont understand the concept
    See more | Go to post

    Leave a comment:


  • jerryandchandan
    jerryandchandan posted a Visitor Message for jerryandchandan
    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");
    ...
    See more | Go to post

  • jerryandchandan
    replied to C an ATM
    in C
    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.
    See more | Go to post

    Leave a comment:


  • jerryandchandan
    started a topic C an ATM
    in C

    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};
    ...
    See more | Go to post
No activity results to display
Show More
Working...