|
i have not yet worked on the body of my program because i can not get passed the beginning because of this error: .\project5.cpp(9) : error C4980: '__gc' : use of this keyword requires /clr:oldSyntax command line option
// project5.cpp : main project file.
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args) { int hours __gc[ 10 ]; int charges __gc[ 10 ];
Console::WriteLine( L"Enter the number of hours parked:" ); hours[10] = Int32::Parse( Console::ReadLine() );
Console::WriteLine (L"car number\thours parked\t\amount charge" ); //output values for each array for (int i = 1; i <= 10; i++ ) Console::WriteLine( L"{0}\t\t{1}\t\t{2}", i. ToString(), hours[ i ].ToString(), charges[ i ].ToString() );
return 0; }
|