1 / 9

glowworm

glowworm. By Triplllier. WhaT IS Glowworm ?. Glowworm is a light, easy-learning procedure-oriented programming language. . Design pattern. PROGRAM STURCTURE. demo. type Struct:teststruct { int:anIntegerNumber , real:aRealNumber , string:anInterestingString ,

cheche
Download Presentation

glowworm

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. glowworm By Triplllier

  2. WhaT IS Glowworm? • Glowwormis a light, easy-learning procedure-oriented programming language.

  3. Design pattern

  4. PROGRAM STURCTURE

  5. demo • type • Struct:teststruct • { • int:anIntegerNumber, • real:aRealNumber, • string:anInterestingString, • int:array[10]:anArrayOfInteger • } • endtyp

  6. Demo • define • int:localVariable • enddef • forward • Func int:aFunctionUsingForwardDecalaration(int:arg), • Func int:aNormalFunction(int:arg) • endfwd • { • localVariable=aFunctionUsingForwardDeclaration(1); • aNormalFunction = localVariable; • }

  7. demo • … • define • int:globalVariable • enddef • { • Standardoutput(‘Hello World!’); • }

  8. Demo(quick sort) if (low<high) { i=low; x=A[low]; for j=low+1 to high do { if(A[j]<=x) { i=i+1; if(i!=j) { temp=A[i]; A[i]=A[j]; A[j]=temp; } } } temp=A[low]; A[low]=A[i]; A[i]=temp; w=i; }

  9. Thanks! Q&A time

More Related