- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
18 Posted Topics
Re: What have you done so far? Can we see some code so we know how to help. Without anything I'd say learn how to handle mouse event. Having a click handler on a form would allow you to create rectangles. | |
Re: Which IDE are you using? If its visual studio you can do it under the Tools->Options tab. Heres a link for where it is from there. [url]http://www.blackwasp.co.uk/TurnOnLineNumbering.aspx[/url] | |
Re: I prefer most brands of bottled water to tap water. That being said, aquafina is terrible! | |
Re: On line 182, every time you output you also output a newline character. | |
Re: Yes you can do explicit casts in c#. Here's an article. [url]http://msdn2.microsoft.com/en-us/library/xhbhezf4(VS.71).aspx[/url] | |
Re: No one is going to finish your homework. If you are stuck or confused about something, ask a question. | |
Re: Haha, I took that course at UW 4 months ago :) As for the OP, its not very hard to implement once you understand what you are trying to do. Wikipedia always helped me with these kinds of topics. Here are a couple of useful articles. [url]http://en.wikipedia.org/wiki/Linear_probing[/url] [url]http://en.wikipedia.org/wiki/Hash_table[/url] | |
Re: You made some syntax errors. case1: needs a space between case and 1 Case 3: should not be capitalized. | |
Re: Yes, you need to subscribe your form to a key event. Something like: [Code] this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.KeyUpEvent); public void KeyUpEvent(object sender, KeyEventArgs e){ //Code here to handle specific keys } [/Code] Can alternative use KeyDown or KeyPress events instead of Keyup. | |
Re: Look up how to use a switch statement. | |
Re: [code=cplusplus] int i ; n = 20 ; for ( i = 0 ; i < n ; n--) printf('x'); [/code] Well theres the simple one. | |
Re: Create a data structure to represent a vector would be first. Then write an operator overload for addition. All very easy to do. | |
Re: Really old thread to bump.. My first year cs course at university was in scheme, hes the free text we used. [url]http://www.htdp.org/[/url] | |
Re: .net doesnt provide a binary tree to my knowledge. However, here's a nice article explaining the process of coding one yourself. [url]http://msdn2.microsoft.com/en-us/library/ms379572(VS.80).aspx[/url] | |
Re: Did you not read what s.o.s wrote. Write a function to convert your boolean array (true/false array) into a binary array. Its a really simple task. Then use your existing tester to take the binary array and convert to a decimal. | |
Re: The % operator, or modulo operator returns the remainder when you divide the numbers. Ex. 5%2 = 1 4 % 2 = 0 In your code the statement if ((num % x) == 0) checks to see if num is divisible. If it is, the number is obviously not prime. | |
Re: What I would do is create a data structure to keep track of the places you have clicked and any corresponding info you need, then when the form is minimized/maximized/given focus/whatever else, redraw all the circles. What i think is happening, is the form 'forgets' whats been drawn when you … | |
Re: Putty is my default ssh client. Make sure your Debian VM is running the ssh process to allow ssh connections. its 'sshd' of the top of my head. |
The End.