equivalent

What is the equivalent of "require" (Ruby) in Python?

I am coming to python from ruby. What is the equivalent statement of require (Ruby) in Python? ...

What's the C# equivalent of Java's "for (String currLine: allLines)"?

I've got some Java code along the lines of: Vector<String> allLines = new Vector<String>(); allLines.add("line 1"); allLines.add("line 2"); allLines.add("line 3"); for (String currLine: allLines) { ... } Basically, it reads a big file into a lines vector then processes it one at a time (I bring it all in to memory since I'm doing a mu...

What is the C++/CLI equivalent to a VB6 Collection?

I already tried ArrayList^ and VB6 gives me a 'Type mismatch' error. I don't see a C++/CLI 'Collection' or 'List'. So what is the equivalent, if there is one? ...

Help me translate the C++ code to Delphi

im having hardtime in memset and memcpy. can somebody trasnlate this for me, or suggestion on how this thing work? do{ memset(szSpeechBuf, 0x0, sizeof(char)*QSIZE); if((nBufIter+1)*QSIZE > nRawBufLen) { diff = nRawBufLen - (nBufIter)*QSIZE; if(diff < 0) { printf("DetectSpeech() error : timeout!!!"); ...