|
What is the difference from an Array compared to Dynamic Array ?
Started by H4cKL0rD on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The difference in the below:
int x = 10; int array1[10]; int *array2 = new char[x];
Is that array2 is pointing to the first element... .
A dynamic array's size can be determined at runtime.
The main difference is that a dynamic array is created on the heap .
|
|
Hi All,
I wanted to know how does Java/C# scale up compared to C++ with reference to financial industry projects ?
Thanks.
Started by Rachel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This is probably irrelevant if you're not a quantitative analyst (quant).... .
C++ is traditionally associated with finance applications because people use it to code fast monte-carlo models for pricing derivative securities .
Depends on the type of system.
|
|
In the assembly opcode cmovl, what gets compared? For example: EAX: 2 EBX: 1
cmovl eax,ebx
What is the result? Which one needs to be less so they can be moved?
Thank you!
Started by Ryan on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Cmovl ebx, eax ; if (ebx < ecx (comparison based on flags)) ebx = eax
cmov doesn't do a comparison, it uses... .
Cmp ebx, ecx ; compare ebx to ecx and set flags.
It should be preceded by another instruction that sets flags appropriately, like cmp .
|
Ask your Facebook Friends
|
Hi,
My question is regarding design patterns, why most of the Web Applications currently employs Model-View-Controller Design Patterns as compared to other Design Patterns ?
Thanks.
Started by Rachel on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In some cases, it may be overused - but generally it is a good choice for web applications... .
Well, almost all languages support it - it is a well known, easily recognized and well understood design pattern that fits into the paradigm of most web applications .
|
|
In various c++ code you often see different usage of strings: PWSTR, char*, std::string, CString, etc ...
When is the best time to use PWSTR as compared to any other string type?
Started by Brian T Hannan on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Only when you interface with someone....
By default, you should use std::string / std::wstring.
This is a, according to naming convention used in Windows, pointer to a string of wide-characters .
When whichever library you are working with wants a PWSTR .
|
|
What is the impact of namespaces in c++ linkages compared to linkages in c?
Is it possible to make a name that has internal linkage to external linkage just by using namespace.Similarly the other way around.
Started by yesraaj on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you have two classes....
If you have two functions with the same signatures in different namespaces they link into one file just fine .
In general, namespace name is prepended to any enclosed entity's name before the name is mangled and goes to the linker .
|
|
Possible Duplicate:
What are the differences between Generics in C# and Java… and Templates in C++?
What are the differences between C# generics compared to C++ templates? I understand that they do not solve exactly the same problem, so what are the pros...
Started by bjarkef on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://msdn.microsoft....
This looks like a handy reference.
Http://blogs.msdn.com/csharpfaq/archive/2004/03/12/88913.aspx
Roughly, much of the difference has to do with the fact that templates are resolved at compile-time, and generics are resolved at runtime .
|
|
ZeroC's ICE (www.zeroc.com) looks interesting and I am interested in looking at it and comparing it to our existing software that uses WCF. In particular, our WCF app uses server callbacks (via HTTP).
Anybody who's compared them? How did it go? I'm particularly...
Started by cruizer on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I did a very terse review of ICE a few years ago, and although I haven't compared them directly.
|
|
C# 3/3.5 includes a set of new features which Java does not support (linq, wwf, lambda expressions, etc). C# 1.0,1.1 and 2.0 was comparable to Java in many ways. What do you think of this? do you agree? Is this a good thing? What is the future for both...
Started by E. on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Yes, Mono project is coming along way, but it will always lag behind MS developmental... .
I think Java will continue to be the leading language for cross-platform development, whereas C# will be the primary language for Windows applications (ignoring C++) .
|
|
I'm thinking of upgrading to Windows 7, having missed Vista (well, "missing" is not really the word :-), so I was wondering, how do you think Windows 7 will run on something like this: HP 6715s , compared to XP?
I know what the official recommendations...
Started by ldigas on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at superuser):
I have upgraded my pc, an Intel Core2Duo.
But compared to Windows XP & Vista, it does pretty well.
|