1. int i0 = 10; size_t sz = [B]__alignof[/B]( &i0 ); std::cout << "\n\tsz = " << sz << "\n"; gcc il da valid cu -std=c++98 -pedantic 2. as sorta sirul (ma gandesc), iar la final min/max sunt evidente. mergesort, quicksort, ... naiba sa le ia, toate au un worst case O(n log n) 4. Furaciune de pe SO. Pana acum n-am avut motiv sa scriu asa ceva class Base; class Blocaj { [B]private[/B]: Blocaj(){}; [B]friend[/B] class Base; }; class Base : [B]virtual[/B] Blocaj { public: Base(){}; }; class Derived : public Base { public: Derived(){}; }; int main(int, char**) { Derived b(); return 0; } main.cpp: In constructor ‘Derived :: Derived()’: main.cpp:14:2: error: ‘Blocaj :: Blocaj()’ is private Blocaj(){}; ^ main.cpp:26:11: error: within this context Derived(){}; ^ 6. autoptr.hpp - mihaivasilian - Personal source code (c++) repository. - Google Project Hosting O incercare timida.