📄 miss_check.cpp
字号:
#include "head.h"
#include <math.h>
#include "stdafx.h" //The file is a default precompile header of a project, so any "#include" written ahead of it will be ignored.
#include <iostream> //Now, let's try to put it afterward.
using namespace std;
int Miss_check()
{
double y = 500;
for(;y>=200;y=y-100){
double _y = y;
double v, ang, x, c_ang;
double v1, ang1, x1, y1;
double t = 0, h = 0.25;
v = 280; ang = 0; x = 0 ;
c_ang = 0;
c_ang = 0.3491;
double v_a, v_b, ang_a, ang_b;
double x_a, y_a;
double dangdt;
for(; _y>0; )
{
v_a = Dvdt_function_a(v, ang, x, _y);
v_b = Dvdt_function_b(v, ang, x, _y);
v1 = R_k_function(h, t, v, v_a, v_b, V_f);
ang_a = Dangdt_function_a(v, ang, x, _y, c_ang);
ang_b = Dangdt_function_b(v, ang, x, _y, c_ang);
dangdt = Ang_f(t,ang,ang_a,ang_b);
if(dangdt<0)
ang1 = R_k_function(h, t, ang, ang_a, ang_b, Ang_f);
else
ang1 = R_k_function(h, t, ang, ang_a, ang_b, Ang_f1);
x_a = Dxdt_function(v, ang, x, _y);
x1 = R_k_function(h, t, x, x_a, X_f);
y_a = Dydt_function(v, ang, x, y);
y1 = R_k_function(h, t, _y, y_a, Y_f);
v =v1;
ang = ang1;
x = x1;
_y = y1;
t++;
}
cout
//<<"v="<<v1<<endl
//<<"ang="<<ang1<<endl
//<<"x="<<x1<<endl
//<<"_y="<<y1<<endl
<<x+_y<<endl;}
//<<"c_ang="<<c_ang<<endl<<endl;}
return 1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -