// DataSet_Example.cpp : main project file.
#include "stdafx.h"
#include <iostream>
using namespace System;
using namespace System::Data;
int main(array<System::String ^> ^args)
{
// Create a DataSet, a DataTable and a DataColumn.
DataSet ^m_DataSet = gcnew DataSet;
DataTable ^m_DataTable = gcnew DataTable( "MyStockData" );
DataColumn ^m_DataColumn = gcnew DataColumn( "ClosingPrices" );
m_DataTable->Columns->Add( m_DataColumn );
m_DataTable->Rows->Add( m_DataTable->NewRow() );
m_DataTable->Rows[ 0 ][ 0 ] = 65.24;
m_DataSet->Tables->Add( m_DataTable );
Console::WriteLine( m_DataSet->Tables[ 0 ]->Rows[ 0 ][ 0 ]->ToString() );
system("PAUSE");
return 0;
}