Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

C++の話(本当にあった怖い話)

64,436 views

Published on

Python hack-a-thon 2010.07

用資料です。

Published in: Technology, Education
  • More than 5000 IT Certified ( SAP,Oracle,Mainframe,Microsoft and IBM Technologies etc...)Consultants registered. Register for IT courses at http://www.todaycourses.com Most of our companies will help you in processing H1B Visa, Work Permit and Job Placements
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

C++の話(本当にあった怖い話)

  1. 1. Python Hack-a-thon 2010.07 2010 7 10
  2. 2. name:Isoparametric blog:http://d.hatena.ne.jp/Isoparametric/ Blog …… …… Python/Django 2010 7 10
  3. 3. C++ C++ C 1983 C with Classes 2010 7 10
  4. 4. C++ 1. 2. 3. 4. 2010 7 10
  5. 5. Bjarne Stroustrup 2010 7 10
  6. 6. if, for, while C (RTTI) 2010 7 10
  7. 7. C++ (1986) C++ 2010 7 10
  8. 8. C++ C 2010 7 10
  9. 9. C++ C 2010 7 10
  10. 10. C++ 2010 7 10
  11. 11. C++ 2010 7 10
  12. 12. C++ 2010 7 10
  13. 13. 2010 7 10
  14. 14. #include <iostream> #include <algorithm> #include <boost/array.hpp> using namespace std; // letsboost int main() { boost::array<int, 100> ar; // int ar[100]; for( int i=0; i<ar.size(); ++i ) ar[i] = i * 100; boost::array<int, 4> ar2 = {{0, 100, 200, 300}}; if( equal( ar2.begin(), ar2.end(), ar.begin() ) ) cout << "same" << endl; return 0; } boost::array 2010 7 10
  15. 15. /* The following code declares class array, * an STL container (as wrapper) for arrays of constant size. * * See * http://www.boost.org/libs/array/ * for documentation. * * The original author site is at: http://www.josuttis.com/ * * (C) Copyright Nicolai M. Josuttis 2001. * * Distributed under the Boost Software License, Version 1.0. (See * accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * 10 Mar 2010 - (mtc) fill method added, matching resolution of the standard library working group. * See <http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#776> or Trac issue #3168 * Eventually, we should remove "assign" which is now a synonym for "fill" (Marshall Clow) * 10 Mar 2010 - added workaround for SUNCC and !STLPort [trac #3893] (Marshall Clow) * 29 Jan 2004 - c_array() added, BOOST_NO_PRIVATE_IN_AGGREGATE removed (Nico Josuttis) * 23 Aug 2002 - fix for Non-MSVC compilers combined with MSVC libraries. * 05 Aug 2001 - minor update (Nico Josuttis) * 20 Jan 2001 - STLport fix (Beman Dawes) * 29 Sep 2000 - Initial Revision (Nico Josuttis) * * Jan 29, 2004 */ #ifndef BOOST_ARRAY_HPP #define BOOST_ARRAY_HPP #include <boost/detail/workaround.hpp> #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) # pragma warning(push) # pragma warning(disable:4996) // 'std::equal': Function call with parameters that may be unsafe # pragma warning(disable:4510) // boost::array<T,N>' : default constructor could not be generated # pragma warning(disable:4610) // warning C4610: class 'boost::array<T,N>' can never be instantiated - user defined constru required #endif #include <cstddef> #include <stdexcept> #include <boost/assert.hpp> #include <boost/swap.hpp> 2010 7 10
  16. 16. 2010 7 10
  17. 17. 2010 7 10
  18. 18. 2010 7 10
  19. 19. 2010 7 10
  20. 20. 2010 7 10
  21. 21. 2010 7 10
  22. 22. 2010 7 10
  23. 23. 2010 7 10
  24. 24. 2010 7 10
  25. 25. 2010 7 10
  26. 26. 2010 7 10
  27. 27. 2010 7 10
  28. 28. 2010 7 10
  29. 29. 2010 7 10
  30. 30. 2010 7 10
  31. 31. 2010 7 10
  32. 32. 2010 7 10
  33. 33. 2010 7 10
  34. 34. 2010 7 10
  35. 35. 2010 7 10
  36. 36. 2010 7 10
  37. 37. 2010 7 10
  38. 38. 2010 7 10
  39. 39. 2010 7 10
  40. 40. 2010 7 10
  41. 41. 2010 7 10
  42. 42. 2010 7 10
  43. 43. 2010 7 10
  44. 44. 2010 7 10
  45. 45. 2010 7 10
  46. 46. 2010 7 10
  47. 47. 2010 7 10
  48. 48. 2010 7 10
  49. 49. 2010 7 10
  50. 50. 2010 7 10
  51. 51. 2010 7 10
  52. 52. 2010 7 10
  53. 53. 2010 7 10
  54. 54. 2010 7 10
  55. 55. 2010 7 10
  56. 56. 2010 7 10
  57. 57. 2010 7 10
  58. 58. 2010 7 10
  59. 59. 2010 7 10
  60. 60. 2010 7 12
  61. 61. 2010 7 12
  62. 62. 2010 7 10
  63. 63. 2010 7 10
  64. 64. 2010 7 10
  65. 65. http://togetter.com/li/6669 2010 7 10
  66. 66. 2010 7 10
  67. 67. 2010 7 10
  68. 68. 2010 7 10
  69. 69. C++ C++ 2010 7 10
  70. 70. 2010 7 10

×