Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KadyshevKT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KTKadyshev
KadyshevKT
Commits
0fcfa9ed
Commit
0fcfa9ed
authored
2 years ago
by
KTKadyshev
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
2cc75688
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Lab 30.03.22/module.h
+69
-0
69 additions, 0 deletions
Lab 30.03.22/module.h
with
69 additions
and
0 deletions
Lab 30.03.22/module.h
0 → 100644
+
69
−
0
View file @
0fcfa9ed
#pragma once
#define _CRT_SECURE_NO_WARNINGS
#include
<stdio.h>
class
TAObject
{
public:
double
x
,
y
;
bool
f
;
public:
TAObject
(
double
x_
,
double
y_
);
virtual
~
TAObject
()
{}
};
class
TAirport
;
class
TLA
:
public
TAObject
{
public:
double
xc
,
yc
,
R
,
fi
,
V
;
bool
landing
;
public:
TLA
(
double
x_
,
double
y_
,
double
V_
,
double
xc_
,
double
yc_
);
public:
virtual
void
move
(
double
t
,
int
a
)
=
0
;
virtual
int
computeA
(
const
TAirport
&
airport
)
=
0
;
virtual
bool
computeLanding
(
const
TAirport
&
airport
)
=
0
;
};
class
TAircraft
:
public
TLA
{
public:
TAircraft
(
double
x_
,
double
y_
,
double
V_
,
double
xc_
,
double
yc_
);
virtual
void
move
(
double
t
,
int
a
);
virtual
int
computeA
(
const
TAirport
&
airport
);
virtual
bool
computeLanding
(
const
TAirport
&
airport
);
};
class
THelicopter
:
public
TLA
{
public:
THelicopter
(
double
x_
,
double
y_
,
double
V_
,
double
xc_
,
double
yc_
);
virtual
void
move
(
double
t
,
int
a
);
virtual
int
computeA
(
const
TAirport
&
airport
);
virtual
bool
computeLanding
(
const
TAirport
&
airport
);
};
typedef
TLA
*
PLA
;
class
TAirport
:
public
TAObject
{
public:
double
l
;
PLA
*
LA
;
public:
TAirport
(
double
x_
,
double
y_
,
double
l_
);
~
TAirport
();
void
Do
(
double
t0
,
double
tk
);
private:
};
const
double
DT
=
0.5
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment