MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 1 as of 2014-06-25 22:32:23
  • CPlusPlus

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;
}
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01