Skip to content

Instantly share code, notes, and snippets.

@vadimtsushko
Created September 9, 2012 08:09
Show Gist options
  • Save vadimtsushko/3683286 to your computer and use it in GitHub Desktop.
Save vadimtsushko/3683286 to your computer and use it in GitHub Desktop.
Болванка с выходными параметрами
#include <windows.h>
#pragma hdrstop
#include "pt4.h"
void TrianglePS(double a, double &P, double &S)
{
P = a * 2;
S = a * 3;
}
void Solve()
{
double a1,a2,a3,P,S;
Task("Proc4");
GetD(a1);
GetD(a2);
GetD(a3);
TrianglePS(a1,P,S);
PutD(P);
PutD(S);
TrianglePS(a2,P,S);
PutD(P);
PutD(S);
TrianglePS(a3,P,S);
PutD(P);
PutD(S);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment