plz help meeeeeee
my program include 5 people that if choise 1-wrte name people 2- ACCOUNT 3-SUPPLY account
and with add 1 people choise 1-SUPPLY account 2-update of account
plz i can not write plz how i write this program :'(

You start by being very clear in your own mind what the program is to do. Write that down. Now think about how to tell the computer to do it, don't worry about code, just the flow of the program. (Or: Now think about writing the code, don't worry about syntax, just the flow of the program). Then, write a simple program that does one part of what you need. You have to get the code correct for that one part. Test it and understand it. Change it a little to see what happens. Add another part. Repeat...

One thing to think about: What data is used? How does it come to the program? Is it in a file? Does the user put it in? One at a time, or many? After you have data, you can think about how to see it. Maybe, the first simple thing to do is get the data?

hi sir
tx for answer
but how can i write this program

anita_jojo20,

Welcome to DaniWeb!

Let me offer a few suggestions that will make your time here as useful as possible.

Please use only real English words. I.e. 'plz', 'meeeeee', 'tx' are not words.

griswolf seems to have provided an excellent description of the through process you should be using. I highly recommend you really study the suggestions that people take the time to give to you before simply reposting your original question.

Good luck!

David

The process of creating a code happens much before you hit the compiler, my friend.
First lay it out neat in your mind, then type it down using the language of your choice. :)

this program have error plz help
#include<iostream>
usingnamespace std ;
struct bank
{
bank *next;
int shomarehesab;
char name;
char family;
int mojudiehesab;
}moshtari1,moshtari2,moshtari3,moshtari4,moshtari5;
void addmoshtari(bank moshtariejadid , bank start)
{
bank *p;
p=&start;
while(p->next !=0)
p=p->next ;
p->next =&moshtariejadid ;
return;
}
void dellmoshtari(int x , bank *p)
{
bank *q;
for( int i=1 ; i<=x ; i++)
{
q=p;
p=p->next ;
}
q->next =p->next ;
}
void addpul()
{
bank account;
int amount;
cout<<"PLZ ENT your account name";
cin>>account.name <<account.family <<account.shomarehesab ;
cout<<"PLZ ENT yor amount;";
cin>>amount;
account.mojudiehesab += amount ;
cout<<"mojudie jadid :"<<account.mojudiehesab;
}
void dellpul()
{
bank account;
int amount;
cout<<"PLZ ENT your account name";
cin>>account.name <<account.family <<account.shomarehesab ;
cout<<"PLZ ENT yor amount;";
cin>>amount;
account.mojudiehesab -= amount ;
cout<<"mojudie jadid :"<<account.mojudiehesab;
}
void info()
{
bank account;
cout<<"PLZ ENT your account name";
cin>>account.name <<account.family <<account.shomarehesab ;
cout<<"vaziate hesabe shoma:"<<account.mojudiehesab ;
}
int main()
{

int func;
cout<<"Enter the option of following transuction\n";
cout<<"1.elane vaziate hesab:\n";
cout<<"2.be ruz resanie etelaat:\n";
cout<<"3.bardashte pul:\n";
cout<<"4.warize pul:\n";
cout<<"5.bastane hesab:\n";
cout<<"0.EXIT\n";
bank *start=&moshtari1 ;
moshtari1.name ="zahra";
moshtari1.family ="sadeghi";
moshtari1.shomarehesab =128104140;
moshtari1.mojudiehesab =1500000;

moshtari2.name ="ali";
moshtari2.family ="shakiba";
moshtari2.shomarehesab =128114241;
moshtari2.mojudiehesab =500000;

moshtari2.name ="amin";
moshtari2.family ="shakeri";
moshtari3.shomarehesab =128124342;
moshtari3.mojudiehesab =2500000;

moshtari2.name ="mina";
moshtari2.family ="sadri";
moshtari4.shomarehesab =128134442;
moshtari4.mojudiehesab =14700000;

moshtari2.name ="shahin";
moshtari2.family ="najafi";
moshtari5.shomarehesab =128134543;
moshtari5.mojudiehesab =256000;
bank moshtariejadid;
bank *p;
p=&moshtari1 ;
while(p->next !=0)
p=p->next ;
p->next =&moshtariejadid ;
START:
cin>>func;
if(func==0)
{
exit(0);
}
while(func != 0)
{
switch(func)
{
case 1:
info();
break;
case 2:
//function for option 2.
break;
case 3:
dellpul();
break;
case 4:
addpul();
break;
case 5:
//function for option 5.
break;
default:
cout<<"You have Entered Invalid option.";
break;

}
goto START;
}

return 0;
}

Please use code tags. You also seemed to not heed my suggestion of using real words!

You have written a C program with a little C++ syntax here and there... and some BASIC too (goto is not often used in C or C++).

For a first suggestion: Replace START: ... goto START with while(1) { ... } and add an option to quit.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.