std::cout
class

#include <iostream>

class box_world
{
public:
  void greeting() const
  {
    std::cout
      << "Cheers, c++ !"
      << std::endl;
  }
};

int main()
{
  auto box = box_world{};
  box.greeting();
}

c++ std::copy:
copy memory area

#include <algorithm>

int main()
{
  // c++ array
  char src[] = {"Hello, c++!"};
  // Note: src[11] == '\0'
  int size = 11 + 1;
  char * dst = new char[size];
  std::copy(src, src+size, dst);
  delete [] dst;
}

c++ std::fill:
fill memory area

#include <algorithm>

int main()
{
  // c++ array
  char src[100];
  std::fill(src, src+100, '0');
}

c++ std::mt19937

Get Random Number

std::random_device seed;
std::mt19937 rng{seed()};
auto rd_value = rng();
std::cout << rd_value << std::endl;
  • std::mt19937
  • std::random_device

c++ Tutorial:

Learn c++ in days


J

The Engine

Enter

SerenityOS

Serenity Operating System

Enter

Botan c++

Botan c++

Enter

SYCL

Intel dpcpp/cpp: Enter

Adaptivecpp acpp: Enter

SYCL Home: Enter

#include <sycl/sycl.hpp>

c++ Silice

Enter

Dig Botan

Dig Botan

Enter

Dig Haiku

Dig Haiku

Enter

Projects

c++ projects of cppfx.xyz

Enter

Apps Case

Some useful apps

Enter

Logs

Logs - Record my c++ explorer

Enter

B2 Build

B2 is a very powerful c++ project build system.

Enter