A. 求一个小型学生理财系统的面向对象程序设计的源代码
#include <iostream.h>
#include <fstream.h>
#include <string.h>
#include <stdlib.h>
const unsigned int COUNT = 5;//账户数量为5
typedef struct Money{
int Date;
float money;
Money *next;
}Income,Expense;
typedef struct{
Income *income;//收入记录
Expense *expense;//支出记录
float incomeaccount;//收入统计
float expenseaccount;//支出统计
int incomelenght;
int expenselenght;
}Account;
class AccountInformation{
private:
Account L[COUNT];
public:
AccountInformation();
~AccountInformation();
int InitAccount();
void getExpense(int choice[]);
void getIncome(int choice[]);
void addExpense(int choice,Expense *elem);
void addIncome(int choice,Expense *elem);
void updateIncome(int choice,Expense elem);
void updateExpense(int choice,Expense elem);
void deleteIncome(int choice,int date);
void deleteExpense(int choice,int date);
void countAll();
void saveInfo();
};
AccountInformation::AccountInformation()
{
InitAccount();
}
AccountInformation::~AccountInformation()
{
}
int AccountInformation::InitAccount()
{
for(int i=0;i<COUNT;i++)
{
L[i].income=new Income;
L[i].expense=new Expense;
if(L[i].income==NULL||L[i].expense==NULL)
{
cout<<"分配内存失败."<<endl;
return 0;
}
L[i].incomelenght=0;
L[i].expenselenght=0;
L[i].incomeaccount=0;
L[i].expenseaccount=0;
}
Money *Q,*P;
char s[2];
//读取收入信息
ifstream fin1("income.txt");
if(fin1.fail())
{
cout<<"文件打开失败!"<<endl;
return 0;
}
for(i=0;i<COUNT;i++)
{
fin1>>s;
Q=L[i].income;
while(s[0]!='#')
{
if((int)s[1]==0)
Q->Date=(int)s[0]-48;
else
Q->Date=((int)s[0]-48)*10+(int)s[1]-48;
fin1>>Q->money;
Q->next=new Income;
L[i].incomelenght++;
L[i].incomeaccount+=Q->money;
P=Q;
Q=Q->next;
fin1>>s;
}
P->next=NULL;
}
fin1.close();
//读取支出信息
ifstream fin2("expense.txt");
if(fin2.fail())
{
cout<<"文件打开失败!"<<endl;
return 0;
}
for(i=0;i<COUNT;i++)
{
fin2>>s;
Q=L[i].expense;
while(s[0]!='#')
{
if((int)s[1]==0)
Q->Date=(int)s[0]-48;
else
Q->Date=((int)s[0]-48)*10+(int)s[1]-48;
fin2>>Q->money;
Q->next=new Income;
L[i].expenselenght++;
L[i].expenseaccount+=Q->money;
P=Q;
Q=Q->next;
fin2>>s;
}
P->next=NULL;
}
fin2.close();
return 1;
}
void AccountInformation::getExpense(int choice[])
{
Expense *Q;
float m=0.0;
for(int i=0;i<COUNT;i++)
if(choice[i]!=0)
{
Q=L[choice[i]-1].expense;
cout<<"账户"<<choice[i]<<"的支出信息为"<<endl;
cout<<"DATE\tMONEY"<<endl;
while(Q!=NULL)
{
cout<<Q->Date<<"\t"<<Q->money<<endl;
Q=Q->next;
}
cout<<"账户"<<choice[i]<<"的总支出信息为"<<L[choice[i]-1].expenseaccount<<endl<<endl;
m+=L[choice[i]-1].expenseaccount;
}
cout<<"总支出信息为"<<m<<endl;
}
void AccountInformation::getIncome(int choice[])
{
Income *Q;
float m=0.0;
for(int i=0;i<COUNT;i++)
if(choice[i]!=0)
{
Q=L[choice[i]-1].income;
cout<<"账户"<<choice[i]<<"的收入信息为"<<endl;
cout<<"DATE\tMONEY"<<endl;
while(Q!=NULL)
{
cout<<Q->Date<<"\t"<<Q->money<<endl;
Q=Q->next;
}
cout<<"账户"<<choice[i]<<"的总收入信息为"<<L[choice[i]-1].incomeaccount<<endl<<endl;
m+=L[choice[i]-1].incomeaccount;
}
cout<<"总收入信息为"<<m<<endl;
}
void AccountInformation::addExpense(int choice,Expense *elem)
{
Expense *Q,*P;
Q=L[choice-1].expense;
while(Q!=NULL)
{
if(Q->Date==elem->Date)
{
Q->money+=elem->money;
L[choice-1].expenseaccount+=elem->money;
return ;
}
if(Q->Date>elem->Date&&P->Date<elem->Date)
break;
P=Q;
Q=Q->next;
}
P->next=elem;
elem->next=Q;
L[choice-1].expenseaccount+=elem->money;
L[choice-1].expenselenght++;
}
void AccountInformation::addIncome(int choice,Expense *elem)
{
Expense *Q,*P;
Q=L[choice-1].income;
while(Q!=NULL)
{
if(Q->Date==elem->Date)
{
Q->money+=elem->money;
L[choice-1].incomeaccount+=elem->money;
return ;
}
if(Q->Date>elem->Date&&P->Date<elem->Date)
break;
P=Q;
Q=Q->next;
}
P->next=elem;
elem->next=Q;
L[choice-1].incomeaccount+=elem->money;
L[choice-1].incomelenght++;
}
void AccountInformation::updateExpense(int choice,Expense elem)
{
Expense *Q;
Q=L[choice-1].expense;
while(Q!=NULL)
{
if(Q->Date==elem.Date)
{
Q->money=elem.money;
L[choice-1].expenseaccount=elem.money-Q->money;
return ;
}
Q=Q->next;
}
}
void AccountInformation::updateIncome(int choice,Expense elem)
{
Expense *Q;
Q=L[choice-1].income;
while(Q!=NULL)
{
if(Q->Date==elem.Date)
{
Q->money=elem.money;
L[choice-1].incomeaccount=elem.money-Q->money;
return ;
}
Q=Q->next;
}
}
void AccountInformation::deleteExpense(int choice,int date)
{
Expense *Q,*P;
Q=L[choice-1].expense;
if(Q->Date==date)
{
L[choice-1].expense=NULL;
L[choice-1].expenseaccount=0.0;
L[choice-1].expenselenght=0;
}
while(Q!=NULL)
{
if(Q->Date==date)
{
P->next=Q->next;
L[choice-1].expenseaccount-=Q->money;
L[choice-1].expenselenght--;
return ;
}
P=Q;
Q=Q->next;
}
}
void AccountInformation::deleteIncome(int choice,int date)
{
Expense *Q,*P;
Q=L[choice-1].income;
if(Q->Date==date)
{
L[choice-1].income=NULL;
L[choice-1].incomeaccount=0.0;
L[choice-1].incomelenght=0;
}
while(Q!=NULL)
{
if(Q->Date==date)
{
P->next=Q->next;
L[choice-1].incomeaccount-=Q->money;
L[choice-1].incomelenght--;
return ;
}
P=Q;
Q=Q->next;
}
}
void AccountInformation::countAll()
{
Expense *Q;
float allincome=0.0;//总收入
float allexpense=0.0;//总支出
float a[COUNT],b[COUNT],c[COUNT],d[COUNT];
int date1,date2;
for(int i=0;i<COUNT;i++)
{
//收入信息
Q=L[i].income;
date1=Q->Date;
date2=Q->Date;
while (Q!=NULL)
{
if(Q->Date<date1)
date1=Q->Date;
if(Q->Date>date2)
date2=Q->Date;
Q=Q->next;
}
a[i]=L[i].incomeaccount/(date2-date1);//单位时间收入
c[i]=L[i].incomeaccount;//账户总收入
allincome+=L[i].incomeaccount;//总收入
//支出信息
Q=L[i].expense;
date1=Q->Date;
date2=Q->Date;
while (Q!=NULL)
{
if(Q->Date<date1)
date1=Q->Date;
if(Q->Date>date2)
date2=Q->Date;
Q=Q->next;
}
b[i]=L[i].expenseaccount/(date2-date1);//单位时间支出
d[i]=L[i].expenseaccount;//账户总支出
allexpense+=L[i].expenseaccount;//总支出
}
int k[COUNT]={1,2,3,4,5};
int l[COUNT]={1,2,3,4,5};
int t;
float f;
for(i=0;i<COUNT-1;i++)
for(int j=i+1;j<COUNT;j++)
if(a[i]>a[j])
{
f=a[j];
a[j]=a[i];
a[i]=f;
t=k[j];
k[j]=k[i];
k[i]=t;
}
else if(c[i]>c[j])
{
f=c[j];
c[j]=c[i];
c[i]=f;
t=l[j];
l[j]=l[i];
l[i]=t;
}
cout<<"总收入为:"<<allincome<<endl;
cout<<"账户收入分别为:\t\t单位时间内账户收入为:"<<endl;
for(i=0;i<COUNT;i++)
cout<<"账户"<<l[i]<<"的收入为:"<<c[i]<<"\t账户"<<k[i]<<"的收入为"<<a[i]<<endl;
for(i=0;i<COUNT;i++)
{
k[i]=i+1;
l[i]=i+1;
}
for(i=0;i<COUNT-1;i++)
for(int j=i+1;j<COUNT;j++)
if(b[i]>b[j])
{
f=a[j];
a[j]=a[i];
a[i]=f;
t=k[j];
k[j]=k[i];
k[i]=t;
}
else if(d[i]>d[j])
{
f=c[j];
c[j]=c[i];
c[i]=f;
t=l[j];
l[j]=l[i];
l[i]=t;
}
cout<<"总支出为:"<<allincome<<endl;
cout<<"账户支出分别为:\t\t单位时间内账户支出为:"<<endl;
for(i=0;i<COUNT;i++)
cout<<"账户"<<l[i]<<"的支出为:"<<d[i]<<"\t账户"<<k[i]<<"的支出为"<<b[i]<<endl;
}
void AccountInformation::saveInfo()
{
Money *Q;
ofstream fout1("income.txt",ios::trunc);
if(fout1.fail())
{
cout<<"文件打开失败!"<<endl;
return ;
}
for(int i=0;i<COUNT;i++)
{
Q=L[i].income;
while(Q!=NULL)
{
fout1<<Q->Date<<" "<<Q->money<<'\n';
Q=Q->next;
}
fout1<<"#\n";
}
fout1.close();
ofstream fout2("expense.txt",ios::trunc);
if(fout2.fail())
{
cout<<"文件打开失败!"<<endl;
return ;
}
for(i=0;i<COUNT;i++)
{
Q=L[i].expense;
while(Q!=NULL)
{
fout2<<Q->Date<<" "<<Q->money<<'\n';
Q=Q->next;
}
fout2<<"#\n";
}
fout2.close();
}
void menu1(int choice[COUNT])
{
char s[5];
cout<<"************************账户选择************************"<<endl;
cout<<"请输入账户号:(多个账户不需要空格隔开)";
cin>>s;
for(int i=0;i<COUNT;i++)
if(s[i]!='\0')
choice[i]=(int)s[i]-48;
else
break;
}
int menu()
{
int choice;
//system("cls");
cout<<"********************************************************"<<endl;
cout<<"********************小型学生理财系统********************"<<endl;
cout<<"1.查询账户支出信息\t\t2.查询账户收入信息."<<endl;
cout<<"3.添加账户支出信息\t\t4.添加账户收入信息."<<endl;
cout<<"5.修改账户支出信息\t\t6.修改账户收入信息."<<endl;
cout<<"7.删除账户支出信息\t\t8.删除账户收入信息."<<endl;
cout<<"9.收入支出统计\t\t\t10.保存账户数据."<<endl;
cout<<"0.退出系统"<<endl;
cout<<"********************************************************"<<endl;
cout<<"请输入选择:";
cin>>choice;
return choice;
}
void Empty(int choice[])
{
for(int i=0;i<COUNT;i++)
choice[i]=0;
}
void main()
{
system("color 5");
AccountInformation account;
int choice[COUNT];
int date;
Money elem;
elem.next=NULL;
while(true)
{
switch(menu())
{
case 1:Empty(choice);
menu1(choice);
account.getExpense(choice);
break;
case 2:Empty(choice);
menu1(choice);
account.getIncome(choice);
break;
case 3:Empty(choice);
menu1(choice);
cout<<"请输入支出信息(DATE,Money):";
cin>>elem.Date>>elem.money;
account.addExpense(choice[0],&elem);
break;
case 4:Empty(choice);
menu1(choice);
cout<<"请输入收入信息(DATE,Money):";
cin>>elem.Date>>elem.money;
account.addIncome(choice[0],&elem);
break;
case 5:Empty(choice);
menu1(choice);
cout<<"请输入支出信息(DATE,Money):";
cin>>elem.Date>>elem.money;
account.updateExpense(choice[0],elem);
break;
case 6:Empty(choice);
menu1(choice);
cout<<"请输入收入信息(DATE,Money):";
cin>>elem.Date>>elem.money;
account.updateIncome(choice[0],elem);
break;
case 7:Empty(choice);
menu1(choice);
cout<<"请输入DATE:";
cin>>date;
account.deleteExpense(choice[0],date);
break;
case 8:Empty(choice);
menu1(choice);
cout<<"请输入DATE:";
cin>>date;
account.deleteIncome(choice[0],date);
break;
case 9:account.countAll();
break;
case 10:account.saveInfo();
break;
case 0: exit(0);
}
}
}
自己要建两个TXT文本。。。。income.txt expense.txt
B. 求Java写的家庭理财系统代码
这个系统倒是少见,不但要懂Java,还要懂金融。不过既然是家庭用的,就不用什么系统了吧。估计很少有人愿意做这个。祝楼主好运吧
C. 投资分红网站源码
你好,如果是自己组建团的话,花销和工期会很高。
还是建议委托互金工场制作吧,毕竟这样的技术单位做的多了会有一些成熟的体系和规则,比较容易明白想要的规则,希望我的回答能帮到你!~!
D. 求easypanel分销系统源码,免费的
天下没有免费的午餐,即使有免费的给你用,说不定源码里面被植入了木马,还会篡改你的会员信息,修改会员余额,直接入侵财务账户。
E. 中炎投资自由复利系统是真吗
不太靠谱哟朋友,建议你慎重考察
国家商务部网站没有看到这个名字
国家未经颁发直销牌照,私自运作的,属于非法运作!
所以,选择公司,一定要打电话,或者去商务部网站查询,看该公司是否有直销牌照!
建议你网络查——大地老师,
希望对你有所帮助!
F. 哪位高手有仲平复利指标源码呀
N1(1,1000,69);
N2(1,1000,69);小框 N:=30;
M:=60;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力线:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFFFFFF,LINETHICK1;
主力持仓线: (CLOSE-EMA(CLOSE,18))/EMA(CLOSE,18)*100, COLORFF3300,LINETHICK2;
强势显示: STICKLINE(主力持仓线>14,主力持仓线+2,主力持仓线-2,1,1), COLOR0000FF,LINETHICK1;
主力筹码线:EMA(N1*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),8),COLORFF00FF,LINETHICK2;
超强显示: STICKLINE(主力筹码线>62,主力筹码线+2,主力筹码线-2,1,1), COLORFFFFFF,LINETHICK4;
散户筹码线: N2*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLOR0066CC,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
WEN:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);
见顶柱:100,LINETHICK1,COLOR0000FF;
卖准备: IF(CROSS(J2,J1) AND J2>85,90,100),LINETHICK1,COLORFF9900;
走势线: WEN,LINETHICK1,COLORFFFF00;
STICKLINE(走势线>88,100,走势线,3,1),COLORFF9900;
STICKLINE(走势线<=10,0,走势线,3,1),COLOR00FFFF,LINETHICK1;
STICKLINE(COUNT(走势线<REF(走势线,1) AND 走势线<10,2)=2 ,0,5,3,0),LINETHICK1,COLOR0000FF;
STICKLINE(CROSS(J2,J1) AND J2>85,100,72,3,0),COLOR0000FF,LINETHICK3;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA6:=SMA(AA3,30,5),LINETHICK2,COLORFFFF00;
买关注: STICKLINE(走势线-主力线<-65,0,2,5,1),COLORFFFFFF,LINETHICK1;
DRAWTEXT(FILTER(J>REF(J,1)AND 走势线>=REF(走势线,1)AND 走势线<25 ,15),走势线,'买'),COLORFFFFFF;
卖关注: STICKLINE(走势线-AA6>88,98,93,5,1),COLORFFFF00;
DRAWTEXT(FILTER(J<REF(J,1)AND 走势线<=REF(走势线,1)AND J>85 ,5),J,'可卖'),COLOR00FF00,LINETHICK2;
VAR11:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;
VAR12:=IF((EMA((C+L)/2,3)-VAR11)*5>0,POW((EMA((C+L)/2,3)-VAR11)*5,2)/10,-1*POW((EMA((C+L)/2,3)-VAR11)*5,2)/10);
VAR13:=IF(VAR12>0,VAR12-0,0);
STICKLINE(VAR13>0 AND REF(VAR13,1)=0 AND (C+L)/2>MA((C+L)/2,8),
走势线,主力线+0.2,4,0),COLORFFFF00,LINETHICK2;
DRAWTEXT(VAR13>0 AND REF(VAR13,1)=0 AND (C+L)/2>MA((C+L)/2,8),
走势线+0.35,'追买'),LINETHICK3,COLORFFFF00;
买入:IF(CROSS(走势线,4),78,0),STICK,LINETHICK1,COLORFFFF00;
DRAWTEXT(CROSS(走势线,4),78,'买入'),COLORFFFF00;
买!:IF(CROSS(主力持仓线,-5),20,0),STICK,LINETHICK2,COLORFFFFFF,LINETHICK3;
DRAWTEXT(CROSS(主力持仓线,-5),20,'买!'),COLORFFFFFF;
VAR112:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);
STICKLINE(VAR112>20 AND VAR112<80,VAR112,VAR112,10,1),COLOR0000FF,LINETHICK3;
STICKLINE(VAR112<REF(VAR112,1),VAR112,VAR112,10,1),COLOR00FF00,LINETHICK3;
STICKLINE(VAR112>80,VAR112,VAR112,8,1),COLORFFFFFF,LINETHICK1;
STICKLINE(VAR112<20,VAR112,VAR112,8,1),COLORFFFFFF,LINETHICK1;
筹码高位止停线:70,COLORFF6699,LINETHICK1;
强弱分界线:50,COLOR00FFFF,LINETHICK1;
底部安全区:12,COLOR338800,LINETHICK1;
地平线:-1,COLOR699699,LINETHICK1;VARF:=TROUGHBARS(3,15,1)<4;
STICKLINE(FILTER(VARF=1,5),88,0,1,0),COLOR777777,LINETHICK2;
DRAWICON(FILTER(VARF=1,5),88,1);
DRAWTEXT(FILTER(VARF=1,5),92,'**!'),COLORFFFFFF;
大框
G. 急求!!!基于java的家庭理财系统 完整项目 可以实现功能的所有源代码,谢谢啊! 高分
这些都是企业的商业机密,不可能通过一个问题就给你了,还是自己慢慢研究吧。
H. 堡垒投资理财分红系统开发多少钱
这个要看你系统的功能需求,才能决定价格,简单的APP价格一般在3W左右,就算是全仿,你也肯定会增加功能,而且公司不同质量也不一样,所以你要是这样问价格对于你想开发的也并没有帮助,我司对于分红系统有很多成功的案例和经验,所以如果你需要,可以点开我的主页细聊
I. 投注系统源码信誉好的
此处众所周知点击查看
此处众所周知点击查看
首先,检查游戏文件是否出了问题,重新下载安装游戏,下载前关闭杀毒软件,避免误杀文件,安装时不要安装到C盘会影响电脑速度,修改到D或E盘均可,安装路径就使用默认的路径即可,切莫手动创建中文路径,这样会导致闪退或无法登陆。
其次,要考虑显卡驱动是否有问题,是否是最新的驱动,是否安装DX软件。用相关软件测试并更新驱动,注意做好旧驱动的备份。
第三,检查系统与游戏是否冲突,是否不兼容。重做系统后测试是否还闪退。
第四,关闭所有不用的后台软件,包括关闭开机自动启动的软件,把那些占用内存资源较大的软件关闭,节省内存空间。
最后,清理电脑机箱内的灰尘,可用吹风机、吸风机,清理灰尘后可小幅度提高电脑硬件性能。