Commit 79b1426c authored by Tillmann Zwiener's avatar Tillmann Zwiener
Browse files

The Start V1

parent 68efa273
/*! \file main.cpp
* Ein Satz zur Datei…
* \author Zwiener, Tillmann(TZ)
* \version 2012-11-2021 (AM)
* Version 1.
#include <iostream>
#include <string.h>
#include <sstream>
#include <iomanip>
using namespace std;
void sumulate(void);
void accel (void);
int initVeichle (double dt_in, double s_in); // to Do Default Werte
int getXPos(void);
int getYPos(void);
string getVehicleString(void);
int testVehicleSimulation(void);
int roll(void);
struct car{
float postion =0, speed =0, acceleration =0;
int mass =0;
double F_max= 0, F_akt=0;
double dt =0; //deltra time in second
int main()
void sumulate(void){
struct car BMW;
BMW.speed += BMW.acceleration *BMW.dt;
void accel(void){
struct car BMW;
BMW.F_akt = BMW.F_max;
int roll(void){
struct car BMW;
BMW.F_akt = 0;
return 0;
string getVehicleString(void){
struct car BMW;
std::stringstream sstr1;
sstr1 << "a = "<< BMW.acceleration << "v = "<< BMW.speed<< "pos X" << BMW.speed;
return sstr1.str();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment