- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
7 Posted Topics
Re: [QUOTE]ya i know that[/QUOTE] 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 behavior to classes. If you get bogged down in … ![]() | |
Re: [QUOTE]What's the difference between MS-Dos program and Windows program ?[/QUOTE] 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 would call a PE format … | |
Re: [QUOTE]From what I read in a few books, a static variable retains its value(s) throughout the lifetime of a program.[/QUOTE] 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 … ![]() | |
Re: [QUOTE]But i don't really get what happens when x < y[/QUOTE] 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. [QUOTE]The … | |
Re: 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 value of the current node as a string to the return … | |
Re: 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 [url]http://www.faqs.org/rfcs/rfc2616.html[/url] and [url]http://beej.us/guide/bgnet/[/url]. | |
Re: A type that depends on a template parameter needs to be qualified with the typename keyword. [code] template <typename T> int Histogram<T>::get_occurances(const T& obj) { [COLOR=Red]typename[/COLOR] map<T,int>::iterator find_occur = frequency.find(obj); if ( find_occur == this->frequency.end() ) { return 0; } return ( find_occur->second ); } [/code] |
The End.