First  |  Prev |  Next  |  Last
Pages: 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
Combinations of multiple sets
I have N number of sets of numbers and I want to get every possible combination from these numbers. For example: std::vector <int> set1; std::vector <int> set2; std::vector <int> set3; for (int i = 0; i < 2; ++i) set1.push_back (i); for (int i = 0; i < 16; ++i) set2.push_back (i); ... 17 Feb 2010 00:02
U++ 2070 released
Website: http://www.ultimatepp.org Download: http://code.google.com/p/upp-mirror/downloads/list U++ is BSD licensed C++ cross-platform rapid application development suite focused on programmers productivity without sacrificing runtime performance. What is new in version 2070: TheIDE: * User interface for F... 15 Feb 2010 18:53
File Handling
hi all, I am bit confused about usage of ifstream and fopen ( old C-Style), When exactly I should use ifstream and when to use old C-Style? Are there any advantages of using ifstream. As much I know ifstream in C++ is bit cleaner, more type safe. Are there any other advantages? Is ifstream usage is faster than ol... 17 Feb 2010 00:02
Passing pointers across implementation boundaries
Specifically, I'm thinking here about passing pointers to standard library objects across implementation boundaries (and, indeed, across DLL boundaries). Let us say that we have a shared library, implemented in MSVC, that exposes the following interface (pseudocode): // shared_lib_export.h extern "C" { ... 18 Feb 2010 20:42
global variables - an alternate approach
For starters the emphasis is on 'global' variables common to muliple translation units Coding standard states that global variables should be defined as static variables' within a class at public scope. One instance of this class should exist and the recommendation is to use the singleton design patten. IOW: ... 17 Feb 2010 00:02
C++ boxing
Is there a way to box a type in c++ like this: class Interface { public: virtual void foo() = 0; }; class A { public: void foo(); }; And then I could box this type like this: Interface * a = box_cast<Interface*>(new A()); perhaps, class B : public A, public virtual Interface { }; Mayb... 17 Feb 2010 11:03
Determine type of member variable
Given the following code, is it possible to declare an instance of bar without explicitly specifying the Class and Type? The compiler should know the complete type of &foo::value, so specifying the type more than once is tedious. Could decltype or something like that be used in C++0x? #include "stdafx.h" stru... 11 Feb 2010 15:02
STL efficiency question
I want to use a structure like this: std::map<std::pair<unsigned int, const wchar_t*>, wchar_t*> how fast is the search ? The use of the std::pair is a performance issue ? thanks ins advance -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First tim... 11 Feb 2010 15:03
dependencies
Can someone point me in the right direction to take the dependencies out of the following code ? for (i=0; i < m; i++) { n1 = n2; n2 = n2 + n2; e = -6.283185307179586/n2; a = 0.0; for (j=0; j < n1; j++) { c = cos(a); s = sin(a); a = a + e; for (k=j; k < n; k=k+n2) ... 10 Feb 2010 14:30
Call for Paper The International Journal of Computer Science (IJCS)
Call for Paper The International Journal of Computer Science (IJCS) publishes original papers on all subjects relevant to computer science, communication network, and information systems. The highest priority will be given to those contributions concerned with a discussion of the background of a practical problem,... 9 Feb 2010 13:57
First  |  Prev |  Next  |  Last
Pages: 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51