CLASS
#include "func.h"
#include
func::func()
{
}
void func::printmessage()
{
std::cout << "I am a Function ";
}
----------------------------------------------------------------------------------------------------------------
ANA YAPI
#include#includeint main(int argc, char *argv[]){QCoreApplication a(argc, argv);func object; // CLASSTAN BİR OBJECT OLUŞTURUP CAGIRIYORUZ
object.printmessage();
return a.exec();}