Forum: C++ Dec 10th, 2007 |
| Replies: 4 Views: 936 Yes, obviously removing causes it to be put on one line, just wanted to let you know where the problem was :) |
Forum: C++ Dec 10th, 2007 |
| Replies: 4 Views: 936 On line 182, every time you output you also output a newline character. |
Forum: C# Dec 9th, 2007 |
| Replies: 5 Views: 900 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.
http://www.blackwasp.co.uk/TurnOnLineNumbering.aspx |
Forum: C# Dec 8th, 2007 |
| Replies: 3 Views: 834 Yes you can do explicit casts in c#.
Here's an article.
http://msdn2.microsoft.com/en-us/library/xhbhezf4(VS.71).aspx |
Forum: C Dec 8th, 2007 |
| Replies: 1 Views: 738 No one is going to finish your homework. If you are stuck or confused about something, ask a question. |
Forum: C# Dec 7th, 2007 |
| Replies: 2 Views: 591 You made some syntax errors.
case1: needs a space between case and 1
Case 3: should not be capitalized. |
Forum: C++ Dec 7th, 2007 |
| Replies: 5 Views: 2,080 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... |
Forum: C# Dec 7th, 2007 |
| Replies: 7 Views: 1,681 Excellent! Glad I could help. |
Forum: Computer Science Dec 5th, 2007 |
| Replies: 17 Views: 1,953 That being said, I loved your solution to the originally stated problem narue :) |
Forum: Computer Science Dec 5th, 2007 |
| Replies: 17 Views: 1,953 I suggest next time you make a puzzle like this do it in pseudo code as to not get hung on on syntax. You were obviously looking for a logic change in your code and we all could have avoided the... |
Forum: Computer Science Dec 5th, 2007 |
| Replies: 17 Views: 1,953 Ok looks like that was one of the (unintentional) problems i overlooked. Also missed the printf char problem.
With those two changes in place my original change on i-- -> n-- works |
Forum: Computer Science Dec 5th, 2007 |
| Replies: 17 Views: 1,953 thats embarrassing. I didn't try it but i assume the compiler complains about n being undeclared then. in which case change the semi colon to a comma, but then you need more than 1 change.. im lost |
Forum: Computer Science Dec 5th, 2007 |
| Replies: 17 Views: 1,953 int i ; n = 20 ;
for ( i = 0 ; i < n ; n--)
printf('x');
Well theres the simple one. |
Forum: C# Dec 5th, 2007 |
| Replies: 7 Views: 1,681 I've never used it, but console.readkey() might be what you are looking for. |
Forum: C# Dec 5th, 2007 |
| Replies: 7 Views: 1,681 Ahh i misread that. You can just use Console.readline() and process the input then. |
Forum: C# Dec 5th, 2007 |
| Replies: 7 Views: 1,681 Yes, you need to subscribe your form to a key event.
Something like:
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.KeyUpEvent);
public void KeyUpEvent(object sender,... |
Forum: C# Dec 5th, 2007 |
| Replies: 1 Views: 2,236 Create a data structure to represent a vector would be first. Then write an operator overload for addition. All very easy to do. |
Forum: C# Nov 30th, 2007 |
| Replies: 3 Views: 3,523 I've worth with tree's plenty, and i know how to count words in a file.
What specific problem do you need help with, lets see some code that your stuck on perhaps. |
Forum: Computer Science Nov 23rd, 2007 |
| Replies: 7 Views: 3,670 Really old thread to bump..
My first year cs course at university was in scheme, hes the free text we used.
http://www.htdp.org/ |
Forum: C# Nov 19th, 2007 |
| Replies: 4 Views: 1,021 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... |
Forum: Java Nov 18th, 2007 |
| Replies: 22 Views: 4,149 Perhaps you should clarify with your teacher since the only thing you are confused with is his wording.
FWIW my definition of a boolean array would be:
bool[] boolArray;
Which.. as I said... |
Forum: Java Nov 18th, 2007 |
| Replies: 22 Views: 4,149 boolean array = array of booleans.
in your op you said input was an array of booleans, now its not??? |
Forum: Java Nov 18th, 2007 |
| Replies: 22 Views: 4,149 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... |
Forum: C# Nov 17th, 2007 |
| Replies: 6 Views: 9,519 Look up how to use a switch statement. |
Forum: C# Nov 15th, 2007 |
| Replies: 4 Views: 909 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.... |
Forum: C# Nov 14th, 2007 |
| Replies: 3 Views: 3,523 .net doesnt provide a binary tree to my knowledge. However, here's a nice article explaining the process of coding one yourself.
http://msdn2.microsoft.com/en-us/library/ms379572(VS.80).aspx |
Forum: C# Nov 12th, 2007 |
| Replies: 3 Views: 1,431 Looks like invalidate will solve this problem. There's always an easier way to do it :)
My solution would work, its just needlessly complicated. |
Forum: C# Nov 12th, 2007 |
| Replies: 3 Views: 1,431 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,... |
Forum: Geeks' Lounge Nov 9th, 2007 |
| Replies: 52 Views: 4,156 I prefer most brands of bottled water to tap water. That being said, aquafina is terrible! |
Forum: Geeks' Lounge Nov 9th, 2007 |
| Replies: 5 Views: 698 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. |