operator (4,790)


c++ - What are the barriers to understanding pointers and what can be done to overcome them?

c++ - What are the barriers to understanding pointers and what can be done to overcome them?

Why are pointers such a leading factor of confusion for many new, and even old, college level students in C or C++? Are there any tools or thought processes that helped you understand how pointers wor…


sql - How to pass a comma separated list to a stored procedure?

So I have a Sybase stored proc that takes 1 parameter that's a comma separated list of strings and runs a query with in in an IN() clause: CREATE PROCEDURE getSomething @keyList varchar(4096) AS SELE…


Are the shift operators(<<,>>) arithmetic or logical in C?

In C, are the shift operators(<<,>>)arithmetic or logical?…


F# curried function

Anyone have a decent example, preferably practical/useful, they could post demonstrating the concept?…


Assignment inside Perl ternary conditional operator problems

This snippet of Perl code in my program is giving the wrong result. $condition ? $a=2:$a=3;print $a; No matter what the value of $condition is, the output is always 3, how come?…


xml - Reverse Find in a string

I need to be able to find the last occurrence of a character within an element. For example:<mediaurl>http://www.blah.com/path/to/file/media.jpg</mediaurl> If I try to locate it through using substr…


c++ - Can placement new for arrays be used in a portable way?

Is it possible to actually make use of placement new in portable code when using it for arrays? It appears that the pointer you get back from new[] is not always the same as the address you pass in(5.…



search - WildcardQuery error in Solr

I use solr to search for documents and when trying to search for documents using this query "id:*", I get this query parser exception telling that it cannot parse the query with*or ? as the first c…


c++ - What is the most effective way for float and double comparison?

What would be the most efficient way to compare two double or two float values? Simply doing this is not correct: bool CompareDoubles1(double A, double B){return A== B;}But something like: bool Compar…


When should you use 'friend' in C++?

I have been reading through the C++ FAQ and was curious about the friend declaration. I personally have never used it, however I am interested in exploring the language. What is a good example of usin…




example and java operators string with function not how javascript