[問題]不好意思請問一下
不好意思我是新手,可以請問一下為什麼照書上的
這樣寫,執行不出來呢?我是用2008的
// hdfg.cpp: 主要專案檔。
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
Console::WriteLine(L"Input a score");
int a= in::Parse(Console::ReadLine());
if (a>=90)
{
Console::WriteLine("you got a");
}
else if (a >=70)
{
Console::WriteLine("you got b");
}
else
{
Console::WriteLine("you got c");
}
Console::Read();
return 0;
另在再問一下Console::2008的是::2005的.
是這樣嗎
--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.228.123.64
→
12/06 13:11, , 1F
12/06 13:11, 1F
→
12/06 13:16, , 2F
12/06 13:16, 2F
→
12/06 13:19, , 3F
12/06 13:19, 3F
推
12/06 13:40, , 4F
12/06 13:40, 4F
推
12/06 13:42, , 5F
12/06 13:42, 5F
→
12/06 13:50, , 6F
12/06 13:50, 6F