@echo off
FOR /F "usebackq tokens=1 eol= skip=1 delims= " %%a IN (`help^|findstr /B /V /C:" "`) DO help %%a >>%%a.txt
void function(int * array2d, size_t N, size_t M)
{
for(size_t i = 0; i < N; ++i)
{
for(size_t j = 0; j < M; ++j)
{
array2d[j] = i * j;
}
array2d += M;
}
}
void function(int * array2d, size_t N, size_t M)
{
for(size_t i = 0; i < N; ++i)
{
for(size_t j = 0; j < M; ++j, ++array2d)
{
*array2d = i * j;
}
}
}