Re: Python help for a C++ programmer

2008-01-16 Thread Bruno Desthuilliers
mlimber a écrit : > I'm writing a text processing program to process some survey results. > I'm familiar with C++ and could write it in that, but I thought I'd > try out Python. I've got a handle on the file I/O and regular > expression processing, FWIW, and depending on your text format, there ma

Re: Python help for a C++ programmer

2008-01-16 Thread Tim Chase
> I want something like (C++ code): > > struct Response > { >std::string name; >int age; >int iData[ 10 ]; >std::string sData; > }; > > // Prototype > void Process( const std::vector& ); > > int main() > { >std::vector responses; > >while( /* not end of file */ )

Re: Python help for a C++ programmer

2008-01-16 Thread Neil Cerutti
On Jan 16, 2008 9:23 AM, mlimber <[EMAIL PROTECTED]> wrote: > I'm writing a text processing program to process some survey results. > I'm familiar with C++ and could write it in that, but I thought I'd > try out Python. I've got a handle on the file I/O and regular > expression processing, but I'm

Re: Python help for a C++ programmer

2008-01-16 Thread Lutz Horn
Hi, On Wed, 16 Jan 2008 06:23:10 -0800 (PST), "mlimber" <[EMAIL PROTECTED]> said: > I'm writing a text processing program to process some survey results. > I'm familiar with C++ and could write it in that, but I thought I'd > try out Python. I've got a handle on the file I/O and regular > expressi

Python help for a C++ programmer

2008-01-16 Thread mlimber
I'm writing a text processing program to process some survey results. I'm familiar with C++ and could write it in that, but I thought I'd try out Python. I've got a handle on the file I/O and regular expression processing, but I'm wondering about building my array of classes (I'd probably use a str