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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| static class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var input = "foo bar baz foo bar qux".Split(); |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #define TotalMemoryAmount 5000 ##UL | |
| #define MemRequestMin 40 ##UL | |
| #define MemRequestMax 1000 ##UL | |
| #define MemRequestSlice 20 ##UL | |
| #define MemThreshold 1 ##UL | |
| #define TotalTime 1000000 ##UL |
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 <cstdio> | |
| #include <utility> | |
| template<typename...> | |
| class tuple { }; | |
| template<typename T, typename... U> | |
| class tuple<T, U...> : tuple<U...> | |
| { | |
| public: |
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
| struct trace | |
| { | |
| trace() | |
| { | |
| std::cout << "trace()" << std::endl; | |
| } | |
| trace(const trace &) | |
| { | |
| std::cout << "trace(const trace &)" << std::endl; |
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 "stdafx.h" | |
| class z { }; | |
| template<typename> | |
| class s { }; | |
| template<typename, typename> | |
| class add { }; |
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 <stdio.h> | |
| int main(int argc, char **argv) | |
| { | |
| FILE *fi, *fo; | |
| char c1, c2; | |
| if (argc != 3) | |
| { | |
| printf("Usage: %s <in> <out>\n", argv[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
| private static string RtfToHtml(string s) | |
| { | |
| s = Regex.Replace(s, @"^\{\\rtf1?" + | |
| @"\\ansi" + | |
| @"(?:\\ansicpg)?" + | |
| @"(?:\\lang\d+)?" + | |
| @"(?:\\noproof\d+)?" + | |
| @"(?:\\uc\d )?", ""); | |
| var header = |
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
| #define PASTE(x,y) x##y | |
| #define COLON : | |
| // this class is: evil | |
| class H; | |
| typedef class H HH; | |
| /* | |
| class NotHere {}; | |
| */ | |
| namespace |
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 "stdafx.h" | |
| using namespace std; | |
| enum class Direction | |
| { | |
| L, | |
| R | |
| }; |
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
| /*-- | |
| Copyright (c) Microsoft Corporation. All rights reserved. | |
| THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY | |
| KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | |
| IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR | |
| PURPOSE. | |