Login to ZARP
Username: Password: Remember me

TOPIC: Hmm

Hmm 6 years 2 months ago #1014408

Doing C# at school and wanted to get ahead of the game a bit, but i can't seem to get my code to work. It's meant to be a calculator, but when i enter the first number, the program closes :/

Warning: Spoiler! [ Click to expand ]

Just wondering if anyone knows why. Thanks.
  • bunnyslippers69
  • bunnyslippers69's Avatar
  • Offline
  • Diamond Boarder
  • ZARP VIP Golden Blue Badge
  • Posts: 3539
  • Thanks received: 1185
  • Karma: 0
Login or register to post a reply.

Hmm 6 years 2 months ago #1014411

Good luck finding it! :lol:
  • Katje
  • Katje's Avatar
  • Offline
  • User is blocked
  • ZARP VIP
  • Posts: 5286
  • Thanks received: 844
  • Karma: -73
Login or register to post a reply.

Hmm 6 years 2 months ago #1014457

ASK Josh deadmonstor
  • A Good Pianist
  • A Good Pianist's Avatar
  • Offline
  • Spectacular Boarder
  • ZARP VIP Golden Blue Badge
  • A Wob A Bob Bob
  • Posts: 15000
  • Thanks received: 3911
  • Karma: 22
Login or register to post a reply.

Hmm 6 years 2 months ago #1014478

I have never programmed in C# before but I rewrote your entire program cause it was aids, keep it more simple next time with numbers instead of converting shit to strings (strings are really slow usually).

Warning: Spoiler! [ Click to expand ]
  • catboy sven ツ
  • catboy sven ツ's Avatar
  • Offline
  • Adept Boarder
  • ZARP VIP
  • Respected Zarp Contributor
  • Posts: 7197
  • Thanks received: 1544
  • Karma: -45
ex-minecraft owner, zarp legend (Was there during the infancy of Zarp), ex-ssrp admin, ex-teamspeak emblem (For SSRP admin & minecraft owner)








Last Edit: 6 years 2 months ago by catboy sven ツ. Reason: i'm a shit coder basically
Login or register to post a reply.

Hmm 6 years 2 months ago #1014495

Agent Aspect wrote:
I have never programmed in C# before but I rewrote your entire program cause it was aids, keep it more simple next time with numbers instead of converting shit to strings (strings are really slow usually).

Warning: Spoiler! [ Click to expand ]

Thanks, but i'm still confused at why my original program didn't work

nvm, it's probably because i'm a massive dribble and was using Read instead of ReadLine.
  • bunnyslippers69
  • bunnyslippers69's Avatar
  • Offline
  • Diamond Boarder
  • ZARP VIP Golden Blue Badge
  • Posts: 3539
  • Thanks received: 1185
  • Karma: 0
Last Edit: 6 years 2 months ago by bunnyslippers69.
Login or register to post a reply.

Hmm 6 years 2 months ago #1014499

Bunnyslippers69 wrote:
Agent Aspect wrote:
I have never programmed in C# before but I rewrote your entire program cause it was aids, keep it more simple next time with numbers instead of converting shit to strings (strings are really slow usually).

Warning: Spoiler! [ Click to expand ]

Thanks, but i'm still confused at why my original program didn't work

nvm, it's probably because i'm a massive dribble and was using Read instead of ReadLine.

You also have to use public, never programmed in C# before tho so I'm sure Max could prove me wrong...
  • catboy sven ツ
  • catboy sven ツ's Avatar
  • Offline
  • Adept Boarder
  • ZARP VIP
  • Respected Zarp Contributor
  • Posts: 7197
  • Thanks received: 1544
  • Karma: -45
ex-minecraft owner, zarp legend (Was there during the infancy of Zarp), ex-ssrp admin, ex-teamspeak emblem (For SSRP admin & minecraft owner)








Login or register to post a reply.

Hmm 6 years 2 months ago #1014504

Agent Aspect wrote:
Bunnyslippers69 wrote:
Agent Aspect wrote:
I have never programmed in C# before but I rewrote your entire program cause it was aids, keep it more simple next time with numbers instead of converting shit to strings (strings are really slow usually).

Warning: Spoiler! [ Click to expand ]

Thanks, but i'm still confused at why my original program didn't work

nvm, it's probably because i'm a massive dribble and was using Read instead of ReadLine.

You also have to use public, never programmed in C# before tho so I'm sure Max could prove me wrong...

I probably should of mentioned the fact that i've only done 1 lesson on C# and have no clue what most things are, thanks for the help.
  • bunnyslippers69
  • bunnyslippers69's Avatar
  • Offline
  • Diamond Boarder
  • ZARP VIP Golden Blue Badge
  • Posts: 3539
  • Thanks received: 1185
  • Karma: 0
Login or register to post a reply.
Time to create page: 0.099 seconds

172 PLAYERS ONLINE

Connect to server View Gametracker DarkRP 1
4/127
online
Connect to server View Gametracker Deathrun
0/40
online
Connect to server View Gametracker TTT
0/47
online
Connect to server View Gametracker Bhop
1/32
online
Connect to server View Gametracker Surf
0/32
online
Connect to server View Gametracker Prop Hunt
0/42
online
Connect to server View Gametracker Sandbox
0/42
online
Connect to server Discord
167/913
online
Top