大约有 10,160 项符合查询结果(耗时:0.0235秒) [XML]
Why use a prime number in hashCode?
I was just wondering why is that primes are used in a class's hashCode() method? For example, when using Eclipse to generate my hashCode() method there is always the prime number 31 used:
...
Difference between a user and a schema in Oracle?
What is the difference between a user and a schema in Oracle?
15 Answers
15
...
What happens if I define a 0-size array in C/C++?
Just curious, what actually happens if I define a zero-length array int array[0]; in code? GCC doesn't complain at all.
7...
JavaScript function to add X months to a date
I’m looking for the easiest, cleanest way to add X months to a JavaScript date.
18 Answers
...
Sending an HTTP POST request on iOS
I'm trying to send an HTTP Post with the iOS application that I'm developing but the push never reaches the server although I do get a code 200 as response (from the urlconnection). I never get a response from the server nor does the server detect my posts (the server does detect posts coming from a...
Breadth First Vs Depth First
When Traversing a Tree/Graph what is the difference between Breadth First and Depth first? Any coding or pseudocode examples would be great.
...
How to make a Java thread wait for another thread's output?
I'm making a Java application with an application-logic-thread and a database-access-thread.
Both of them persist for the entire lifetime of the application and both need to be running at the same time (one talks to the server, one talks to the user; when the app is fully started, I need both of t...
In Python, when to use a Dictionary, List or Set?
When should I use a dictionary, list or set?
11 Answers
11
...
Why don't C++ compilers define operator== and operator!=?
I am a big fan of letting the compiler do as much work for you as possible. When writing a simple class the compiler can give you the following for 'free':
...
How do I parse a string with a decimal point to a double?
I want to parse a string like "3.5" to a double. However,
18 Answers
18
...
