Member-reference and copy constructor235 (6/26/2006 5:15:33 PM) comp.lang.c++ If a class contains a member that is a pointer, one should implement copy constructor. Should one implement copy constructor if a class contains a member that is a reference? -- Alex Vinokur email: a... Alex
Customizing Linker Directives File120 (12/16/2005 6:30:42 PM) comp.arch.embedded ------------------ INTEGRITY RTOS Green Hills C++ Compiler PowerPC embedded system ------------------ INTEGRITY RTOS contains default linker directives files for various BSPs and Simulator isimppc. Those file... Alex
[bash] Recursive grep230 (11/8/2005 6:52:02 PM) comp.unix.shell How to create "Recursive grep" (search in an directory and its sub-directories) in bash? Thanks. -- Alex Vinokur email: alex DOT vinokur AT gmail DOT com http://mathforum.org/library/view/10978.ht... Alex
<UML> Relationships for data members and function arguments221 (10/13/2005 1:10:31 PM) comp.object Here is some fragment of C++ code: class Foo1 { // Stuff }; class Foo2 { // Stuff } class Bar { private: Foo1 foo1; // data member public: Bar (const Foo2& foo2); // function argument } W... Alex
<UML> Activations in Sequence Diagram414 (10/13/2005 7:43:14 AM) comp.object The difference between Sequence-Diagram-1 and Sequence-Diagram-2 is in the following: * there is one activation under foo1:Foo1 Sequence-Diagram-1, * there are two activation under bar1:Bar1 Sequence-Diagr... Alex
string::c_str() and char*438 (10/10/2005 5:32:20 PM) comp.lang.c++ I have got two functions: void foo1(char* str) { // Stuff } void foo2(int size) { char* str; str = new char[size]; // Stuff-1 foo1(str) // Stuff-2 } Function foo1() can't be changed. Function foo2(... Alex
Bibliography and brackets317 (10/8/2005 8:06:04 AM) comp.text.tex I need brackets in bibliography. ------ From foo.tex ------ \begin{thebibliography}{6} % \bibitem {huffman:1} Huffman, D.: A method for the construction of minimum redundancy codes. Proc. of the IRE {\bfseries... Alex
Latex->pdf: Headers1724 (10/6/2005 5:01:29 AM) comp.text.tex I wrote some file foo.doc (Word document) with header using "View->Header and Footer". After that I created file foo.pdf. That file (foo.pdf) contains the header on each page. Now I would like to write file fo... Alex
Latex->pdf: Page numeration123 (10/6/2005 4:49:27 AM) comp.text.tex I wrote some file foo.tex and created file foo.pdf with using llncs.cls (LLNCS document class). But pages in foo.pdf are not numerated. What should one do to do to numerate the pages in foo.pdf? -- Alex Vin... Alex
Latex->pdf: Headers1724 (10/6/2005 5:01:29 AM) comp.text.tex I wrote some file foo.doc (Word document) with header using "View->Header and Footer". After that I created file foo.pdf. That file (foo.pdf) contains the header on each page. Now I would like to write file fo... alexvn6(40)
Bibliography and brackets317 (10/8/2005 8:06:04 AM) comp.text.tex I need brackets in bibliography. ------ From foo.tex ------ \begin{thebibliography}{6} % \bibitem {huffman:1} Huffman, D.: A method for the construction of minimum redundancy codes. Proc. of the IRE {\bfseries... alexvn6(40)
string::c_str() and char*438 (10/10/2005 5:32:20 PM) comp.lang.c++ I have got two functions: void foo1(char* str) { // Stuff } void foo2(int size) { char* str; str = new char[size]; // Stuff-1 foo1(str) // Stuff-2 } Function foo1() can't be changed. Function foo2(... alexvn6(40)
split string1129 (10/15/2005 12:40:11 AM) comp.lang.c++ Hello everyone! :-D OK, I've came across many functions for this, but none works! I need one that works like this: StringSplit(string str, string delim, vector results) Either with strings or char arrays, doe... chaos5410(5)
Member and static functions while assignment1325 (10/19/2005 12:55:22 PM) comp.lang.c++ I have the following problem. class Base { public: void (*pfunc) (int) = 0; }; class Derived : public Base { public: void (*pfunc) (int a) { // Stuff } }; class Foo { private: ... alexvn866(278)
strtok equiavalent in C++ ?527 (10/24/2005 4:57:34 PM) comp.lang.c++ // I am using strtok to break the string // For example: to extract 5 from the string below: // TEST 1,P,5,PASS // Below is my code in C: ptr =strtok(testbuff," \t\n,()"); ptr =s... tvn007(51)
unsigned char and -1752 (10/25/2005 6:11:27 AM) comp.lang.c I came across the following piece of code: #define ERROR -1 #define STATUS0 0 #define STATUS1 1 #define STATUS2 2 unsigned char foo() { if (/* condition-A */) return ERROR; /* is that safe? */ if (/*... alexvn866(278)
Customizing Linker Directives File120 (12/16/2005 6:30:42 PM) comp.arch.embedded ------------------ INTEGRITY RTOS Green Hills C++ Compiler PowerPC embedded system ------------------ INTEGRITY RTOS contains default linker directives files for various BSPs and Simulator isimppc. Those file... alexvn6(40)
MS vs Intel C++ compilers for Windows1726 (3/15/2006 6:30:04 PM) comp.lang.c++ What would be the C++ compiler producing the fastest code for Windows XP Pro (32-bit)? I have to choose between these two: - Visual C++ 2005 compiler - Intel C++ Compiler 9.0 for Windows My previous experien... Ozo