Skip to main content

['Using cpp std iostream lib in py']

Project description

Python C++ std iostream

Using C++ std lib iostream in py

Installtion

pip install py_cppstd

Import

from py_cppstd import std  

then:
std.load()
or
std = std()

How to use iostream

recommend to use ; when end line.

std.include('iostream') # include 'iostream'  
# prints 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.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

py_cppstd-0.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file py_cppstd-0.2.tar.gz.

File metadata

  • Download URL: py_cppstd-0.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for py_cppstd-0.2.tar.gz
Algorithm Hash digest
SHA256 f44a6a98cdc4db4374312806f7d2ce2378f0a8fff90481def4477e3d71a6897d
MD5 e463ae0862c1decfc194fa9c4c5ccaca
BLAKE2b-256 e6f14c49660b0e2d479bcb6171a95371a30ce44f75eab45f0aef16a216c4d0a0

See more details on using hashes here.

Provenance

File details

Details for the file py_cppstd-0.2-py3-none-any.whl.

File metadata

  • Download URL: py_cppstd-0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for py_cppstd-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 660593585ff750e05844ab6643892b2b74dce4331277b3271cd974b6784f9383
MD5 a3cc5d687f9affe9f0937a10146ebc49
BLAKE2b-256 f1e2bea56f67ce63a8b8f0cdebf03af31769f1719650a384fd587e1c49e7bc01

See more details on using hashes here.

Provenance

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