Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~311 People Reached
Favorite Forums
Favorite Tags
c++ x 4
Member Avatar for sohamghosh

I am trying to make a bank C++ program but the problem is that when the program terminates, data is lost and when I start it again, it reinitializes. Can someone tell me how to save the information in my harddrive and not my RAM?

Member Avatar for sidatra79
0
139
Member Avatar for sohamghosh

My code for address book is as follows: [code=cplusplus] #include <iostream> #include <cstring> using namespace std; struct { char name[101][30]; char telephone[101][8]; char email[101][20]; char address[101][50]; char postal[101][6]; }employee; void enter() { int n; cout << "Number of entries?\n"; cin >> n; for (int i=0; i<n; i++){ gets_s (employee.name[i]); gets( …

Member Avatar for sohamghosh
0
95
Member Avatar for sohamghosh

I was just asking, is it also possible to define 2D arrays? If so, how do I pass them into the functions and use them in an address book? As in can I say employee.name[x][] when I use things like strcmp, puts, or gets, or must i say employee.name[x]?

Member Avatar for Narue
0
77