a vsak co na tom nevies?
hlavickovy subor Environment.h
Kód:
#ifndef ENVIRONMENT_H_
#define ENVIRONMENT_H_
class Environment
{
public:
Environment();
~Environment();
void Main(char * init);
void MainThread();
};
#endif
a subor s definiciami Environment.cpp
Kód:
#include "Environment.h"
#include <iostream>
using namespace std;
Environment::Environment()
{
// TODO Auto-generated constructor stub
}
Environment::~Environment()
{
// TODO Auto-generated destructor stub
}
void Environment::Main(char * init)
{
cout << "STARTING SOFTVARE PLATFORM" << endl;
}
void Environment::MainThread()
{
cout << "TVOJ DALSI KOD" << endl;
}
volanie v main.cpp
Kód:
#include "Environment.h"
using namespace std;
int main(int argc, char *argv[])
{
Environment environment;
environment.MainThread(); //start platform with new Thread
return 0;
}
A preco nechces zverejnit zdrojak? Sa bojis, ze ti niekto ukradne tvoje super napady?
.