Hi friends,
I hope everyone is fine and doing well. I am new to database programming in Visual C++ 2010. Our teacher taught us this small program which I have some doubts and queries about. If I get grip on the basic concept of this program, I may build more programs later.
Here is all the code. If it is possible for you guys, could you please explain every line and function in this program, don't worry it is only a few lines of code, not much! And specially please explain this symbol "^", what does it really do in this program?




using namespace System:ata::SqlClient;

//////////////////////////////////////////////////////
SqlConnection^ cn = gcnew SqlConnection();
DataSet^ StDataSet = gcnew DataSet();
SqlDataAdapter^ da;


cn->ConnectionString = "Data Source=INSPIRON;Initial Catalog=Department;Integrated Security=True";

cn->Open();

//Initialize the SqlDataAdapter object by specifying a Select command
//that retrieves data from the sample table
da = gcnew SqlDataAdapter("select * from Student", cn);


//Populate the DataSet by executing the Fill method of the SqlDataAdapter
da->Fill(StDataSet, "Student");

//DataRow^ rowSt = StDataSet->Tables->Item["Student"]->Rows->Item[0];
//Console::WriteLine("Student : {0} ", rowSt->Item["st_name"]);

this->dataGridView1->DataSource = StDataSet->Tables["Student"];

Looking forward to your wonderful replies!
Thanks in advance!