My code is perfectly working on Borland compilers but its not working on MS VISUAL STUDIO ..... please help me that how can i run this code into visual studio ......

#include<iostream.h>
#include<conio.h>
#include<stdio.h>

void main () 
{
char array[11];
    int temp;

    array[2]='/';
    array[5]='/';

    cout<<"Enter Date: ";

    for (int i=0; i<11; i++)
    {

        temp=getche();
        array[i]=temp;

        if (i==1 || i==4)
        {
            cout<<"/";
            i++;
        }

    }

    cout<<endl<<endl;

    cout<<"You Entered: ";
    cout<<endl;
    puts(array);
    getch();
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.