blackneos940
Active Member
Hey guys! :3 I'm back! And yes, I'm healthy, and have not fallen ill.... Though as for my mind, well.... But never mind all that. So I've been writing a Program in C#, and it won't Compile, with either
or Online. First, the Code:
So, if you use Mono to Compile it, it should throw these errors:
And it shows, obviously, that the Compilation failed. Any ideas, guys? Everywhere I searched Online says something about either a line or lines of Code missing a Bracket({}), a Semicolon( ;, but... It's all there. :\ Maybe my good friend @JasKinasis could shed some light on this issue.... :3 Thanks for any help, guys. And stay safe, and remember: stay /home
Bash:
mcs
C#:
// This Program is released under the 2-Clause BSD License.
//Copyright 2020 Redacted FBI oof
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// That's it! :) No restrictions. Just give credit. :) No, it won't blow up your PC. :)
using System;
using System.Net; // This is for remote communication. May be replaced later with a different Library.
namespace Systems_Go
{
class Arm_Create
{
public static string first_arm;
public int arm_one;
public Arm_Create()
{
first_arm = "Hellfire_One";
arm_one = 1;
}
}
public Arm_Create(string _first_arm, int _arm_one)
{
first_arm = _first_arm;
arm_one = _arm_one;
}
public void Test_Print()
{
Console.WriteLine("First Arm: " + first_arm);
Console.WriteLine("Arm One Created: " + arm_one);
}
class Hades
{
static void Main()
{
Console.WriteLine("Test_Run_One\n");
}
}
}
So, if you use Mono to Compile it, it should throw these errors:
Code:
H_A_D_E_S.cs(39,9): error CS1525: Unexpected symbol `Arm_Create', expecting `class', `delegate', `enum', `interface', `partial', `ref', or `struct'
H_A_D_E_S.cs(42,4): error CS1525: Unexpected symbol `first_arm', expecting `class', `delegate', `enum', `interface', `partial', `ref', or `struct'
H_A_D_E_S.cs(46,3): error CS1514: Unexpected symbol `}', expecting `.' or `{'
H_A_D_E_S.cs(48,9): error CS1525: Unexpected symbol `void', expecting `class', `delegate', `enum', `interface', `partial', `ref', or `struct'
Compilation failed: 4 error(s), 0 warnings
And it shows, obviously, that the Compilation failed. Any ideas, guys? Everywhere I searched Online says something about either a line or lines of Code missing a Bracket({}), a Semicolon( ;, but... It's all there. :\ Maybe my good friend @JasKinasis could shed some light on this issue.... :3 Thanks for any help, guys. And stay safe, and remember: stay /home