Thread: Libraries useful to operate on files - banking system.

  1. #1
    Registered User
    Join Date
    May 2016
    Posts
    2

    Libraries useful to operate on files - banking system.

    Hello guys. I have to write a program imitating a simple banking system working on console. To be honest my only problem are libraries which may be useful, since i want to do this smart. The system should be able to do operations like withdrawal etc. (no problem) and it should save the data like acc numbers, balance etc to a binary file. Operating on file as such shouldn't be a problem (algorithms and so), but i'd like to learn some useful functions / libraries which can help me make it a bit smarter. I know that google doesn't hurt but when i tried to look this up all i got was links to basic operating on files, so no use for me.
    I'd really appreciate every help .

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    How smart is smart?

    This kind of homework normally expects only standard library support (stdio.h, stdlib.h, string.h etc).

    Sure, you can make it pretty by using say ncurses, or maybe you fancy adding some sound effects or network capability.

    If you want some advice, concentrate on getting the core functionality finished and working. Then use whatever time you have remaining to plan an exercise in making it "better". A pretty program that doesn't work is useless.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    May 2016
    Posts
    2
    I dont think you see what i mean. I dont want to just make it pretty without even knowing what im doing. I can make it using simple functions, but i dont want to invent the wheel all over again. Besides that i want to know more libraries better. And yeah, im sure sound effects in console application are very usefull, but i just want to know how to make it properly.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    I can't see how you need much more than fopen/fclose/fread/fwrite/qsort and the usual printf/scanf

    I'm sure you could contrive the need to use say strcspn(), setjmp() or signal() but why?

    You're not going to achieve "how to make it properly" by doing so. Unless the problem actually calls for those functions, you just end up with a contrived mess.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Customer Account banking system error with variable input
    By Vincent Dotts in forum C++ Programming
    Replies: 3
    Last Post: 10-01-2014, 06:59 AM
  2. Banking System
    By david123456 in forum C++ Programming
    Replies: 9
    Last Post: 11-22-2012, 12:57 PM
  3. Banking System
    By punnuindia in forum C++ Programming
    Replies: 9
    Last Post: 04-01-2009, 05:05 PM
  4. Replies: 5
    Last Post: 10-08-2007, 09:44 AM
  5. Develop new Investment Banking Trading System in Singapore
    By pclyne in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 11-14-2005, 08:32 PM

Tags for this Thread