This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <boost/asio.hpp> | |
| using namespace std; | |
| using namespace boost; | |
| using namespace boost::asio; | |
| using namespace boost::asio::ip; | |
| using namespace boost::system; | |
| int main(int argc, char *argv[]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <locale> | |
| using namespace std; | |
| int main() | |
| { | |
| setlocale(LC_CTYPE,""); | |
| wchar_t orig = 2222; //3333 is the deciaml value of unicode character. | |
| wcout <<orig<< endl; | |
| return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <clang-c/Index.h> | |
| #include <iostream> | |
| #include <string> | |
| ///////////////////////////////////////////////////// | |
| ///////////////////////////////////////////////////// | |
| // gcc -I /data/mag/ut0tyb/llvm-3.0/include/ /data/mag/ut0tyb/llvm-3.0/lib/libclang.a syntax-check.cpp | |
| ///////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string> | |
| struct List{ | |
| int Data; | |
| struct List *Next; | |
| }; | |
| int sum(struct List *Node) { | |
| int result = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace { | |
| int GlobalValue = 5; | |
| } | |
| class AAA | |
| { | |
| public: | |
| int aaa; | |
| private: | |
| int bbb; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ace/Time_Value.h> | |
| #include <ctime> | |
| #include <iostream> | |
| #include <deque> | |
| #include <vector> | |
| #include <list> | |
| #include <limits> | |
| using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| bool f (const bool& b = bool(true)) | |
| { | |
| return b; | |
| } | |
| using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string> | |
| #include <cstring> | |
| int main() | |
| { | |
| // const std::string test (0/*NULL*/); | |
| const std::string test (0/*NULL*/, std::strlen(0)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <algorithm> | |
| #include <iostream> | |
| #include <iterator> | |
| #include <string> | |
| #include <utility> | |
| #include <vector> | |
| using namespace std; | |
| // -------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <algorithm> | |
| #include <iostream> | |
| #include <iterator> | |
| #include <string> | |
| #include <utility> | |
| #include <vector> | |
| using namespace std; | |
| // -------------------------------------------------------------------------- |