jackytank
New member
- Joined
- Apr 14, 2019
- Messages
- 3
- Programming Experience
- Beginner
Hi everyone ! I'm a C# beginner and I've wrote my first code in Visual Studio Code ( C# extension included , .NET core SDK debugger )
my code is all about take the input of user then check it whether it's "secret" then it'll open a MP4 files , but something went wrong there I have no idea about , although I tried alot of solutions ...
after I typed "secret" it's appear a dialog :
what I done wrong guys ... ? tks for visit my thread
my code is all about take the input of user then check it whether it's "secret" then it'll open a MP4 files , but something went wrong there I have no idea about , although I tried alot of solutions ...
C#:
using System;
using System.Diagnostics;
namespace Secret
{
class Find
{
static void Main()
{
Console.WriteLine("Enter a secret code");
string line = Console.ReadLine();
if(line=="secret")
{
Process.Start(@"d:\\haha.mp4");
}
else
{
Console.WriteLine("You will never find my secret hahahahahahaahahahahahahahah");
Console.ReadLine();
}
}
}
}
after I typed "secret" it's appear a dialog :
what I done wrong guys ... ? tks for visit my thread