Скачиваний:
26
Добавлен:
01.05.2014
Размер:
356 б
Скачать
#include <math.h>
#include <iostream.h>
#include <fstream.h>

void main(int argc,char *argv[])
{ double a,b,c;

  if (argc)
  switch(argc)
 { case 4: a=atof(argv[1]);
	   b=atof(argv[2]);
	   c=atof(argv[3]);
   break;
  }
  double Sq,p;
  p=(a+b+c)/2;
  Sq = sqrt(p*(p-a)*(p-b)*(p-c));
  ofstream fout("return.dat");

  fout << Sq;

}
Соседние файлы в папке LAB1