Windows. mine sweeper Jirai JiraiU.pas JiraiP.dpr. Form Name FormJirai Caption Position podesktopcenter 16.3

Size: px
Start display at page:

Download "Windows. mine sweeper Jirai JiraiU.pas JiraiP.dpr. Form Name FormJirai Caption Position podesktopcenter 16.3"

Transcription

1 B Windows mine sweeper 16.1 n 16.2 Jirai JiraiU.pas JiraiP.dpr Form Name FormJirai Caption Position podesktopcenter

2 B RadioGroup Algn altop Name RadioGroupSize Caption Columns 3 Items ItemIndex Image Name ImageHara Hint ShowHint True const TateDai = 21; // YokoDai = 29; // KukakuSize = 20; // type TJoutai = (kjmada,kjaruatari,kjaruhazure,kjnaiatari,kjnaihazure); TKukaku = record Aru : Boolean; // Hint : Byte; // Joutai : TJoutai; // TBanchi = 0..YokoDai+1; THara = array [0..TateDai+1,0..YokoDai+1] of TKukaku; TFormJirai = class(tform) PanelMain: TPanel; ButtonClose: TButton; RadioGroupSize: TRadioGroup; ImageHara: TImage; procedure ButtonCloseClick(Sender: TObject); private Hara : THara; // GyouSuu : TBanchi; // RetuSuu : TBanchi; //

3 B (******************** FormJirai method ******************* procedure TFormJirai.KukakuWoKaku(Gyou,Retu : TBanchi); (* const Iro : array [TJoutai] of TColor = (clyellow,cllime,cllime,claqua,clred); // Kigou : array [TJoutai] of String[2] = (,,,, ); // Suuji : array [0..8] of String[2] = (,,,,,,,, ); // X,Y : Word; Y := Gyou*KukakuSize; X := Retu*KukakuSize; with ImageHara.Canvas, Hara[Gyou,Retu] do Brush.Color := Iro[Joutai]; if Joutai = kjnaiatari then TextOut(X,Y,Suuji[Hint]) else TextOut(X,Y,Kigou[Joutai]); (* KukakuWoKaku procedure TFormJirai.HaraWoKaku; (* Gyou,Retu : TBanchi; with ImageHara.Canvas do Brush.Color := clteal; FillRect(ClipRect); for Gyou := 1 to GyouSuu do for Retu := 1 to RetuSuu do KukakuWoKaku(Gyou,Retu); (* HaraWoKaku procedure TFormJirai.HaraWoKimeru(Size : Byte); (* Size Gyou,Retu : TBanchi; GyouSuu := TateDai-Size*6; RetuSuu := YokoDai-Size*10; with ImageHara do Height := (GyouSuu+2)*KukakuSize; Width := (RetuSuu+2)*KukakuSize; Left := (Parent.ClientWidth -Width-PanelMain.Width) div 2; Top := (Parent.ClientHeight-Height) div 2; with Canvas.Font do Name := ;

4 B 106 Height := KukakuSize; Pitch := fpfixed; for Gyou := 0 to TateDai+1 do for Retu := 0 to YokoDai+1 do Hara[Gyou,Retu].Joutai := kjnaiatari; HaraWoKaku; (* HaraWoKimeru (********************* Event Handler ******************* procedure TFormJirai.ButtonCloseClick(Sender: TObject); Close; (* ButtonCloseClick procedure TFormJirai.FormCreate(Sender: TObject); ClientHeight := KukakuSize*(TateDai+4); ClientWidth := KukakuSize*(YokoDai+4)+PanelMain.Width; HaraWoKimeru(0); (* FormCreate procedure TFormJirai.RadioGroupSizeClick(Sender: TObject); HaraWoKimeru(RadioGroupSize.ItemIndex); (* RadioGroupSizeClick Button Name ButtonNew Caption Form private

5 B 107 private Hara : THara; // GyouSuu : TBanchi; // RetuSuu : TBanchi; // KukakuSuu : Integer; JiraiSuu : Integer; AruNokori : Integer; NaiNokori : Integer; KizaiNokori : Integer; procedure TFormJirai.JiraiWoUmeru; (* Gyou,Retu : TBanchi; GyouMid,RetuMid : TBanchi; G,R : TBanchi; Kosuu : Integer; // KukakuSuu := GyouSuu*RetuSuu; JiraiSuu := KukakuSuu div 5; // for Gyou := 1 to GyouSuu do for Retu := 1 to RetuSuu do Aru := False; Hint := 0; Joutai := kjnaiatari; // GyouMid := (GyouSuu+1) div 2; RetuMid := (RetuSuu+1) div 2; for Gyou := GyouMid-1 to GyouMid+1 do for Retu := RetuMid-1 to RetuMid+1 do Hara[Gyou,Retu].Aru := True; // for Kosuu := 1 to JiraiSuu do repeat Gyou := Random(GyouSuu)+1; Retu := Random(RetuSuu)+1; until not Hara[Gyou,Retu].Aru; // Aru := True; Joutai := kjaruatari; for G := Gyou-1 to Gyou+1 do // for R := Retu-1 to Retu+1 do Inc(Hara[G,R].Hint); //

6 B 108 for Gyou := GyouMid-1 to GyouMid+1 do for Retu := RetuMid-1 to RetuMid+1 do Hara[Gyou,Retu].Aru := False; HaraWoKaku; (* JiraiWoUmeru HaraWoKimeru HaraWoKaku; JiraiWoUmeru; Joutai := kjnaiatari; Joutai := kjaruatari; Joutai := kjmada; Button Name ButtonStart ButtonGiveUp Caption

7 B procedure TFormJirai.FormCreate(Sender: TObject); ClientHeight := KukakuSize*(TateDai+4); ClientWidth := KukakuSize*(YokoDai+4)+PanelMain.Width; HaraWoKimeru(0); JiraiWoUmeru; ImageHara.Enabled := False; RadioGroupSize.Enabled := True; ButtonNew.Enabled := True; ButtonStart.Enabled := True; ButtonGiveUp.Enabled := False; (* FormCreate procedure TFormJirai.ButtonStartClick(Sender: TObject); StandBy; ImageHara Enabled := True; RadioGroupSize.Enabled := False; ButtonNew.Enabled := False; ButtonStart.Enabled := False; ButtonGiveUp.Enabled := True; (* ButtonStartClick procedure TFormJirai.ButtonGiveUpClick(Sender: TObject); GameOver(False); (* ButtonGiveUpClick procedure TFormJirai.ImageHaraMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); Gyou,Retu : Byte; Bakuhatu : Boolean; Gyou := Y div KukakuSize; Retu := X div KukakuSize; if (Gyou in [1..GyouSuu]) and (Retu in [1..RetuSuu]) then case Button of mbright : Arudarou(Gyou,Retu); mbleft : Naidarou(Gyou,Retu); Bakuhatu := Hara[Gyou,Retu].Joutai = kjnaihazure; if (AruNokori = 0) or (NaiNokori = 0) or Bakuhatu then GameOver(not Bakuhatu); (* ImageHaraMouseDown procedure TFormJirai.StandBy; (*

8 B 110 Gyou,Retu : Byte; for Gyou := 1 to GyouSuu do for Retu := 1 to RetuSuu do Hara[Gyou,Retu].Joutai := kjmada; AruNokori := JiraiSuu; NaiNokori := KukakuSuu-JiraiSuu; KizaiNokori := JiraiSuu; (* StandBy procedure TFormJirai.GameOver(Seikou : Boolean); (* Gyou,Retu : Byte; // for Gyou := 1 to GyouSuu do for Retu := 1 to Retusuu do if Joutai = kjmada then if Seikou then if Aru then Joutai := kjaruatari else Joutai := kjnaiatari else if Aru then Joutai := kjnaihazure else Joutai := kjnaiatari; HaraWoKaku; if Seikou then ShowMessage(#13+ +#13) else ShowMessage(#13+ +#13); with FormJirai do ImageHara.Enabled := False; RadioGroupSize.Enabled := True; ButtonNew.Enabled := True; ButtonStart.Enabled := True; ButtonGiveUp.Enabled := False; (* GameOver procedure TFormJirai.Arudarou(Gyou,Retu : TBanchi); (* if (Joutai = kjmada) and (KizaiNokori > 0) then if Aru then Joutai := kjaruatari; Dec(AruNokori); end else Joutai := kjaruhazure; Dec(NaiNokori);

9 B 111 Dec(KizaiNokori); KukakuWoKaku(Gyou,Retu); (* Arudarou procedure TFormJirai.Naidarou(Gyou,Retu : TBanchi); (* G,R : TBanchi; if Joutai = kjmada then if Aru then Joutai := kjnaihazure; Dec(AruNokori); end else Joutai := kjnaiatari; Dec(NaiNokori); if Hint = 0 then for G := Gyou-1 to Gyou+1 do for R := Retu-1 to Retu+1 do Naidarou(G,R); KukakuWoKaku(Gyou,Retu); (* Naidarou PanelJiraiSuu, PanelAruNokori,PanelNaiNokori,PanelKizaiNokori

Image. uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls ;

Image. uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls ; B 71 11 Image Image Image Image 11.1 11.1.1 Amida AmidaU.pas AmidaP.dpr 11.1.2 Form Name FormAmida Caption Position poscreencenter HorzScrollBar.Visible False VertScrollBar.Visible False 11.1.3 11.2 Image

More information

(1) Trump (1) Trump (2) (1) Trump ExampleU ExampleP (2) Caption. TrumpU (2) Caption. (3) Image FormTrump. Top 0 Left 0.

(1) Trump (1) Trump (2) (1) Trump ExampleU ExampleP (2) Caption. TrumpU (2) Caption. (3) Image FormTrump. Top 0 Left 0. B 114 18 (1) 18.1 52 54 Trump http://www.ss.u-tokai.ac.jp/~ooya/jugyou/joronb/trumpbmp.exe (1) (2) Trump 18.2 (1) Trump ExampleU ExampleP (2) Name Caption FormMain 18.3 (1) TrumpU (2) Name Caption FormTrump

More information

NATIONAL SENIOR CERTIFICATE GRADE12

NATIONAL SENIOR CERTIFICATE GRADE12 NATIONAL SENIOR CERTIFICATE GRADE12 INFORMATION TECHNOLOGY P1 NOVEMBER 2017 MARKING GUIDELINES MARKS: 150 These marking guidelines consist of 26 pages. Information Technology/P1 2 DBE/November 2017 GENERAL

More information

NATIONAL SENIOR CERTIFICATE GRADE12

NATIONAL SENIOR CERTIFICATE GRADE12 NATIONAL SENIOR CERTIFICATE GRADE12 INFORMATION TECHNOLOGY P1 FEBRUARY/MARCH 2018 MARKING GUIDELINES MARKS: 150 These marking guidelines consist of 21 pages. Information Technology/P1 2 DBE/Feb. Mar. 2018

More information

The scripting system handles two types of components: Visual and Non-visual components.

The scripting system handles two types of components: Visual and Non-visual components. Forms and Components Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Parent page: DelphiScript Overview of Graphical Components The scripting system handles two types of components:

More information

LAMPIRAN Listing Program

LAMPIRAN Listing Program LAMPIRAN Listing Program unit umain; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, ExtCtrls, ExtDlgs, DCPcrypt2, DCPrc4, DCPsha1,

More information

Delphi Generics.Collections

Delphi Generics.Collections Delphi Generics.Collections Copyright(C) 2008 Embarcadero Technologies, Inc. All Rights Reserved. Delphi Generics.Collections Table of Contents Generics.Collections.TCollectionNotification 1 Generics.Collections.TCollectionNotifyEvent

More information

Kada se pokrene forma da bude plave boje. Dugme Crtaj krugove da iscrtava slučajan broj N krugova istog poluprečnika r (1/4 visine forme) čiji su

Kada se pokrene forma da bude plave boje. Dugme Crtaj krugove da iscrtava slučajan broj N krugova istog poluprečnika r (1/4 visine forme) čiji su Kada se pokrene forma da bude plave boje. Dugme Crtaj krugove da iscrtava slučajan broj N krugova istog poluprečnika r (1/4 visine forme) čiji su centri na neiscrtanom krugu poluprečnika r. Dugme Boji

More information

Part 1 The first steps

Part 1 The first steps course DELPHI FOR ELECTRONIC ENGINEERS Part 1 The first steps Detlef Overbeek & Anton Vogelaar This article is the first part in a series about programming in Delphi, which concentrates on the practical

More information

Introduction to the DLL for the USB Interface Board K8061

Introduction to the DLL for the USB Interface Board K8061 K8061.DLL 1 Introduction to the DLL for the USB Interface Board K8061 The K8061 interface board has 8 digital input channels and 8 digital output channels. In addition, there are 8 analogue inputs, 8 analogue

More information

Source code for simulations: 1 of 11

Source code for simulations: 1 of 11 The following is the source code for the simulations reported in Clinchy, Haydon and Smith (Pattern process: what does patch occupancy really tell us about metapopulation dynamics). unit Main; interface

More information

DELPHI FOR ELECTRONIC ENGINEERS. Part 2 Programming a calculator COURSE

DELPHI FOR ELECTRONIC ENGINEERS. Part 2 Programming a calculator COURSE COURSE DELPHI FOR ELECTRONIC ENGINEERS Part 2 Programming a calculator Herman Bulle with thanks to Anton Vogelaar In the first instalment of this series, we introduced the Delphi programming environment

More information

www.openwire.org www.mitov.com Copyright Boian Mitov 2004-2014 Index Installation... 3 Where is InstrumentLab?... 3 Creating classifier application... 3 Using the TSLCRealBuffer in C++ Builder and Visual

More information

«» 68, 19, 1, 41.,,,,,,,... : Delphi. : 1., ё Delphi. 4.. :,,,.,,

«» 68, 19, 1, 41.,,,,,,,... : Delphi. : 1., ё Delphi. 4.. :,,,.,, ,.. 2018. 44.03.01,..,...., 2018 «» 68, 19, 1, 41.,,,,,,,... : Delphi. : 1., ё. 2.. 3. Delphi. 4.. :,,,.,, .,. А... 4 1... 6 1.1... 6 1.2... 15 2... 22 2.1... 22 2.2... 50... 58... 59 -. 130 80% - Internet.,,,,..

More information

REFERENCE MATERIALS. Assignment, Display, and Input Evaluates expression and assigns the result to the variable a.

REFERENCE MATERIALS. Assignment, Display, and Input Evaluates expression and assigns the result to the variable a. a expression Assignment, Display, and Input Evaluates expression and assigns the result to the variable a. DISPLAY (expression) Displays the value of expression, followed by a space. INPUT () Accepts a

More information

GRADE/GRAAD 11 NOVEMBER 2013 INFORMATION TECHNOLOGY P1 INLIGTINGSTEGNOLOGIE V1 MEMORANDUM

GRADE/GRAAD 11 NOVEMBER 2013 INFORMATION TECHNOLOGY P1 INLIGTINGSTEGNOLOGIE V1 MEMORANDUM NATIONAL SENIOR CERTIFICATE NASIONALE SENIOR SERTIFIKAAT GRADE/GRAAD 11 NOVEMBER 2013 INFORMATION TECHNOLOGY P1 INLIGTINGSTEGNOLOGIE V1 MEMORANDUM MARKS/PUNTE: 150 This memorandum consists of 6 pages.

More information

For more detailed information on the differences between DelphiScript and Object Pascal, refer to the DelphiScript Reference document.

For more detailed information on the differences between DelphiScript and Object Pascal, refer to the DelphiScript Reference document. Writing Scripts Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Related pages Script Editor Tools Scripting System Panels Parent page: Scripting Writing Scripts There a number of

More information

Sorting TEN. Alphabetical sort

Sorting TEN. Alphabetical sort TEN Sorting In this chapter we will look at various ways in which sorting might be used in programs. To with, let's see how a series of words could be arranged into alphabetical order by the computer...

More information

var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin ListBox1.Items.LoadFromFile('d:\brojevi.

var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin ListBox1.Items.LoadFromFile('d:\brojevi. 1 PANEL komponenta kontejnerska, slična GropBox. Roditeljska komponenta za komp. postavljene na nju. Zajedno se pomeraju. Caption svojstvo za naziv; Alighment pomera svojstvo Caption levo i desno; Align

More information

NATIONAL SENIOR CERTIFICATE GRADE12

NATIONAL SENIOR CERTIFICATE GRADE12 NATIONAL SENIOR CERTIFICATE GRADE12 INFORMATION TECHNOLOGY P1 FEBRUARY/MARCH 2017 MEMORANDUM MARKS: 150 This memorandum consists of 29 pages. Information Technology/P1 2 DBE/Feb. Mar. 2017 GENERAL INFORMATION:

More information

ISA 563 : Fundamentals of Systems Programming

ISA 563 : Fundamentals of Systems Programming ISA 563 : Fundamentals of Systems Programming Variables, Primitive Types, Operators, and Expressions September 4 th 2008 Outline Define Expressions Discuss how to represent data in a program variable name

More information

From A to D v. Eight acquisition channels for PC-BASED INSTRUMENTATION

From A to D v. Eight acquisition channels for PC-BASED INSTRUMENTATION HANDS-ON PC-BASED INSTRUMENTATION From A to D v Eight acquisition channels for Guido Körber Thanks to its ease of use, USB has become a widespread standard. Here we present a data acquisition module with

More information

DelphiScript Keywords

DelphiScript Keywords DelphiScript Keywords Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 This reference covers the DelphiScript keywords used for the Scripting System in Altium Designer. The scripting

More information

APPLICATION NOTE: KONSTANTER LSP32K Interface Protocol

APPLICATION NOTE: KONSTANTER LSP32K Interface Protocol APPLICATION NOTE: KONSTANTER LSP32K Interface Protocol 1 Interface Type At the DB9 connector the LSP32K Power Supply device offers a serial data interface with TTL logic level for remote control and readout

More information

CSC Java Programming, Fall Java Data Types and Control Constructs

CSC Java Programming, Fall Java Data Types and Control Constructs CSC 243 - Java Programming, Fall 2016 Java Data Types and Control Constructs Java Types In general, a type is collection of possible values Main categories of Java types: Primitive/built-in Object/Reference

More information

Simple diagrams made up of geometrical shapes can be designed directly in Delphi using the shape component from the ADDITIONAL component menu: shape

Simple diagrams made up of geometrical shapes can be designed directly in Delphi using the shape component from the ADDITIONAL component menu: shape TWO Graphics In chapter one we saw how a bitmap image can be displayed in a program. This is not the only way of producing graphics in Delphi, and in this section we will look at two other methods: Using

More information

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this

More information

In Delphi script, when values are assigned to variables, the colon-equal operator is used; :=

In Delphi script, when values are assigned to variables, the colon-equal operator is used; := Statements and Operators Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Parent page: DelphiScript DelphiScript Statements A statement in DelphiScript is considered as simple when

More information

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals VARIABLES WHAT IS A VARIABLE? A variable is a storage location in the computer s memory, used for holding information while the program is running. The information that is stored in a variable may change,

More information

AP Computer Science Principles Exam Reference Sheet

AP Computer Science Principles Exam Reference Sheet AP Computer Science Principles Exam Reference Sheet July 2015 As AP Computer Science Principles does not designate any particular programming language, this reference sheet provides instructions and explanations

More information

Topic 7: Algebraic Data Types

Topic 7: Algebraic Data Types Topic 7: Algebraic Data Types 1 Recommended Exercises and Readings From Haskell: The craft of functional programming (3 rd Ed.) Exercises: 5.5, 5.7, 5.8, 5.10, 5.11, 5.12, 5.14 14.4, 14.5, 14.6 14.9, 14.11,

More information

HS STELLENBERG : DELPHI : FOKUS VIR EKSAMENS GEDATEER 1 FEB 2017.

HS STELLENBERG : DELPHI : FOKUS VIR EKSAMENS GEDATEER 1 FEB 2017. D E L P H I F O K U S V I R E K S A M E N S ( F E B 2 0 1 7 ) P a g e 1 HS STELLENBERG : DELPHI : FOKUS VIR EKSAMENS GEDATEER 1 FEB 2017. Hierdie is n werksdokument en word van tyd tot tyd opgradeer. GRAAD

More information

LabVIEW Case and Loop Structures ABE 4423/6423 Dr. Filip To Ag and Bio Engineering, Mississippi State University

LabVIEW Case and Loop Structures ABE 4423/6423 Dr. Filip To Ag and Bio Engineering, Mississippi State University LabVIEW Case and Loop Structures ABE 4423/6423 Dr. Filip To Ag and Bio Engineering, Mississippi State University Recap Previous Homework Following Instruction Create a Pressure Conversion VI that takes

More information

GRADE 12 SEPTEMBER 2012 INFORMATION TECHNOLOGY P1 MEMORANDUM

GRADE 12 SEPTEMBER 2012 INFORMATION TECHNOLOGY P1 MEMORANDUM Province of the EASTERN CAPE EDUCATION NATIONAL SENIOR CERTIFICATE GRADE 12 SEPTEMBER 2012 INFORMATION TECHNOLOGY P1 MEMORANDUM MARKS: 120 This memorandum consists of 11 pages. 2 INFORMATION TECHNOLOGY

More information

judul : dump mysql with delphi - opensource

judul : dump mysql with delphi - opensource judul : dump mysql with delphi - opensource header : hmm...ini sebenernya dah pernah tak tanyain dalam thread tapi lom ada jawaban yang memuaskan, aq coba ekplor terus dan akhirnya 3 bulan yang lalu bisa

More information

Basic operators, Arithmetic, Relational, Bitwise, Logical, Assignment, Conditional operators. JAVA Standard Edition

Basic operators, Arithmetic, Relational, Bitwise, Logical, Assignment, Conditional operators. JAVA Standard Edition Basic operators, Arithmetic, Relational, Bitwise, Logical, Assignment, Conditional operators JAVA Standard Edition Java - Basic Operators Java provides a rich set of operators to manipulate variables.

More information

Expressions. Eric McCreath

Expressions. Eric McCreath Expressions Eric McCreath 2 Expressions on integers There is the standard set of interger operators in c. We have: y = 4 + 7; // add y = 7-3; // subtract y = 3 * x; // multiply y = x / 3; // integer divide

More information

Macros and User Forms

Macros and User Forms Macros and User Forms INTRODUCTION Toad Data Modeler supports macros. You can create a macro in Package Explorer or Script Explorer and modify its properties to display the macro either in main menu or

More information

Graphics Programming with GDI and Fonts

Graphics Programming with GDI and Fonts Graphics Programming with GDI and Fonts CHAPTER 8 IN THIS CHAPTER Delphi s Representation of Pictures: TImage 276 Saving Images 278 Using the TCanvas Properties 280 Using the TCanvas Methods 301 Coordinate

More information

NATIONAL SENIOR CERTIFICATE GRADE12

NATIONAL SENIOR CERTIFICATE GRADE12 NATIONAL SENIOR CERTIFICATE GRADE12 INFORMATION TECHNOLOGY P1 NOVEMBER 2016 MEMORANDUM MARKS: 150 This memorandum consists of 32 pages. Information Technology/P1 2 DBE/November 2016 GENERAL INFORMATION:

More information

&'()*+,-./0&(1& $ :;

&'()*+,-./0&(1& $ :; &'()*+,-./0&(1& $234567859:; raek@etteam.com %!"# $%# &#$ ' (!) * %#+,-./0$1"# 22(3 45416 (! 57 5 71 " *7 *7 ( 89:9-,- 8;:< 16 *! =)5> 7# &$%# 45?"16 * @! (! 5 *) 8,:A;B9- C;D.E

More information

Recap. ANSI C Reserved Words C++ Multimedia Programming Lecture 2. Erwin M. Bakker Joachim Rijsdam

Recap. ANSI C Reserved Words C++ Multimedia Programming Lecture 2. Erwin M. Bakker Joachim Rijsdam Multimedia Programming 2004 Lecture 2 Erwin M. Bakker Joachim Rijsdam Recap Learning C++ by example No groups: everybody should experience developing and programming in C++! Assignments will determine

More information

SuperEDIT for Delphi VCL

SuperEDIT for Delphi VCL Manual SuperEDIT for Delphi VCL Caution Without notice some or all of the contents of this document to the Company, be copied or reproduced in any form, it is strictly prohibited. Describing the contents

More information

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice Visual Basic Lab Sheet 4: Non Object-Oriented Programming Practice This lab sheet builds on the basic programming you have done so far, bringing elements of file handling, data structuring and information

More information

Call DLL from Limnor Applications

Call DLL from Limnor Applications Call DLL from Limnor Applications There is a lot of computer software in the format of dynamic link libraries (DLL). DLLCaller performer allows your applications to call DLL functions directly. Here we

More information

Some Sample AP Computer Science A Questions - Solutions

Some Sample AP Computer Science A Questions - Solutions Some Sample AP Computer Science A Questions - s Note: These aren't from actual AP tests. I've created these questions based on looking at actual AP tests. Also, in cases where it's not necessary to have

More information

CS313D: ADVANCED PROGRAMMING LANGUAGE

CS313D: ADVANCED PROGRAMMING LANGUAGE CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 2 : C# Language Basics Lecture Contents 2 The C# language First program Variables and constants Input/output Expressions and casting

More information

Today s Topics. Program Realisation 2. How code and configuration data of forms are organized.

Today s Topics. Program Realisation 2. How code and configuration data of forms are organized. Program Realisation Today s Topics http://www.win.tue.nl/ hemerik/ip0/ Lecture 9 Kees Hemerik Tom Verhoeff Technische Universiteit Eindhoven Faculteit Wiskunde en Informatica Software Engineering & Technology

More information

Common Misunderstandings from Exam 1 Material

Common Misunderstandings from Exam 1 Material Common Misunderstandings from Exam 1 Material Kyle Dewey Stack and Heap Allocation with Pointers char c = c ; char* p1 = malloc(sizeof(char)); char** p2 = &p1; Where is c allocated? Where is p1 itself

More information

Objectives. Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments

Objectives. Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments Basics Objectives Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments 2 Class Keyword class used to define new type specify

More information

JAVA Programming Language Homework II Student ID: Name:

JAVA Programming Language Homework II Student ID: Name: JAVA Programming Language Homework II Student ID: Name: 1. Given the following Java code: 1. class A { 2. public static void main (String[] args) { 3. Byte tmp1 = new Byte( 1 ); 4. Byte tmp2 = new Byte(

More information

As you already know the tool is split up into the toolbar across the top, the editor or code part in the centre and the output window at the bottom.

As you already know the tool is split up into the toolbar across the top, the editor or code part in the centre and the output window at the bottom. maxbox Starter 7 Start with Game Programming 1.1 Play a Game Today we spend another time in programming with the internet (called social network) and multi user games. But in this primer I just introduce

More information

2009 Academic Challenge

2009 Academic Challenge 2009 Academic Challenge COMPUTER SCIENCE TEST - REGIONAL This Test Consists of 30 Questions Computer Science Test Production Team Jim Feher, McKendree University Author/Team Leader Barry Bookout, East

More information

Procedural Programming

Procedural Programming Exercise 2 (SS 2016) 3.05.2016 What will I learn in the 2. /Exercise relational operators and logical operators if () else switch loops do while while for Exercise(s) 1 Home exercise 1 (3 points) Write

More information

Today we spend some time in OO Programming (Object Oriented). Hope you did already work with the first Starter and the box at:

Today we spend some time in OO Programming (Object Oriented). Hope you did already work with the first Starter and the box at: maxbox Starter 2 Start with OO Programming 1.1 First Step Today we spend some time in OO Programming (Object Oriented). Hope you did already work with the first Starter and the box at: http://www.softwareschule.ch/download/maxbox_starter.pdf

More information

1.00 Introduction to Computers and Engineering Problem Solving Quiz 1 March 4, 2005

1.00 Introduction to Computers and Engineering Problem Solving Quiz 1 March 4, 2005 1.00 Introduction to Computers and Engineering Problem Solving Quiz 1 March 4, 2005 Name: E-mail Address: TA: Section: You have 80 minutes to complete this exam. For coding questions, you do not need to

More information

CSE 1530: Introduction to Computer Use II - Programming. 1a. [4 points, one point each] Define/explain any four of the following terms.

CSE 1530: Introduction to Computer Use II - Programming. 1a. [4 points, one point each] Define/explain any four of the following terms. 1. Basic Knowledge 1a. [4 points, one point each] Define/explain any four of the following terms. Algorithm: A set of step-by-step instructions that when completed, solve a problem. Procedural programming:

More information

REVIEW. The C++ Programming Language. CS 151 Review #2

REVIEW. The C++ Programming Language. CS 151 Review #2 REVIEW The C++ Programming Language Computer programming courses generally concentrate on program design that can be applied to any number of programming languages on the market. It is imperative, however,

More information

A B C ((NOT A) AND B) OR C

A B C ((NOT A) AND B) OR C chapter5 pg 184 1,2,6 1 Assuming that x=1 and y=2, determine the value of each of the following Boolean expressing: (x=1) AND(y=3) (x1) Not[(x=1) AND (y=2)] Answer: False True False 2 Assume

More information

Interdisciplinary relations in teaching of programming

Interdisciplinary relations in teaching of programming Interdisciplinary relations in teaching of programming VLADIMÍR JEHLIČKA Department of Informatics Faculty of Education University of Hradec Králové Rokitanského 62, 500 03 Hradec Králové 3 CZECH REPUBLIC

More information

Knowledge: This lab will help you become familiar with the following content knowledge:

Knowledge: This lab will help you become familiar with the following content knowledge: CS119 Module 2 Due Date: February 12 Purpose: Recursion is a powerful tool for for solving algorithmic problems by having a function repeatedly call itself. We start with a version of recursion called

More information

BB4W. KS3 Programming Workbook INTRODUCTION TO. BBC BASIC for Windows. Name: Class:

BB4W. KS3 Programming Workbook INTRODUCTION TO. BBC BASIC for Windows. Name: Class: KS3 Programming Workbook INTRODUCTION TO BB4W BBC BASIC for Windows Name: Class: Resource created by Lin White www.coinlea.co.uk This resource may be photocopied for educational purposes Introducing BBC

More information

The undo stack and reusing the memento pattern

The undo stack and reusing the memento pattern The undo stack and reusing the memento pattern Michaël Van Canneyt March 31, 2009 Abstract In a previous contribution, the memento pattern was introduced. In this article, the memento pattern is used in

More information

uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, ImgList, StdCtrls, Buttons, MPlayer;

uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, ImgList, StdCtrls, Buttons, MPlayer; unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, ImgList, StdCtrls, Buttons, MPlayer; type TForm1 = class(tform) Cenario: TImage;

More information

Computing Science 114 Solutions to Midterm Examination Tuesday October 19, In Questions 1 20, Circle EXACTLY ONE choice as the best answer

Computing Science 114 Solutions to Midterm Examination Tuesday October 19, In Questions 1 20, Circle EXACTLY ONE choice as the best answer Computing Science 114 Solutions to Midterm Examination Tuesday October 19, 2004 INSTRUCTOR: I E LEONARD TIME: 50 MINUTES In Questions 1 20, Circle EXACTLY ONE choice as the best answer 1 [2 pts] What company

More information

Documentation: RAG Regression Analysis Graph

Documentation: RAG Regression Analysis Graph Documentation: RAG Regression Analysis Graph Contents: by Marius Ebel Documentation: RAG Regression Analysis Graph... 1 Overview... 2 LinkedInt64List... 2 RAGGraph... 2 RAG... 2 Details... 2 TRAGGraphType

More information

In this article we will see how the OmniThreadLibrary can be used to split a simple image processing kernel across multiple threads.

In this article we will see how the OmniThreadLibrary can be used to split a simple image processing kernel across multiple threads. In a previous article named " Easy multi-thread programming Delphi ", the AsyncCalls library was used to process multiple images at the same time. However, the processing of every single image was still

More information

SECTION II: LANGUAGE BASICS

SECTION II: LANGUAGE BASICS Chapter 5 SECTION II: LANGUAGE BASICS Operators Chapter 04: Basic Fundamentals demonstrated declaring and initializing variables. This chapter depicts how to do something with them, using operators. Operators

More information

Solving a 2D Maze. const int WIDTH = 10; const int HEIGHT = 10;

Solving a 2D Maze. const int WIDTH = 10; const int HEIGHT = 10; Solving a 2D Maze Let s use a 2D array to represent a maze. Let s start with a 10x10 array of char. The array of char can hold either X for a wall, for a blank, and E for the exit. Initially we can hard-code

More information

Boolean Algebra Boolean Algebra

Boolean Algebra Boolean Algebra What is the result and type of the following expressions? Int x=2, y=15; float u=2.0, v=15.0; -x x+y x-y x*v y / x x/y y%x x%y u*v u/v v/u u%v x * u (x+y)*u u / (x-x) x++ u++ u = --x u = x -- u *= ++x

More information

TEXTAREA NN 2 IE 3 DOM 1

TEXTAREA NN 2 IE 3 DOM 1 778 TEXTAREA Chapter 9DOM Reference TEXTAREA NN 2 IE 3 DOM 1 The TEXTAREA object reflects the TEXTAREA element and is used as a form control. This object is the primary way of getting a user to enter multiple

More information

Getting started with Java

Getting started with Java Getting started with Java by Vlad Costel Ungureanu for Learn Stuff Programming Languages A programming language is a formal constructed language designed to communicate instructions to a machine, particularly

More information

More About Factoring Trinomials

More About Factoring Trinomials Section 6.3 More About Factoring Trinomials 239 83. x 2 17x 70 x 7 x 10 Width of rectangle: Length of rectangle: x 7 x 10 Width of shaded region: 7 Length of shaded region: x 10 x 10 Area of shaded region:

More information

CSC 1214: Object-Oriented Programming

CSC 1214: Object-Oriented Programming CSC 1214: Object-Oriented Programming J. Kizito Makerere University e-mail: jkizito@cis.mak.ac.ug www: http://serval.ug/~jona materials: http://serval.ug/~jona/materials/csc1214 e-learning environment:

More information

Create a custom tab using Visual Basic

Create a custom tab using Visual Basic tutorials COM programming Create a custom tab using Visual Basic 1/5 Related files vb_tab.zip Description Visual basic files related to this tutorial Introduction This tutorial explains how to create and

More information

More Data Types. The Char Data Type. Variable Declaration. CS200: Computer Science I. Module 14 More Data Types

More Data Types. The Char Data Type. Variable Declaration. CS200: Computer Science I. Module 14 More Data Types datatype CS200: Computer Science I Module 14 More Data Types Kevin Sahr, PhD Department of Computer Science Southern Oregon University 1 More Data Types in addition to the data types double and int we

More information

// All game classes must override these two Game methods. void setup(); std::string choosescene(std::string prevscene, int prevreturncode);

// All game classes must override these two Game methods. void setup(); std::string choosescene(std::string prevscene, int prevreturncode); Pong.h #pragma once #include "GE161.h" #include "Game.h" class Pong : public GE161::Game public: ; // All game classes must override these two Game methods. void setup(); std::string choosescene(std::string

More information

Lecture 3 (02/06, 02/08): Condition Statements Decision, Operations & Information Technologies Robert H. Smith School of Business Spring, 2017

Lecture 3 (02/06, 02/08): Condition Statements Decision, Operations & Information Technologies Robert H. Smith School of Business Spring, 2017 Lecture 3 (02/06, 02/08): Condition Statements Decision, Operations & Information Technologies Robert H. Smith School of Business Spring, 2017 K. Zhang BMGT 404 The modulus operator It works on integers

More information

CS101 PLEDGED SPRING 2001

CS101 PLEDGED SPRING 2001 The following exam is pledged. All answers are to be given on the provided answer sheet. The test is closed book, closed note, and closed calculator. If you believe more than one answer is acceptable,

More information

PROGRAMMING FUNDAMENTALS

PROGRAMMING FUNDAMENTALS PROGRAMMING FUNDAMENTALS Q1. Name any two Object Oriented Programming languages? Q2. Why is java called a platform independent language? Q3. Elaborate the java Compilation process. Q4. Why do we write

More information

Final CSE 131B Spring 2004

Final CSE 131B Spring 2004 Login name Signature Name Student ID Final CSE 131B Spring 2004 Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 (25 points) (24 points) (32 points) (24 points) (28 points) (26 points) (22 points)

More information

Best Practice - Programming Ribbons

Best Practice - Programming Ribbons Best Practice - Programming Ribbons Copyright 2016 Lexmark. All rights reserved. Lexmark is a trademark of Lexmark International, Inc., registered in the U.S. and/or other countries. All other trademarks

More information

. p.1/23. Today. 1. Questions and discussion from lecture. 2. Type-checking Functions Arrays Records (maybe)

. p.1/23. Today. 1. Questions and discussion from lecture. 2. Type-checking Functions Arrays Records (maybe) . p.1/23 Today 1. Questions and discussion from lecture. 2. Type-checking Functions Arrays Records (maybe) . p.2/23 Type-checking functions Aspects: Overview of checks 6, 7 Declaration header Declaration

More information

Pick a number. Conditionals. Boolean Logic Relational Expressions Logical Operators Numerical Representation Binary. CS Conditionals 1

Pick a number. Conditionals. Boolean Logic Relational Expressions Logical Operators Numerical Representation Binary. CS Conditionals 1 Conditionals Boolean Logic Relational Expressions Logical Operators Numerical Representation Binary CS105 04 Conditionals 1 Pick a number CS105 04 Conditionals 2 Boolean Expressions An expression that

More information

Engineering Innovation Center LabVIEW Basics

Engineering Innovation Center LabVIEW Basics Engineering Innovation Center LabVIEW Basics LabVIEW LabVIEW (Laboratory Virtual Instrument Engineering Workbench) is a graphical programming language that uses icons instead of lines of text to create

More information

3. Java - Language Constructs I

3. Java - Language Constructs I Educational Objectives 3. Java - Language Constructs I Names and Identifiers, Variables, Assignments, Constants, Datatypes, Operations, Evaluation of Expressions, Type Conversions You know the basic blocks

More information

Review questions. Review questions, cont d. Class Definition. Methods. Class definition: methods. April 1,

Review questions. Review questions, cont d. Class Definition. Methods. Class definition: methods. April 1, April 1, 2003 1 Previous Lecture: Intro to OOP Class definition: instance variables & methods Today s Lecture: Instance methods Constructors Methods with input parameters Review questions Where do you

More information

Today. o main function. o cout object. o Allocate space for data to be used in the program. o The data can be changed

Today. o main function. o cout object. o Allocate space for data to be used in the program. o The data can be changed CS 150 Introduction to Computer Science I Data Types Today Last we covered o main function o cout object o How data that is used by a program can be declared and stored Today we will o Investigate the

More information

Quick Reference Guide

Quick Reference Guide SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD mikroelektronika Development tools - Books - Compilers Quick Reference Quick Reference Guide with EXAMPLES for Basic language This reference guide

More information

Lecture 9. Assignment. Logical Operations. Logical Operations - Motivation 2/8/18

Lecture 9. Assignment. Logical Operations. Logical Operations - Motivation 2/8/18 Assignment Lecture 9 Logical Operations Formatted Print Printf Increment and decrement Read through 3.9, 3.10 Read 4.1. 4.2, 4.3 Go through checkpoint exercise 4.1 Logical Operations - Motivation Logical

More information

x= suppose we want to calculate these large values 1) x= ) x= ) x=3 100 * ) x= ) 7) x=100!

x= suppose we want to calculate these large values 1) x= ) x= ) x=3 100 * ) x= ) 7) x=100! HighPower large integer calculator intended to investigate the properties of large numbers such as large exponentials and factorials. This application is written in Delphi 7 and can be easily ported to

More information

Program Fundamentals

Program Fundamentals Program Fundamentals /* HelloWorld.java * The classic Hello, world! program */ class HelloWorld { public static void main (String[ ] args) { System.out.println( Hello, world! ); } } /* HelloWorld.java

More information

CSE 351: The Hardware/Software Interface. Section 2 Integer representations, two s complement, and bitwise operators

CSE 351: The Hardware/Software Interface. Section 2 Integer representations, two s complement, and bitwise operators CSE 351: The Hardware/Software Interface Section 2 Integer representations, two s complement, and bitwise operators Integer representations In addition to decimal notation, it s important to be able to

More information

Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal

Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal Lesson Goals Understand the basic constructs of a Java Program Understand how to use basic identifiers Understand simple Java data types

More information

An overview of Java, Data types and variables

An overview of Java, Data types and variables An overview of Java, Data types and variables Lecture 2 from (UNIT IV) Prepared by Mrs. K.M. Sanghavi 1 2 Hello World // HelloWorld.java: Hello World program import java.lang.*; class HelloWorld { public

More information

OOPLs Semantic Foundations. Data Abstraction Foundation of OOPLs

OOPLs Semantic Foundations. Data Abstraction Foundation of OOPLs OOPLs Semantic Foundations Barbara Liskov s CLU language first specification of data abstraction Defining semantics of methods Defining a data abstraction and its methods Mutability Rep type (concrete

More information

LAB 11: METHODS. CPCS The Lab Note Lab 11 Page 1. Statement Purpose:

LAB 11: METHODS. CPCS The Lab Note Lab 11 Page 1. Statement Purpose: Statement Purpose: The purpose of this Lab. is to practically familiarize student with how to write the common code once and reuse it without rewriting it using the concept of Methods. Activity Outcomes:

More information

UNIT Files. Procedure/Functionand Other Declarations (CONST, TYPE, VAR) can be stored under different Object Pascal Files (Library).

UNIT Files. Procedure/Functionand Other Declarations (CONST, TYPE, VAR) can be stored under different Object Pascal Files (Library). Basics of Language UNIT Files Basics of Language UNIT Files UNIT Files Procedure/Functionand Other Declarations (CONST, TYPE, VAR) can be stored under different Object Pascal Files (Library). You can reduce

More information

TTIWResponsiveList - TTIWDBResponsiveList. TMS SOFTWARE TTIWResponsiveList - TTIWDBResponsiveList DEVELOPERS GUIDE

TTIWResponsiveList - TTIWDBResponsiveList. TMS SOFTWARE TTIWResponsiveList - TTIWDBResponsiveList DEVELOPERS GUIDE TTIWResponsiveList - TTIWDBResponsiveList April 2017 Copyright 2016-2017 by tmssoftware.com bvba Web: http://www.tmssoftware.com Email : info@tmssoftware.com 1 Table of contents TTIWResponsiveList / TTIWDBResponsiveList

More information

Quick Reference Guide

Quick Reference Guide SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD mikroelektronika Development tools - Books - Compilers Quick Reference Quick Reference Guide with EXAMPLES for Pascal language This reference guide

More information