Content deleted Content added
CRGreathouse (talk | contribs) m rm nested cat |
introduction changes |
||
Line 1:
C/C++ has been a popular programming for a while. Many C/C++ users need to learn a different scripting language for rapid application development. Ch provides an alternative solution for scripting and scientific computing.
{{context}}'''Ch''' ({{pronEng|ˌsiːˈeɪtʃ}}) is a [[cross-platform]] [[C (programming language)|C]]/[[C++]] [[Interpreter (computing)|interpreter]]. It is useful for [[Scripting language|scripting]], [[shell (computing)|shell]] programming, [[2D geometric model|2D]]/[[Three-dimensional space|3D]] [[plotting]], numerical computing, and can be [[embedded]] in other applications to add scripting capability. Ch can be used for both [[server-side]] and [[client-side]] [[web development]]. It runs under [[Microsoft Windows|Windows]], [[Linux]], [[Mac OS X]] and some versions of [[Unix]]. Ch supports C90 and major C99 features, but it doesn't support full C++ features. Line 33 ⟶ 34:
Note: <nowiki>#</nowiki>!/bin/ch is optional.
Ch also supports interactive shell command and C statements.
> int i, *p, **p2 // i is an integer, p pointer, p2 double pointer
> i=10 // i is assigned value 10
10
> p=&i // p points to address of i
00D847C0
> *p // the memory pointed by p has value 10
10
> p2=&p // p2 points to address of p
00D84D30
> **p2 // the memory pointed by the pointer at p2 has value 10
10
>
=== Numerical computing in Ch ===
|