Forum: C Apr 20th, 2006 |
| Replies: 2 Views: 1,140 The result of division is 0 and the remainder is x. 2 % 6 would result in 2. If you assign the result back to x, the behavior is a no-op because the same value is assigned back.
Yes. Let's say... |
Forum: C++ Apr 19th, 2006 |
| Replies: 19 Views: 2,505 Then all you need to do is apply it. Rather than think of how many classes you need or the relationships between classes this early, think of a solution and map the unique collections of data and... |
Forum: C++ Apr 19th, 2006 |
| Replies: 5 Views: 4,031 The file format and any inherent capabilities or limitations of the file format. A DOS program is what people tend to call executable files with the COM format, and a Windows program is what you... |
Forum: Java Apr 17th, 2006 |
| Replies: 6 Views: 19,235 Returning the reversed list as a string is even easier than actually changing the links. When you get to the end of the list, return the value as a string. On the way back, append a comma and the... |
Forum: C Apr 17th, 2006 |
| Replies: 11 Views: 1,878 Oh, forgive me. I misunderstood. Unfortunately, I can't see how your program would be able to correctly parse an expression with no spaces unless you force a certain number of digits on each operand.... |
Forum: C++ Apr 17th, 2006 |
| Replies: 1 Views: 14,495 It's as simple as connecting a socket to the web server and speaking HTTP to it. That's hardly simple, of course, but the two stops you need to make are http://www.faqs.org/rfcs/rfc2616.html and... |
Forum: C Apr 17th, 2006 |
| Replies: 11 Views: 1,878 There are several different uses for the static keyword. When applied to a global variable, static means that the variable has internal linkage. In other words, the variable is only visible to the... |
Forum: C Apr 17th, 2006 |
| Replies: 2 Views: 1,655 A type that depends on a template parameter needs to be qualified with the typename keyword.
template <typename T> int Histogram<T>::get_occurances(const T& obj)
{
typename... |