This file contains 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
/** A set of tests for the C++ keyword mutable. | |
* | |
* Compile with: | |
* g++ -Wall test_cpp_mutable.cpp -o test_cpp_mutable | |
*/ | |
#include <iostream> | |
#include <cassert> |
This file contains 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
/** Example showing how to print "Hello World" before main(). | |
* Expected output: | |
* Hello World | |
* Hello from main() | |
* | |
* Compile with: | |
* g++ -Wall test_cpp_print_before_main.cpp -o test_cpp_print_before_main | |
*/ | |
This file contains 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
/** An example of a virtual destructor. | |
* | |
* Compile with: | |
* g++ -Wall test_cpp_virtual_destructor.cpp -o test_cpp_virtual_destructor | |
*/ | |
#include <iostream> | |
This file contains 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 <fstream> | |
#include <vector> | |
#include <string> | |
#include <algorithm> | |
using namespace std; | |
This file contains 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 <fstream> | |
#include <vector> | |
#include <string> | |
#include <algorithm> | |
#include <cstdlib> | |
using namespace std; | |
This file contains 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> | |
using namespace std; | |
/// Simple run-length encoding program. | |
/// | |
/// Example usage: |
This file contains 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> | |
using namespace std; | |
/// Output the n-th Fibonacci number. | |
/// http://en.wikipedia.org/wiki/Fibonacci_number | |
/// | |
int main(int argc, char* argv[]) | |
{ |
This file contains 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
class itemwalk(object): | |
def __init__(self, obj): | |
self.objs = [(obj, [])] | |
self.obj = None | |
self.path = None | |
self.keys = [] | |
This file contains 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
defmodule Mix.Tasks.Compile.Comeonin do | |
@shortdoc "Compiles Comeonin" | |
def run(_) do | |
File.rm_rf!("priv") | |
File.mkdir("priv") | |
{exec, args} = case :os.type do | |
{:win32, _} -> | |
Exvc.vc_env() |> System.put_env | |
{"nmake", ["/F", "Makefile.win", "priv\\bcrypt_nif.dll"]} |