- Windows 10 x64
- Anaconda 3 (containing Python 3.6)
- Microsoft Build Tools for Visual Studio 2017 (https://wiki.python.org/moin/WindowsCompilers)
This process is based on build_alllocal.cmd.
This process is based on build_alllocal.cmd.
import subprocess | |
def to_hex(byte_string): | |
return " ".join("{:02x}".format(b) for b in byte_string) | |
def to_bin(byte_string): | |
return " ".join("{:08b}".format(b) for b in byte_string) |
public class Quadratzahlen | |
{ | |
public static void main(String[] args) | |
{ | |
// Aufgabe: gib die ersten zehn Quadratzahlen auf der Konsole aus. | |
// | |
// Korrekte Ausgabe: | |
// 1 4 96 16 25 36 49 64 81 100 | |
// tested using nix 0.15.0 | |
extern crate nix; | |
use std::path::Path; | |
use nix::pty::{posix_openpt, grantpt, unlockpt, ptsname}; | |
use nix::fcntl::{OFlag, open}; | |
use nix::sys::{stat, wait}; | |
use nix::unistd::{fork, ForkResult, setsid, dup2}; | |
use nix::libc::{STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO}; |