Using Console::WriteLine to output to console : Console « Development « Visual C++ .NET






Using Console::WriteLine to output to console

 


#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
enum { ONE = 1, TWO, THREE, FOUR, FIVE = 5, SIX };
int main(void) {
    Console::WriteLine(ONE);
    Console::WriteLine(TWO);
    Console::WriteLine(THREE);
    Console::WriteLine(FIVE);
    Console::WriteLine(SIX);
    return 0;
}

   
  








Related examples in the same category

1.Read from console
2.Read from console
3.Console::Write
4.Console::WriteLine