thanks for the help, but system command is not running in my compiler

i have borland, turbo c++ 4.5 and an older dos based version of turbo c

in borland the program is compiling but then giving some error
in turbo c++ 4.5 program is not compiling at all giving error "_system command is undefined or something like this
and in the older version of turbo c it's compiling successfully and then running but nothing comes except a blank window and if i use a print or some other command with it that's coming in this case


can u help me out with it??

the code i am using

Code:
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
    system("dir");
    return 0;
}
thanxx in advance