|
Post by bashir on Mar 31, 2023 19:06:24 GMT
Attached is Small_Bank_system. So I hope you like it. Most of the ideas here are from Prof Hank
|
|
|
Post by Professor Hank on Apr 1, 2023 14:37:40 GMT
Anything in particular you would like to share about the code? Maybe tell us about it, why you did it, or maybe do a little code walk through?
|
|
|
Post by bashir on Apr 1, 2023 23:57:21 GMT
Just as an idea, through which I wanted to apply the skills I learned from your videos, and if you find any suggestions or shortcomings; Please do guidance.
|
|
|
Post by Professor Hank on Apr 14, 2023 2:51:56 GMT
Pretty cool program. How long did you work on it?
I skimmed over the code and the only thing that jumped out at me is it looks like you have prototypes and function definitions before main(). If you are going to have function prototypes, the function definitions should go AFTER main(). In addition, I noticed you had a global vector definition and file stream object. In general, global variables are bad. You should avoid them if at all possible. Finally, avoid using the system() function. It is not standard C++ and generally doesn't compile anywhere but on a Windows machine.
I like the use of functions and the modularization of your program. Coding style is pretty good too with consistent white space in your blocks.
👍
|
|
|
Post by bashir on Apr 14, 2023 8:11:02 GMT
Welcome, dear teacher. I loved programming and C++ from you. After I had left the field for several years. you inspire me; In your wonderful style. I've worked on the above for a week or less. I know I have many mistakes and shortcomings. But I hope you take my hand in those mistakes. You're great ; And very great. Your instructions are orders for me.
|
|