心心向蓉吧 关注:18贴子:55
  • 2回复贴,共1

金庸群侠传问题

只看楼主收藏回复

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
int a,f=50,j=100,x=50,g=50,w=50,n=100,l=50;//福缘,金钱,侠义,根骨,悟性,内力,灵敏
Console.WriteLine("你认为一个武侠游戏最重要的是什么?");
Console.WriteLine("1.感人至深的剧情");
Console.WriteLine("2.绚丽多彩的武功招式");
Console.WriteLine("3.患难与共的队友");
Console.WriteLine("4.无敌天下的绝世神兵");
a = int.Parse(Console.ReadLine());
if (a == 1)
w = w + 20;
else if (a == 2)
n = n + 50;
else if (a == 3)
x = x + 20;
else
f = f + 20;
int b;
Console.WriteLine("在游戏中,你希望自己有怎样的家境家世?");
Console.WriteLine("1.家道中落,流落街头");
Console.WriteLine("2.家境殷实,富甲一方");
Console.WriteLine("3.农家小户,自食其力");
Console.WriteLine("4.武林世家,粗通拳脚");
b = int.Parse(Console.ReadLine());
if (b == 1)
f = f + 20;
else if (b == 2)
j = j + 100;
else if (b == 3)
x = x + 20;
else
g = g + 20;
int c;
Console.WriteLine("如果实际得宜,");
Console.WriteLine("1.家道中落,流落街头");
Console.WriteLine("2.家境殷实,富甲一方");
Console.WriteLine("3.农家小户,自食其力");
Console.WriteLine("4.武林世家,粗通拳脚");
Console.WriteLine("{0},{1},{2},{3}", w, n, x, f);
}
}
}


1楼2016-03-07 14:21回复
    int c;
    Console.WriteLine("如果机缘得宜,有位高人答应收你为徒是因为……");
    Console.WriteLine("1.醇厚的天性");
    Console.WriteLine("2.根骨资质俱佳");
    Console.WriteLine("3.资质异常低劣,高人要挑战极限");
    Console.WriteLine("4.高人要挂了,急于找个接班人传授武功");
    c = int.Parse(Console.ReadLine());
    if (c == 1)
    x = x + 20;
    else if (c == 2)
    g = g + 20;
    else if (c == 3)
    f = f + 20;
    else
    n = n + 50;


    2楼2016-03-07 15:10
    回复
      Image img = Image.FromFile(@"C:/Users/Public/Pictures/Sample Pictures/002.jpg");//双引号里是图片的路径
      pictureBox1.Image = img;


      3楼2016-03-16 16:09
      回复