run cmd command c++

C++
#include <iostream>
using namespace std;

int main() {
    system("DATE");
    return 0;
}
Source

Also in C++: