华电潮流上机程序完整版.docVIP

  • 9
  • 0
  • 约1.27万字
  • 约 12页
  • 2017-07-10 发布于天津
  • 举报
华电潮流上机程序完整版.doc

// flow.cpp : Defines the entry point for the console application. // #include stdafx.h #include iostream.h #include fstream.h #include NEquation.h #include math.h #include config.h void test()//测试程序 { NEquation ob1; ob1.SetSize(2); ob1.Data(0,0)=1; ob1.Data(0,1)=2; ob1.Data(1,0)=2; ob1.Data(1,1)=1; ob1.Value(0)=5; ob1.Value(1)=4; ob1.Run(); printf(x1=%f\n,ob1.Value(0)); printf(x2=%f\n,ob1.Value(1)); } void GetData()//数据读入 { FILE *fp; int i; if((fp=fopen(E:\\新建文件夹\\flow\\data\\data.txt,r))==NULL) { printf(Can not open the file named data.txt \n); return; } for(i=0;i=Bus

文档评论(0)

1亿VIP精品文档

相关文档