Jump to content




C#/C/C++ Related Stuff...And a C# program I worked VERY hard on!


  • You cannot reply to this topic
51 replies to this topic

#1 DSlink2010

  • Members
  • 50 posts

Posted 05 October 2012 - 11:55 PM

Hey guys.If you have ANY C# related stuff, post it here!And there will also be a download for my program I worked on!
Name of program: "Progress Bar Racers"
Some facts
Spoiler
No download, Computercraft forums doesn't allow .exe files :(/>
Download
But I can give you the code!
Spoiler


#2 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 06 October 2012 - 12:06 AM

View PostDSlink2010, on 05 October 2012 - 11:55 PM, said:

Hey guys.If you have ANY C# related stuff, post it here!And there will also be a download for my program I worked on!
Name of program: "Progress Bar Racers"
Some facts
Spoiler
No download, Computercraft forums doesn't allow .exe files :(/>
But I can give you the code!
Spoiler

You don't seem to trust the randomness of rand.Next()? And you should really learn to use loops, arrays and helper functions. Your code could be a couple of times shorter that way. But thanks for sharing this with us, it's all right.

Btw, what's your source for C# being the 5th hardest programming language?

#3 Fatal_Exception

  • New Members
  • 105 posts

Posted 06 October 2012 - 12:33 AM

View PostOrwell, on 06 October 2012 - 12:06 AM, said:

You don't seem to trust the randomness of rand.Next()?
Besides, calling Next() a bunch of times doesn't make the result any more random than calling it once.

#4 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 06 October 2012 - 12:39 AM

View PostFatal_Exception, on 06 October 2012 - 12:33 AM, said:

View PostOrwell, on 06 October 2012 - 12:06 AM, said:

You don't seem to trust the randomness of rand.Next()?
Besides, calling Next() a bunch of times doesn't make the result any more random than calling it once.

Only slightly, as it's pseudo-random, calling it multiple times makes it like unnoticeably less predictable. But yea, in practice, it makes no sense.

#5 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 06 October 2012 - 01:26 AM

cool if i had a C# compiler i would try this

#6 DSlink2010

  • Members
  • 50 posts

Posted 06 October 2012 - 02:38 PM

View PostOrwell, on 06 October 2012 - 12:06 AM, said:

View PostDSlink2010, on 05 October 2012 - 11:55 PM, said:

Hey guys.If you have ANY C# related stuff, post it here!And there will also be a download for my program I worked on!
Name of program: "Progress Bar Racers"
Some facts
Spoiler
No download, Computercraft forums doesn't allow .exe files :D/>
But I can give you the code!
Spoiler

You don't seem to trust the randomness of rand.Next()? And you should really learn to use loops, arrays and helper functions. Your code could be a couple of times shorter that way. But thanks for sharing this with us, it's all right.

Btw, what's your source for C# being the 5th hardest programming language?
Well.
Here.
1.Assembly
2.Binary(C# Is the 5th hardest with out it)
3.C++
4.C
5.C#

#7 DSlink2010

  • Members
  • 50 posts

Posted 06 October 2012 - 02:39 PM

View PostETHANATOR360, on 06 October 2012 - 01:26 AM, said:

cool if i had a C# compiler i would try this
You need:
Visual studio 2010 c#(Or ultimate)
Now you need to put all the needed items!

#8 DSlink2010

  • Members
  • 50 posts

Posted 06 October 2012 - 02:42 PM

You guys wondering why I called
next()
So much?If its only called once then all the integers would have the same number!
BTW: I used Visual Studio Ultimate 2010 with a serial to make it.

#9 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 06 October 2012 - 02:59 PM

View PostDSlink2010, on 06 October 2012 - 02:42 PM, said:

You guys wondering why I called
next()
So much?If its only called once then all the integers would have the same number!
BTW: I used Visual Studio Ultimate 2010 with a serial to make it.

>.< You really got some stuff you need to learn. Use the current time as the seed for the rand object, then it won't return the same numer eacht time. If you have 0 as the seed, then the output will be the same each time, even with 20 calls to Next.

End our ranking doesn't make any sense, binary is no programming language that is usable. and even if it would be, it's a hundred times more difficult than assembly. How is c++ more difficult than C? And you think that brainfuck or LISP are easier than those 5 (or actually 4)?

#10 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 06 October 2012 - 03:37 PM

Also, don't advertise your illegal IDE. -.-

#11 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 06 October 2012 - 08:43 PM

View PostDSlink2010, on 06 October 2012 - 02:38 PM, said:

View PostOrwell, on 06 October 2012 - 12:06 AM, said:

View PostDSlink2010, on 05 October 2012 - 11:55 PM, said:

Hey guys.If you have ANY C# related stuff, post it here!And there will also be a download for my program I worked on!
Name of program: "Progress Bar Racers"
Some facts
Spoiler
No download, Computercraft forums doesn't allow .exe files :D/>
But I can give you the code!
Spoiler

You don't seem to trust the randomness of rand.Next()? And you should really learn to use loops, arrays and helper functions. Your code could be a couple of times shorter that way. But thanks for sharing this with us, it's all right.

Btw, what's your source for C# being the 5th hardest programming language?
Well.
Here.
1.Assembly
2.Binary(C# Is the 5th hardest with out it)
3.C++
4.C
5.C#
i beleive that malbolge is the hardest programing language
hello world malbolge:
[code]<p> ('&%:9]!~}|z2Vxwv-,POqponl$Hjig%[email protected]@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#"
`CB]V?Tx

#12 billysback

  • Members
  • 569 posts

Posted 06 October 2012 - 09:17 PM

C# is not exactly hard, I tried it and made some simple programs, I just hadn't memorised the class and function names so I couldn't code very fast, that was the only real degree of difficulty (other than any difficulty from normal coding), though this was switching from a java background :D/>

#13 DSlink2010

  • Members
  • 50 posts

Posted 06 October 2012 - 10:53 PM

View Posttiin57, on 06 October 2012 - 03:37 PM, said:

Also, don't advertise your illegal IDE. -.-
Its not illegal.I bought the serial.

#14 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 07 October 2012 - 12:43 AM

View PostDSlink2010, on 06 October 2012 - 10:53 PM, said:

View Posttiin57, on 06 October 2012 - 03:37 PM, said:

Also, don't advertise your illegal IDE. -.-
Its not illegal.I bought the serial.
Hmm. Ok. I thought that "Visual Studio Ultimate with a serial" meant that you had pirated it. My apologies.

#15 1v2

  • Members
  • 89 posts
  • LocationAmsterdam

Posted 07 October 2012 - 08:23 AM

View PostDSlink2010, on 06 October 2012 - 02:38 PM, said:

View PostOrwell, on 06 October 2012 - 12:06 AM, said:

View PostDSlink2010, on 05 October 2012 - 11:55 PM, said:

Hey guys.If you have ANY C# related stuff, post it here!And there will also be a download for my program I worked on!
Name of program: "Progress Bar Racers"
Some facts
Spoiler
No download, Computercraft forums doesn't allow .exe files :D/>
But I can give you the code!
Spoiler

You don't seem to trust the randomness of rand.Next()? And you should really learn to use loops, arrays and helper functions. Your code could be a couple of times shorter that way. But thanks for sharing this with us, it's all right.

Btw, what's your source for C# being the 5th hardest programming language?
Well.
Here.
1.Assembly
2.Binary(C# Is the 5th hardest with out it)
3.C++
4.C
5.C#

Where is this based on? Looks like it's just something you made up.

#16 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 08 October 2012 - 06:19 PM

How do you judge how hard a programming language is?

Btw, how do you execute the program? I don't see a main function, only a lot of functions and variables(also constants) in a namespace. Or is that just how C# works? I only worked with C++ and C.

Also, how in the world would anyone claim that Assembly is harder than Machine Code?

#17 D3matt

  • Members
  • 830 posts

Posted 09 October 2012 - 12:14 AM

View Postmad, on 08 October 2012 - 06:19 PM, said:

Btw, how do you execute the program? I don't see a main function, only a lot of functions and variables(also constants) in a namespace. Or is that just how C# works? I only worked with C++ and C.
He forgot to include the entire program. He only included his code, and not the Windows Forms code block. This in and of itself will not work, unless you reconstruct the form that he used.

#18 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 09 October 2012 - 12:58 AM

View PostDSlink2010, on 05 October 2012 - 11:55 PM, said:

Hey guys.If you have ANY C# related stuff, post it here!And there will also be a download for my program I worked on!
Name of program: "Progress Bar Racers"
Some facts
Spoiler
No download, Computercraft forums doesn't allow .exe files :D/>
But I can give you the code!
Spoiler
I don't see how its so hard..
Its like java, and Visual Studio has event handlers on the object.
You don't have to make them.
Unlike java...

#19 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 09 October 2012 - 03:11 PM

Java is easy. At least that's what I would say. As stated earlier, I have no way of judging this.

#20 billysback

  • Members
  • 569 posts

Posted 09 October 2012 - 04:58 PM

I would say C# is easier than Java however...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users