36 lines
784 B
Plaintext
36 lines
784 B
Plaintext
From: thooney at pk.highway.ne.jp (Thooney Millennier)
|
|
Date: Fri, 23 Apr 1999 06:08:07 +0900
|
|
Subject: Emulating C++ coding style
|
|
Message-ID: <371F8FB7.92CE674F@pk.highway.ne.jp>
|
|
X-UID: 899
|
|
|
|
Hello Everyone!
|
|
|
|
I usually use C++ ,so I want to make programs like
|
|
I do using C++.
|
|
I don't figure out how to implement the followings
|
|
by Python.
|
|
If you know any solutions,Please Help!
|
|
|
|
1. #define statements
|
|
e.g. #define __PYTHON_INCLUDED__
|
|
#define PYPROC(ARG) printf("%s",ARG)
|
|
|
|
2. stream class
|
|
e.g. cout << "hello python."<<endl;
|
|
|
|
3. const variables
|
|
e.g. const int NOCHAGE=1;
|
|
|
|
4. access to class's members using "::"
|
|
e.g. some_class::static_value
|
|
e.g. some_class::static_func(x)
|
|
|
|
Thanks for reading.
|
|
|
|
Thooney Millennier.
|
|
|
|
|
|
|
|
|