... in order. Now we can use another function called traverse(), which operates on this data structure and lets us specify what function to call for each piece of information it contains. Keeping ... module with Perl. You can get Tk from any CPAN archive (http://www.perl.com/CPAN/). The Tk extension provides an easy way to draw a window, put widgets into it (such as buttons, check boxes, ... a few examples of Tk-based web clients, which go beyond the command-line interface that we've been using so far in this book:[1] xword, a dictionary client track, a graphical version...
Ngày tải lên: 07/11/2013, 09:15
... "CHINA", "COLOMBIA", "CONGO", "COOK ISLANDS", "COSTA RICA", "COTE D'IVOIRE", "CROATIA", "CYPRUS", "CZECH ... REPUBLIC", "DENMARK", Chapter 7: Graphical Examples with Perl/Tk- P2 The do_search( ) function will take an optional $url argument, to give it an alternative place to connect ... clean up, and then we can do our lookup. If we care about this $tag, then we compress all spaces in the current text string (makes the display a little bit nicer) and call the function specified...
Ngày tải lên: 07/11/2013, 09:15
Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P3
... Package tracking client Chapter 7: Graphical Examples with Perl/Tk- P3 Our destinations list is an almost exact copy of the list you'd see on the web page. For ease in using, we placed ... 'top_left_arrow'); -yscrollcommand => ['set', $scroll], -exportselection => 0); $scroll->configure(-command => ['yview', $listbox]); $scroll->pack(-side => ... typed a letter, it would scroll to the first entry starting with that letter. Or you could put an additional entry, and search for any word starting with those characters: my $response_f =...
Ngày tải lên: 07/11/2013, 09:15
Tài liệu Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P4 docx
... selected. my $site = ""; my ($content, @down); my @selected = $list->curselection; $mw->configure(-cursor => 'watch'); $mw->idletasks; foreach $index ... actually ping each site. The code to check a site's status is as follows, where $site is a string containing a standard URL (like http://www.ora.com): $content = head($site); if ($content) ... $history_label->configure(-background => $old_color); } } The function ping_site( ) is called when a new site is added to update its status. It is also called when in automode. It checks the...
Ngày tải lên: 14/12/2013, 13:15
Beginning Mac Programming Develop with Objective-C and Cocoa doc
Ngày tải lên: 22/03/2014, 15:20
The C programming Langguage 2nd Edition
... used in comparisons with other characters. Certain characters can be represented in character and string constants by escape sequences like \n (newline); these sequences look like two characters, ... the other is specifically called for. For instance, consider the function squeeze(s ,c) , which removes all occurrences of the character c from the string s. /* squeeze: delete all c from s */ ... A character constant is an integer, written as one character within single quotes, such as 'x'. The value of a character constant is the numeric value of the character in the machine's character...
Ngày tải lên: 16/08/2012, 11:09
Bài giảng C Programming Help
... • Mỗi c u lệnh viết trên một dòng. C c câu lệnh c ng c p viết trên c ng một c t, c c câu lệnh c c p nhỏ hơn viết thụt vào trong, c ch lệnh c p trên bằng một khoảng Tab ... project : chọn menu Project/Close Project. 2. Một số nguyên t c khi kết nối dữ liệu trong Project. • C c tập tin .H thường dùng để khai báo c c biến dữ liệu và hàm dùng chung (export data). C c ... hiện c a chúng chỉ khai báo một lần duy nhất trong tập tin .CPP tương ứng. • Tập tin project thường chứa c c tập tin c i đặt .CPP, thư viện đối tượng .OBJ, … • C c tập tin trong c ng một project...
Ngày tải lên: 22/08/2012, 09:26
C Programming Help
... Bottom; }RECT; 2. C ch trình bày • Đầu mỗi chương trình hay tập tin đều c một số dòng mô tả. C c thông tin thường đề c p trong phần này thường là : tên tập tin, tóm tắt m c đích c a chương trình, ... lpEvent là biến kiểu con trỏ • Tên hàm : thường bắt đầu bằng một động từ. Thứ tự c c tham số trong hàm đư c qui ư c theo thứ tự : c c dữ liệu trả về, c c dữ liệu vào, … • Ví dụ : void CopyArray(int ... để thuận tiện cho vi c theo dõi chương trình, người ta thường thêm trư c tên biến một số kí tự viết thường để chỉ kiểu dữ liệu c a biến đó. C c kí tự thường đư c dùng trong qui ư c này thường...
Ngày tải lên: 05/09/2012, 15:09
The C programming language.
... in comparisons with other characters. Certain characters can be represented in character and string constants by escape sequences like \n (newline); these sequences look like two characters, ... A character constant is an integer, written as one character within single quotes, such as 'x'. The value of a character constant is the numeric value of the character in the machine's ... must create the program in a file whose name ends in `` .c& apos;', such as hello .c, then compile it with the command cc hello .c If you haven't botched anything, such as omitting a character...
Ngày tải lên: 14/11/2012, 17:10
Introduction to C++ Programming
... of objects absorb characteristics from existing classes –Objects • Encapsulate data and functions • Information hiding – Communicate across well-defined interfaces 2003 Prentice Hall, Inc. All ... cout instead of std::cout 2003 Prentice Hall, Inc. All rights reserved. 4 C+ + Standard Library C+ + programs – Built from pieces called classes and functions • C+ + standard library – Rich collections ... program executes. Compiler Compiler creates object code and stores it on disk. Linker links the object code with the libraries, creates a.out and stores it on disk Editor Preprocessor Linker CPU Primary Memory . . . . . . . . . . . . Disk Disk Disk Disk Disk 2003...
Ngày tải lên: 25/04/2013, 19:12
C Programming language
... c = getchar(); the variable c contains the next character of input. The characters normally come from the keyboard; input from files is discussed in Chapter 7. The function putchar ... function putchar prints a character each time it is called: putchar (c) ; prints the contents of the integer variable c as a character, usually on the screen. Calls to putchar and printf may ... a character Converting this into C gives: #include <stdio.h> /* copy input to output; 1st version */ main() { int c; c = getchar(); while (c != EOF) { putchar (c) ;...
Ngày tải lên: 20/10/2013, 17:15
Tài liệu Practical C Programming P2 pptx
... Turbo C+ + under MS-DOS Borland International makes a low-cost MS-DOS C+ + compiler called Turbo C+ +. This compiler will compile both C and C+ + code. We will describe only how to compile C code. ... their offerings is a C compiler called gcc. To compile a program using the gcc compiler use the following command line: % gcc -g -Wall -ohello hello .c The additional switch -Wall turns on the ... is: C: > bcc -ml -v -N -P -w -ehello hello .c The command-line options are the same for both Turbo C+ + and Borland C+ +. 2.3.3.5 Microsoft Visual C+ + Microsoft Visual C+ + is another C+ + /C compiler...
Ngày tải lên: 12/12/2013, 22:15
Tài liệu Practical C Programming P1 doc
... gcc compiler. For MS-DOS/Windows users, instructions are included for Borland C+ +, Turbo C+ +, and Microsoft Visual C+ +. (These compilers compile both C and C+ + code.) The book also gives examples ... and Functions Scope and Class Functions Functions with No Parameters Structured Programming Recursion Answers Programming Exercises 10. C Preprocessor #define Statement Conditional ... Environment IDE Cookbooks Programming Exercises 3. Style Common Coding Practices Coding Religion Indentation and Code Format Clarity Simplicity Summary 4. Basic Declarations and...
Ngày tải lên: 12/12/2013, 22:15
Tài liệu C Programming for Embedded Systems docx
... manoeuvre. Programming the prescalar and starting the clock are tasks of the software developer. Knowing the processor clock frequency, and choosing correct prescalar values, you can achieve accurate ... and is reset with two write instructions to the COPCR register. Interestingly, the COP watchdog is dependent upon the system clock; a clock monitor circuit resets the MCU if the clock stops, and ... interrupt each second (a) Increment clock counter. (b) Request display update. (c) Loop through the preset cycles. If clock is at or past the indexed cycle time, set target temperature to that cycle. 3....
Ngày tải lên: 22/12/2013, 02:17