Made my first C# program

Status
This thread has been locked.

Baby

King of Babies
Premium
Feedback score
24
Posts
1,036
Reactions
606
Resources
0
Image
Capture.PNG

Nothing fancy. It asks whether you want to generate a number with 7, 8, or 9 digits. If you don't pick 7, 8, or 9, it generates an error and asks for you to try again. Once you pick one of the numbers, it gives you a random number that is x many digits. After that, it asks you if you want another one. If you do, it will repeat the process. If not, it will close out of the console. If you have any suggestions on some other ideas I could try and create I would love to hear them. :)

Edit: You can now find the code here:

Feel free to critique my code :).

Edit 2: I'm also having trouble with the program being case sensitive with string inputs. I was wondering if anyone could help me with that. (Hence why on line 76 I write "no" and "No")
 

Attachments

  • Capture.PNG
    Capture.PNG
    9.1 KB · Views: 106
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

ZsZ

https://notzsz.com/
Supreme
Feedback score
20
Posts
299
Reactions
165
Resources
0
I thought you were going to show us the code so you could get suggestions lol. Anyways, good job!
 

Baby

King of Babies
Premium
Feedback score
24
Posts
1,036
Reactions
606
Resources
0
Looks good for strings (which are objects) but don't do it with primitive datatypes (like numbers)
Whoops my bad thank you for lettingme know. I will change my code amd add that in my notes :)
 

Ghast

Founding Father of Hypocrisy - https://artemis.ac
Supreme
Feedback score
54
Posts
2,096
Reactions
3,285
Resources
79
Looks nice, but with C# I just got straight into Windows Forms. Good start on it though, would love to help you out if you have any questions. I also suggest starting on the side C++ if you are interested in game hacks production.
 

Ghast

Founding Father of Hypocrisy - https://artemis.ac
Supreme
Feedback score
54
Posts
2,096
Reactions
3,285
Resources
79
Was it easy? Thinking of getting into Coding & development myself
If you’ve done java in the past it’s much easier than you think.
 

Ghast

Founding Father of Hypocrisy - https://artemis.ac
Supreme
Feedback score
54
Posts
2,096
Reactions
3,285
Resources
79
havent done java, learned like super basics as in booleans, integers, n some others like a year ago but just gave up, im thinking of just diving into c++ and making private shit for myself.
Haha well if you are motivated enough you’ll get there. Color detevtion in C# is a pain in the ass though.
 

Ghast

Founding Father of Hypocrisy - https://artemis.ac
Supreme
Feedback score
54
Posts
2,096
Reactions
3,285
Resources
79
i'm just gonna dive into the basic stuff as in cheating is my main focus. Focusing on basic trainers at first then learning about anticheat bypasses n whatnot
First you have to learn bit of both. C# for a dll injector and C++ for the undetectable feature.
 

Ghast

Founding Father of Hypocrisy - https://artemis.ac
Supreme
Feedback score
54
Posts
2,096
Reactions
3,285
Resources
79
Okay, this is epic.

I don't code in C# myself, but I think you should be able to use \n as a new line instead of having to write the whole Console.WriteLine(""); line.
That works for C++, not sure about C#, I think not though.
 

Baby

King of Babies
Premium
Feedback score
24
Posts
1,036
Reactions
606
Resources
0
Looks good for strings (which are objects) but don't do it with primitive datatypes (like numbers)
Fixed! :)

nice job!
Thank you! :)

Looks nice, but with C# I just got straight into Windows Forms. Good start on it though, would love to help you out if you have any questions. I also suggest starting on the side C++ if you are interested in game hacks production.
Nice! I will probably start Windows Forms soon, just having some fun in the console. I was looking into game hacks production for fun, so I'm interested in learning C++. Thank you :)

Was it easy? Thinking of getting into Coding & development myself
As someone who spent some time learning Java, it definitely wasn't too hard starting off.

Okay, this is epic.

I don't code in C# myself, but I think you should be able to use \n as a new line instead of having to write the whole Console.WriteLine(""); line.
Thank you for the suggestion! It does work and just allowed me to remove many lines of my code!
 
Status
This thread has been locked.
Top