C: binsearch function
Added test driver to binsearch function which comes from K&R C. test result: $ binsearch v1[] = 4 2 5 6 8 2 34 12 23 10 The index of number 8 in v1[]: 4
Added test driver to binsearch function which comes from K&R C. test result: $ binsearch v1[] = 4 2 5 6 8 2 34 12 23 10 The index of number 8 in v1[]: 4
The following function is a Shell sort for sorting an array of integers. The basic idea of this sorting algorithm, which was invented in 1959 by D. L. Shell. The shellsort function is from K&R C, added test driver to verify. test result: $ shellsort The original number array: 4 …
basically copy/paste not works for PDF ebook, lost all indentation, you need to re-format by hand. Here is solution: 1) convert PDF to txt file http://www.sejda.com is free online service for this. 2) all source code looks good but there are extra white space in head of each line, assumes …
The command line env setting is in C:\"Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin"\vcvars32.bat. After run this bat file, you will see difference: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSTSDB\Deploy;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio …
Pydev is Eclipse plugin to integrate Python to IDE, can download from here: http://pydev.org/download.html Somehow I cannot see Pydev in eclipse language list, found issue is on mismatched Java SDK, I installed JDK 1.7 64 bits but Eclipse 4.3 used 32bits, however everything in Eclipse is in Java including plugin. …
Installed IronPython for VS 2012 by PTVS, seems ok but in fact not working: 1) cannot find python in New Project other language list 2) VS 2012 crash when click Python Tool-> Fresh DB ‘devenv.exe’ (Managed (v4.0.30319)): Loaded ‘C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Interop.10.0\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Interop.10.0.dll’ ‘devenv.exe’ (Managed (v4.0.30319)): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Language.Intellisense\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Language.Intellisense.dll’ An unhandled exception of type ‘System.InvalidOperationException’ …
When you cannot install ipython , there is alternative way to write key ipython as module or package: – TAB completion – basic shell command (pwd,ls,cd,mkdir,cp,mv, you can add more ……)
This example is from Learning Python exercise, just fixed small issues: – cmd prompt not working properly due to order – add pwd function
New ipython provides two ways to start ipython: Scripts\ipython.exe and Scripts\python-script.py. This is shell setting: cmd /k “c:\python27\Scripts\ipython” or cmd.exe /k “C:\Python27\python.exe C:\Python27\Scripts\ipython-script.py” both working for me.
http://portablepython.com/ is best portable python so far, here is discussion how to run them from Console2. 1) install portable python package Portable Python 2.7.5.1 This package contains following applications/libraries: PyScripter v2.5.3 NymPy 1.7.1 SciPy 0.12.0 Matplotlib 1.2.1 PyWin32 218 Django 1.5.1 PIL 1.1.7 Py2Exe 0.6.9 wxPython 2.9.4.0 NetworkX 1.7 Lxml …