brightboy

u/brightboy


r/learnprogramming•

(ISSUE SOLVED) Hello, I am working on my C# skills and wanted to try making a mini Pokedex app that is based on Windows Forms.

The program is supposed to accept a value 1-9 and then open a second form to display the info for that Pokemon. It opens an error form if it is outside that range.

The error form part works.

When I enter a number 1-9, instead of the Dex form opening, nothing happens.

EDIT: Removed a while loop on DexEntry form so it opens now. Need to get the usrInput from Form1 to be read on DexEntry now.

EDIT 2: Solved my issue by using arguments and constructors. Added the usrInput to line 28 on MainForm and then added int poke to line 21 on DexEntry form. Reuploaded to repo

63

r/learnprogramming•
    class Program
{
    static void Main(string[] args)
    {
        string[] wordBank = { "banana", "elephant", "xylophone", "alligator", "pharmacy", "stereo", "leopard", "keyboard" };
        Random random = new Random();
        string wordToGuess = wordBank[random.Next(0, wordBank.Length)];

        StringBuilder display = new StringBuilder(wordToGuess.Length);
        for (int i = 0; i < wordToGuess.Length; i++)
            display.Append('*');

        WriteLine("\t\tWelcome to Guess A Word!");
        WriteLine("\t****************************************");
        Write("\nWord is: " + display);
        char[] guess = new ch
05

r/twinpeaks•

I am starting to think that Evil Coop owns/has a stake in the company that was watching the box from earlier in the season.

Evil Cooper made the weird call from prison, and then the guy at the company saw a red box on his screen and sent the hit out for Dougie.

If this is the case, then I also think the reason they were watching the box was to trap Good Cooper when he returned. This would mean the Arm killed the two on the couch so that when Agent Cooper appeared, he would not be trapped. EDIT: I had the sequence of events out of order in my head. thanks u/yrevvery!

Just something that hit me while re-watching in prep for the next episode!

1110




r/buildapc•

Asus Z170-A Mobo

i5-6600k

GTX 970

Corsair H100i GTX Liquid Cooler

EVGA 650 GS Power Supply

Just finished getting it all together, nothing appears damaged, cabling is all connected as instructed, won't power on.

I have disconnected all cabling and reconnected, still nothing.

Please help.

18

r/buildapc•

###Build Help/Ready:

Have you read the sidebar and rules? (Please do)

Yes

What is your intended use for this build? The more details the better.

Main rig died, this is my Christmas present to myself. Intended for gaming.

If gaming, what kind of performance are you looking for? (Screen resolution, FPS, game settings)

1440p with Gsync monitor, Ultra, best FPS

What is your budget (ballpark is okay)?

$1,300-$1,800 USD

In what country are you purchasing your parts?

US

PCPartPicker part list / Price breakdown by merchant

Type|Item|Pri

18