// phys.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include "math.h" #include "windows.h" using namespace std; #define _QUO_ 5 #include "locale.h" int _tmain(int argc, _TCHAR* argv[]) { double sum(0), mas[5]={0}, mas2[5]={0}, Sigma(0), mid(0), stud(0), xs(0), xp(0), midwidth(0), delta(0); HANDLE hStdOut; hStdOut=GetStdHandle(STD_OUTPUT_HANDLE); setlocale(LC_ALL,"russian"); for(int i(0); i<_QUO_; i++) { cout<<"Введите значение "<>mas[i]; sum+=mas[i]; } cout<3*Sigma){ crd.Y=i; FillConsoleOutputAttribute(hStdOut, FOREGROUND_RED|FOREGROUND_INTENSITY, nLen, crd, lpNLen ); GetConsoleScreenBufferInfo(hStdOut,lpConsoleScreenBufferInfo); crd.X=_tcslen(_T("Введите значение "))+10; SetConsoleCursorPosition(hStdOut,crd); nLen=_tcslen(_T("Значение вне допустимого интервала погрешности!!!")); TCHAR *lpBuffer= new TCHAR[nLen+1]; memset(lpBuffer,0,nLen+1); _tcscpy(lpBuffer,_T("Значение вне допустимого интервала погрешности!!!")); WriteConsole(hStdOut,lpBuffer,nLen,lpNLen,NULL); crd=lpConsoleScreenBufferInfo->dwCursorPosition; SetConsoleCursorPosition(hStdOut,crd); cout<<"Значение вне допустимого интервала погрешности : "; cout.width(9); cout.precision(4); cout<>xp; getchar(); pow(xp,2); pow(xs,2); midwidth=sqrt(xp+xs); cout<>D; cout<<"Введите высоту : "; cin>>h; cout< dI : "< dE : "<