![]() |
Maintain bank record.
C++ program to maintain bank record.
The program is not complete as there are a couple of options to be added but the program now should and does run except a little problem with two statements. the statements commented do not show up on the output screen and generates warnings Code:
|
Re: Maintain bank record.
In line no..42 and 48 u hav forgot the '<' while writting the cout
check out for the syntax... use using namespace std; for less errors.. a very gud programming.... hav a gud day..... |
Re: Maintain bank record.
i think there is a error while we are inputting the name of the acc. holder
u should flash ur memory before u go for taking the input...check this out.. hav a gud day.. |
Re: Maintain bank record.
Thank you for pointing out the error.
i completely forgot to check that out. will use your advice but i never really understood what using namespace std was used for. |
Re: Maintain bank record.
Quote:
If he is compiling on Turbo C++, he would get even more errors by adding that line. @ kpsg25690 :: From your code, I think you use Turbo C++. If you use Turbo C++, don't add that line. If you use ANSI C++, you have to make *many* modifications, 'coz your code doesn't conform to it's specifications. FYI, using namespace std in ANSI C++ allows you to access the members of std namespace directly. It is required because in ANSI C++ the cout, cin and many such commands are inside the std namespace. So, you can either write std.cout / std.cin every time or, you can simply write using namespace std; |
Re: Maintain bank record.
yes u are right...saswatpadhi...
i actully hav forgot that....thanx for reminding me again... hav a gud day.... |
Re: Maintain bank record.
thank you for the suggestions guys..
FYI i use turbo c++, SaswatPadhi is right if i use using namespace std it will give me more errors. :happy: |
Re: Maintain bank record.
Line 18: error: conio.h: No such file or directory
Line 20: error: process.h: No such file or directory t.cpp: In member function 'void bank::deposit()': Line 41: error: no match for 'operator<' in 'std::cout < "\012Enter the sum you want to deposit:"' compilation terminated due to -Wfatal-errors. |
Re: Maintain bank record.
Quote:
The program is targeted for Turbo C++. |
| All times are GMT +5.5. The time now is 04:09. |