移动代码,我很少有knowlage在C++ 所以我有这样的代码C++我怎样才能从主
bool is_successful = true;
ex_file_licensing exFileLicence;
std::string flexLMfilePath;
flexLMfilePath.append("C:/Desktop/QA-program/testsuite/tmp/");
std::string Message = exFileLicence.checkLicense(DI_MF,flexfilePath,is_successful);
,我被要求把它移到外面的主,然后调用它的主要 现在我不知道该怎么做 你能告诉我什么是我应该遵循 请尽可能具体的步骤,我真的不擅长这个东西
感谢
你需要写一个函数包装的代码。但是,如果你真的没有使用C++的经验,你应该得到一个[体面的入门书](http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list)。 –
有关如何创建功能的更多信息,请参阅http://www.cplusplus.com/forum/beginner/35690/ –