首先屏幕打印一段说明Map size:1=Small 2=Medium 3=Large
然后出现等待输入的文字Please enter your selection:
这时你应该输入数字
程序进行数字的转换 int n=int.Parse(str);
根据你的选择,决定你需要多少美分的价格cost
然后这个价格将打印在屏幕上Please insert{0}cents

解决方案 »

  1.   

    上面的够详细了,说得我都没得什么说的了首先屏幕打印一段说明Map size:1=Small 2=Medium 3=Large
    然后出现等待输入的文字Please enter your selection:
    这时你应该输入数字
    程序进行数字的转换 int n=int.Parse(str);
    根据你的选择,决定你需要多少美分的价格cost
    然后这个价格将打印在屏幕上Please insert{0}cents
      

  2.   

    看MSDN Library for Visual Studio 2005,这里啥都有!俺也初学,进步很快哈!
      

  3.   

    我用的是MSDN Library for Visual Studio 2003