SethElite, Lern2C#
#1
Code:
using System;
using System.Windows.Forms;
using System.InteropServices;

namespace ICWatUDidThar
{
    public class Program
    {
    [STAThread]
    public static void Main(string[] args)
    {
        Application.Run(new MainForm());
    }
    }
    
    public partial class MainForm
    {
    bool iSeeWhatYouDidThere;
    
    public MainForm()
    {
        InitializeComponents();
        iSeeWhatYouDidThere = false;
        this.Click += new MouseClickEventHandler(this.onClick);
    }

    public void onClick(MouseClickEventArgs e)
    {
        iSeeWhatYouDidThere = true;`
    }
    }
}
Reply
#2
using System;
using System.Windows.Forms;
using System.InteropServices;

namespace ICWatUDidThar
{
public class Program
{
[STAThread]
public static void Main(string[] args)
{
Application.Run(new MainForm());
}
}

public partial class MainForm
{
bool iSeeWhatYouDidThere;

public MainForm()
{
InitializeComponents();
iSeeWhatYouDidThere = false;
this.Click += new MouseClickEventHandler(this.onClick);
}

public void onClick(MouseClickEventArgs e)
{
iSeeWhatYouDidThere = true;`
}
}
}
Reply
#3
Is it just me or is code tags really f'ucking annoying. Use a quote tag so i can see the whole damn code.
Reply
#4
Takebacker Wrote:Is it just me or is code tags really f'ucking annoying. Use a quote tag so i can see the whole damn code.

Care to explain? How are they annoying?
Reply
#5
You wouldn't see anything different if you used a quote tag, noob.
Reply
#6
Greg Wrote:You wouldn't see anything different if you used a quote tag, noob.

Nooooob.
It doesn't window.

Quote:using System;
using System.Windows.Forms;
using System.InteropServices;

namespace ICWatUDidThar
{
public class Program
{
[STAThread]
public static void Main(string[] args)
{
Application.Run(new MainForm());
}
}

public partial class MainForm
{
bool iSeeWhatYouDidThere;

public MainForm()
{
InitializeComponents();
iSeeWhatYouDidThere = false;
this.Click += new MouseClickEventHandler(this.onClick);
}

public void onClick(MouseClickEventArgs e)
{
iSeeWhatYouDidThere = true;`
}
}
}

vs.

Code:
using System;
using System.Windows.Forms;
using System.InteropServices;

namespace ICWatUDidThar
{
    public class Program
    {
    [STAThread]
    public static void Main(string[] args)
    {
        Application.Run(new MainForm());
    }
    }
    
    public partial class MainForm
    {
    bool iSeeWhatYouDidThere;
    
    public MainForm()
    {
        InitializeComponents();
        iSeeWhatYouDidThere = false;
        this.Click += new MouseClickEventHandler(this.onClick);
    }

    public void onClick(MouseClickEventArgs e)
    {
        iSeeWhatYouDidThere = true;`
    }
    }
}
Reply
#7
Greg Wrote:You wouldn't see anything different if you used a quote tag, noob.

Lrnthediffbetweencodeandquote noob. Rolleyes
Reply
#8
You still see all characters in both quite and code tags.
Reply
#9
if you have a 19'' monitor or better.
Reply
#10
I'm using a 17''.
Reply
#11
Greg Wrote:You wouldn't see anything different if you used a quote tag, noob.

You would. No freaking whitespace. Preferring Kortesanov's code, apart from the `, ofc.

Brb making fancy C#-script.
Reply
#12
Greg Wrote:You still see all characters in both quite and code tags.

I don't.

 This is what i see.
Reply
#13
Maybe it's my resolution? Hell if I know.

 Spoiler
Reply
#14
It's the skin that does it.
Reply
#15
It depends on the forum skin. Doesn't appear correctly in Fusion.
Reply
#16
see that screenshot of greg's

he's using MY WINDOWS SKIN...
Reply
#17
I should write all my posts in code tags now, itll be n since i wont use breaks Goggleemoticon
Reply
#18
Heidi Wrote:It depends on the forum skin. Doesn't appear correctly in Fusion.

Nowai.

L> Code tag fix for fusion.
Reply
#19
Code:
public class CWhatIDo{
    
    public static void Main() {
        int[] arr = new int[]
                    {67, 29, -71, 1, 85, -78, -22, 58, 10, -70,
                     61, 14, -56, -15, 56, 7, -63, 2, -6, 9, 2,
                     -14, -4, 20, 61, 4, -56, -18, 10, 0, 46, 20,
                     -67, 4, 59, -13, -63, 14, -4, 50, 15, -57,
                     52, -2, -65, -2, 4, 55, 11, -78, 25, 4, -8,
                     -2, -4, 52, 1, -51, 8, -14, 10, 6, -23, -5,
                     28, 54, -10, -66, 71, 1, -50, -7, -21, 22,
                     59, 2, -57, 52, -14, -42, 2, -19, 7, 55, 16,
                     -56, -15, 56, 16, -79, 16, 47, 10, -70, 61,
                     14, -56, -15, 56, 1, -51, 8, -14, 10, 6, -23,
                     -5, 77, 1, -53, -25, 6, 19, -13, -12, 68, 15,
                     -56, -15, 56, -2, -52, -2, 5, -18, 93, -79,
                     84, -59, -33, -4, 18, -14, 16, 47, 30, -3,
                     -82, 55, -60, -7, 6, 6, 9, -22, 82, -18,
                     -46, 4, 46, 15, -56, -19, 12, 63, -1, -76,
                     -6, 4, 20, -12, 61}; //Wee.
        char[] chars = new char[arr.Length];
    
        int diff = arr[0];
        int n = arr[0];
        chars[0] = arr[0];
        Console.Write(chars[0]);
        for (int i = 1; i < arr.Length; i++){ // I herd you like decoding it.
            diff += arr[i];
            n ^= diff;
            chars[i] = (char)n;
            Console.Write(chars[i]);
        }
    }
}
Reply
#20
 Spoiler

ic (too lazy to install C# compiler)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)