Mega Code Archive

 
Categories / Visual C++ .NET / Data Type
 

Convert text read from stdin to uppercase and write to stdout

#include "stdafx.h" using namespace System; int main() {    String^ str;    while ((str = Console::ReadLine()) != nullptr)    {       Console::WriteLine( str->ToUpper() );    } }