Skip to main content

['Using cpp std iostream lib in py']

Project description

Python C++ std iostream

Using C++ std lib iostream in py

OSCS Status

Installtion

pip install py_cppstd

Import

from py_cppstd import std  

then:
std.load() variables are different after uses?
or
std = std()

iostream Usage

recommend to use ; when end line.

std.include('iostream') # include <iostream>  
# outputs 114514 and '\n' and flush the stream  
std.cout << 114514 << std.endl  
num: int  
std.cin >> num # input a number to num

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_cppstd-0.2.2.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

py_cppstd-0.2.2-py3-none-any.whl (12.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page