// strings.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include using namespace std; struct rec { string name; }emp1; int _tmain(int argc, _TCHAR* argv[]) { emp1.name = "smith"; cout << emp1.name << endl; return 0; }