Visual C++ .NET/Statement/do while — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
| |
Текущая версия на 12:06, 26 мая 2010
Create a do-while Loop
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
int main(void)
{
int i;
char c;
int x=0;
Console::WriteLine(x);
++x;
i = Console::Read();
c = (char)i;
Console::WriteLine(c);
// Get the cr/lf.
i = Console::Read();
i = Console::Read();
return 0;
}