udemy-cpp : added given partial solution to excercise 01

master
Tibor Bizjak 2023-07-13 15:40:20 +02:00
parent afc4c14e54
commit 9243fd9764
5 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#pragma once
#include <cstdint>
#include <cstdlib>
namespace Ad
{
namespace Constants
{
constexpr std::int32_t EGO_VEHICLE_ID = -1;
} // namespace Constants
} // namespace Ad

View File

@ -0,0 +1,6 @@
#include <cmath>
#include <cstdint>
#include <iostream>
#include "AdConstants.h"
#include "AdFunctions.h"

View File

@ -0,0 +1,3 @@
#pragma once
#include "AdTypes.h"

View File

@ -0,0 +1,5 @@
#pragma once
#include <cstdint>
#include "AdConstants.h"

View File

@ -0,0 +1,14 @@
#include <cstring>
#include <iostream>
#include <numeric>
#include "AdFunctions.h"
#include "AdTypes.h"
int main()
{
auto ego_vehicle = Ad::Data::init_ego_vehicle();
Ad::Visualize::print_vehicle(ego_vehicle);
return 0;
}