CPlusPlus
C++ programming language created by Bjarne Stroustrup
Sample app for Linux
/* gcc test.cpp -lstdc++ -o test cpp test.cpp -o test */ #include<vector> #include<iostream> #include<sstream> class Teste{ public: Teste(std::string xyz){ std::cout << xyz << "\r\n"; } }; int main(){ std::vector<int> listInst = std::vector<int>(); std::cout <<"Hello world \r\n"; std::ostringstream oss(std::ostringstream::out); int a = 1234; char xpto[16]="AAA BBB"; oss << a << xpto << "\r\n"; std::cout << oss.str(); //std::ostringstream ost = std::ostringstream(ostringstream::out); Teste x1("Ola aaaaaaa"); return 0; }