Q:

How can I put a int varriable in system() function of C++

I just want to put int variable in system function.How can I do so?
I had written the code below.
#include <iostream.h>
#include <stdio.h>
void main()
{
    char str[25];
    cout << "Enter the name of folder:";
    gets(str);
    system("mkdir c:\TURBOC3\BIN:%s", str);
    getch();
}

A:

You seem to be trying to put a string variable in a system call. system only takes one argument of type const char*.
What you can do is use sprintf to write the command you want to a char buffer, and then use that char buffer as a parameter to the system call.
char str[25], command[128];
cout << "Enter the name of the folder:";
gets(str);
sprintf(command,"mkdir c:\TURBOC3\BIN:%s",str);
system(command);
getch();

Hope this helped, good luck :)

