C++ Algorithms Code
//program author : Niyigena aime pacifique
//date modified : 27/06/2023
//last update : 27/06/2023
#define arm 0x000004
#ifndef MATH
#define MATH
#include <math.h>
#else
#define CMATH
#include <cmath>
#endif
#define MIC 0x00000d
template<class CODE , class Intl>class Engin{
private:
CODE EngineCode;
Intl UnrealMaker;
public:
Engin(CODE MoveLeg , Intl MoveSystem){
EngineCode = MoveLeg;
UnrealMaker = MoveSystem;
}; Engin(){}
CODE AsmEngine()
{
return this->EngineCode;
}
Intl AsmMaker()
{
return this->UnrealMaker;
}
};class MoveRobot{
private:
Engin<int , int>RobotMaker;
public:
MoveRobot(Engin<int,int>EngineProcess)
{
RobotMaker = EngineProcess;
}; MoveRobot(){}
Engin<int , int>Move_Engine()
{
return this->RobotMaker;
}
void __proc_thread()
{
while(MIC);
}
};
int main()
{
int MovController = 0x000000;
Engin<int,int>TempRun(arm , MIC);
MoveRobot GameRun;
Engin<int,int>ProcEngine = GameRun.Move_Engine();
while(ProcEngine.AsmEngine() != ProcEngine.AsmMaker())
{
MovController+= TempRun.AsmEngine();
if(MovController == sin(360))
{
GameRun.__proc_thread();
}
}
return 0;
}