i am trying to use the get() statement:

PHP Code:
#include "stdafx.h"
#include "iostream.h"
#include "stdio.h"

void main()
{
    
char str[80];

    
cout << "enter a string: ";
    
gets(str);
    
cout << "Here is ur string :" << str;

what happens here is that when i run the program it first wants me to put text and then shows up the 2 cout's......*** is goin on?
im tired of ms vc++ givin me g@y errors...