Type: Posts; User: TheGreatCthulhu
Search took 0.04 seconds.
July 19th, 2015, 09:55 AM
BTW, the reason this distinction is of certain practical importance, instead of being purely philosophical, is, for example, that you can, legitimately, use pointers (the language feature) to...
July 19th, 2015, 08:08 AM
I don't think that's the case, though! It's quite a semantics game we're playing here. :D
I was under the impression that PredicateNormative and others who were insisting on the distinction...
July 17th, 2015, 04:56 AM
I have a feeling that your assignment says that you should print it from "left to right" - check that (that's sort of where the recursion comes in - instead of just doing it in a loop).
July 14th, 2015, 02:51 AM
In addition to the above: the Template method pattern is more about defining a concrete sequence of steps for an operation/algorithm, but with the details of each step abstracted away, so that...
July 10th, 2015, 09:32 AM
Yeah - the whole point of the Composite pattern is to have an object composed out of smaller parts, but have the client code treat it the same way as any individual part (by letting the concrete...
Seems like you guys are talking about two different things here, while calling it the same name.
Value vs reference semantics is one thing - a concept that is related to the character, and the...
Sometimes, you just need to know what to look for ("northwind" in this case). Here, check these out:
MSDN: Working with Sample Databases
MSDN: How to: Install Sample Databases
Pointers points aside (heh! :) ), a few more things about the design question (downcasting in client code):
While type-casting from abstractions to concrete types in client code is not necessarily...
June 23rd, 2015, 06:54 AM
Also, after you add assembly & namespace references as described above, check you code for typos and syntax errors (there are both in the code you posted above):
PrincipleContext ctx = new...
June 11th, 2015, 02:14 AM
May I suggest to consider the text of the exercise once again and think about what it's trying to teach you - because I think that the way you are going about it is overly complicated.
To me, it...
April 16th, 2015, 09:14 AM
You seem confused about what your histogram should display. The number of calls to roll() has nothing to do with how many different numbers roll() can return. Those two things are independent. Say,...
April 14th, 2015, 04:47 PM
No, what he meant was: if you were to write some code that would insert the line breaks and save the output to a txt file, that code would have to parse the original xml file to achieve this - but...
April 14th, 2015, 12:46 PM
See this: http://stackoverflow.com/questions/4325714/wont-let-me-delete-rows-in-sql-server-2005-management-studio
Looks like your table somehow doesn't have a primary key.
Using SQL Server...
April 14th, 2015, 12:25 PM
Or, in case the user is allowed, but not required, to press enter, you can additionally handle the LostFocus event.
April 12th, 2015, 09:55 AM
P.S. For validation, you would check things like if the split results in the expected number of components, and you would catch any exceptions thrown by int.Parse(), etc. If you detect any problems,...
April 12th, 2015, 09:50 AM
That shouldn't be too hard to make. You would use some of the methods provided by the string class. Note that none of these methods alter the original string (string type is immutable) - they all...
April 9th, 2015, 04:58 AM
Yes, but, what are the details of the exception - stack trace, inner exception and all - there's probably a clue in there as to what is going on.
April 3rd, 2015, 05:53 AM
Also, is this a service by any chance? If so, take a look at this.
March 27th, 2015, 05:24 AM
Hi and welcome to the forums.
When posting code, please use the
tags - they will keep existing code formatting and help others read your code.
Now, about your question - um... what exactly...
January 15th, 2015, 06:00 AM
In addition to what Arjay said, let me just add a few thoughts. Your "manager" classes can do more than just store a list of things - as long as it conceptually makes sense, and as long as the...
October 31st, 2014, 01:25 PM
So far, this peace of code doesn't really do anything:
Private Sub lstNames_SelectedIndexChanged(sender As Object, e As EventArgs) Handles lstNames.SelectedIndexChanged
Dim query = From...
October 31st, 2014, 12:34 PM
Well, the main thing is to figure out how you'll arrange those images, both within a row, and the rows themselves. What you would do is collect all the rectangles in some list-like container...
October 31st, 2014, 10:23 AM
Here's what I've found on this page.
It seems that you can simply pin an arbitrary element of the array outside of your loop, and the entire array will be pinned - so you don't really need...
January 5th, 2014, 12:16 AM
Oh, I was switching among several tabs, didn't see you've answered already - and you gave it quite a bit more thought than I did.
Right - I forgot that the user input will still update the...
January 4th, 2014, 08:40 PM
Superbonzo, awesome post/topic! :D
A few points:
They are transition probabilities, but the "conditional" part is most likely not true - the process where one state collapses into some other...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!