//Example.cpp
// MAIN FILE : It make use of Test.h and Test.cpp
#include "Test.h"
int main(){
Test *t = new Test("KingOfJava");
cout << t->getMessage() << endl;
}
//++++++++++++++++++++++++++++++++++++++++
//Test.h
#include <iostream>
#include <string>
using namespace...
//Example.cpp
// MAIN FILE : It make use of Test.h and Test.cpp
#include "Test.h"
int main(){
Test *t = new Test("KingOfJava");
cout << t->getMessage() << endl;
}
//++++++++++++++++++++++++++++++++++++++++
//Test.h
#include <iostream>
#include <string>
using namespace...
//Example.cpp
// MAIN FILE : It make use of Test.h and Test.cpp
#include "Test.h"
int main(){
Test *t = new Test("KingOfJava");
cout << t->getMessage() << endl;
}
//++++++++++++++++++++++++++++++++++++++++
//Test.h
#include <iostream>
#include <string>
using namespace...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.