HTML5¼¼Êõ

ÈçºÎʵÏÖÔÚWindowsÉÏÔËÐÐLinux³ÌÐò£¬¸½Ê¾Àý´úÂë - q303248153(5)

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-05-16 14:00 ÎÒÒªÆÀÂÛ( )

HelloElfLoader { class Loader {std::ifstream fileStream_; public :Loader( const std::string path);Loader(std::ifstream fileStream); void execute();};} ¹¹Ô캯ÊýÈçÏÂ, Ò²¾ÍÊDZê×¼µÄc++´ò¿ªÎļþµÄ´úÂë Hell

HelloElfLoader { class Loader { std::ifstream fileStream_; public: Loader(const std::string& path); Loader(std::ifstream&& fileStream); void execute(); }; }

¹¹Ô캯ÊýÈçÏÂ, Ò²¾ÍÊDZê×¼µÄc++´ò¿ªÎļþµÄ´úÂë

HelloElfLoader.cpp:

Loader::Loader(const std::string& path) : Loader(std::ifstream(path, std::ios::in | std::ios::binary)) {} Loader::Loader(std::ifstream&& fileStream) : fileStream_(std::move(fileStream)) { if (!fileStream_) { throw std::runtime_error("open file failed"); } }

½ÓÏÂÀ´½«ÊµÏÖÉÏÃæËù˵µÄ²½Öè, Ê×ÏÈÊǽâÎöELFÎļþ

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • ͨÓÃÍøÒ³µ÷Óñ¾µØÓ¦ÓóÌÐò·½°¸(windowsƽ̨) - СÁúÅ®ÏÈÉú

    ͨÓÃÍøÒ³µ÷Óñ¾µØÓ¦ÓóÌÐò·½°¸(windowsƽ̨) - СÁúÅ®ÏÈÉú

    2017-05-16 13:00

  • H5µ½µ×ÈçºÎ×öÊÓƵֱ²¥ - ¹ù¶«Éúblog

    H5µ½µ×ÈçºÎ×öÊÓƵֱ²¥ - ¹ù¶«Éúblog

    2017-05-13 11:01

  • cordova »ù±¾ÃüÁî ÒÔ¼°ÈçºÎÌí¼Ó£¬É¾³ý²å¼þ - huangenai

    cordova »ù±¾ÃüÁî ÒÔ¼°ÈçºÎÌí¼Ó£¬É¾³ý²å¼þ - huangenai

    2017-05-13 09:00

  • ÈçºÎ¿ìËÙ´¦ÀíÏßÉϹÊÕÏ - µ¹ÆïµÄ¿

    ÈçºÎ¿ìËÙ´¦ÀíÏßÉϹÊÕÏ - µ¹ÆïµÄ¿

    2017-05-02 12:01

ÍøÓѵãÆÀ
Ä