Ngày tải lên: 29/06/2014, 08: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 caỏp treõn baống moọt khoaỷng ... data). C c thể hiện c thể c a c c biến và hàm này đư c cài đặt trong taọp tin .CPP tửụng ửựng. ã ẹeồ traựnh khai baựo truứng laởp khi kết nối c c tập tin vào trong project, bắt đầu và kết th c tập ... _ // Cac khai bao ghi o day #endif // Ket thuc tap tin ã Ca c kieồu dửừ lieọu, hằng, macro dùng chung khai báo trong c c tập tin .H ủeồ khi duứng thỡ include vaứo. ã Ca c thaứnh phan duứng chung...
Ngày tải lên: 22/08/2012, 09:26
C Programming Help
... Bottom; }RECT; 2. Caựch trỡnh baứy ã ẹau moó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, ... bieỏn kieồu con troỷ ã Teõn haứ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ửừ lieọu traỷ ve, ca c dửừ lieọu vaứo, ã Vớ duù : 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 ... PM] Chapter 1 - A Tutorial Introduction main() { int c; while ( (c = getchar()) != EOF) putchar (c) ; } The while gets a character, assigns it to c, and then tests whether the character was...
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 ... Write 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 ... Prentice Hall, Inc. All rights reserved. 25 Introduction to Object Technology ã User-defined types (classes, components) Data members ã Data components of class Member functions ã Function components...
Ngày tải lên: 25/04/2013, 19:12
Advanced Linux Programming: 11-A Sample GNU/Linux Application
... the sources, simply invoke make : % make cc -Wall -g -c -o server.o server .c cc -Wall -g -c -o module.o module .c cc -Wall -g -c -o common.o common .c cc -Wall -g -c -o main.o main .c cc -Wall -g ... child processes that have terminated. */ memset (&sigchld_action, 0, sizeof (sigchld_action)); sigchld_action.sa_handler = &clean_up_child_process; sigaction (SIGCHLD, &sigchld_action, ... -Wl,-export-dynamic -o server server.o module.o common.o main.o -ldl cc -Wall -g -fPIC -shared -o diskfree.so diskfree .c cc -Wall -g -fPIC -shared -o issue.so issue .c cc -Wall -g -fPIC -shared -o processes.so...
Ngày tải lên: 17/10/2013, 19:15
Advanced PHP Programming- P12
... follows: static zend_function_entry cart_methods[] = { ZEND_ME(cart, _ _construct, NULL, ZEND_ACC_PUBLIC), ZEND_ME(cart, numitems, NULL, ZEND_ACC_PUBLIC), {NULL, NULL, NULL} }; PHP_MINIT(cart) { } Throwing ... resource for them. n You can store private class variables as a C struct alongside your object. If you want custom object types, you need to create a custom class create_object func- tion.When you ... extract the spread connection inside and disconnect from it. Here’s how this looks: static int le_pconn; static void _close_spread_pconn(zend_rsrc_list_entry *rsrc) { mailbox *mbox = (int *)rsrc->ptr; if(mbox)...
Ngày tải lên: 17/10/2013, 20:15
Advanced PHP Programming- P13
... output: /Users/george /Advanced_ PHP/examples/chapter-23/call_coverage/test.php:2 /Users/george /Advanced_ PHP/examples/chapter-23/call_coverage/test.php:3 /Users/george /Advanced_ PHP/examples/chapter-23/call_coverage/test.php:4 /Users/george /Advanced_ PHP/examples/chapter-23/call_coverage/test.php:10 Homework While ... Chaining) mode, 337 cdb libraries, 252 centralized cache, 378-380 CFB (Cypher Feedback) mode, 337 CGI SAPI activation/deactivation, 584 cookies, 587 data writing callback, 584 deactivation code, 584 environment ... 228 example.php script, 507 Exception class, 83, 558 exceptions, 82 authentication, 336 AuthException, 336 cascading, 94-97 catching, 84-85 constructor failure, 97-98 creating, 83 default exception handlers,...
Ngày tải lên: 20/10/2013, 11:15
Advanced PHP Programming- P14
... 149 ServiceCheck object, 143 ServiceCheckRunner class, 144-146 ServiceLogger, 143, 147-148 signals, 146 SCSS (Source Code Control System), 184 security attacks, remote command injection, 214 authentication dictionary ... 150 abstract class implementation, 141-143 architecture, 146 configuration file, 148-149 options, 149 ServiceCheck object, 143 ServiceCheckRunner class, 144-146 ServiceLogger interface, 143 ServiceLogger ... parameter, ServiceCheck object, 143 NFS (Network File System) network file shares, centralized cache, 378-380 pushing production code, 203 no-cache directives, 232 nodes, WSDL (Web Services Description Language),...
Ngày tải lên: 20/10/2013, 11:15
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 ... automatic henceforth to refer to these local variables. ( Chapter 4 discusses the static storage class, in which local variables do retain their values between calls.) Because automatic variables...
Ngày tải lên: 20/10/2013, 17:15
Advanced PHP Programming- P15
... 149 ServiceCheck object, 143 ServiceCheckRunner class, 144-146 ServiceLogger, 143, 147-148 signals, 146 SCSS (Source Code Control System), 184 security attacks, remote command injection, 214 authentication dictionary ... 382 XML_RPC_Client object, 395 XML_RPC_decode() method, 395 XML_RPC_Message object, 395 Y- Z Zend Accelerator compiler cache, 220 Zend Accelerator Web site, 236 Zend Engine APC, 606 APD, 605-606 classes, ... 150 abstract class implementation, 141-143 architecture, 146 configuration file, 148-149 options, 149 ServiceCheck object, 143 ServiceCheckRunner class, 144-146 ServiceLogger interface, 143 ServiceLogger...
Ngày tải lên: 24/10/2013, 10:15
Advanced Graphics Programming Techniques Using OpenGL P1
... z2; /* Compute the cross product */ Vector V12 Vector V10 V1 V2 V0 Figure 4. Computing a Surface Normal from Edges’ Cross Product 9 Programming with OpenGL: Advanced Rendering Advanced Graphics Programming ... unit-length facet normal */ r = sqrt(cpx * cpx + cpy * cpy + cpz * cpz); nx = cpx / r; ny = cpy / r; nz = cpz / r; Computing the facet normal of a polygon with more than three vertices can be a bit ... function- ality can be combined as building blocks to create innovativetechniques and produce new graphics capabilities. A second aspect of OpenGL is that the specification is not pixel exact....
Ngày tải lên: 28/10/2013, 00:15
Advanced Graphics Programming Techniques Using OpenGL P2
... back facing surfaces of the right operands of subtraction. For example, in A , B C ,the visible surfaces are the front facing surfaces of A and C, and the back facing surfaces of B. Concave ... with glCullFace(GL FRONT) . At this point, the stencil buffer is 1 wherever the clipping plane is enclosed by the frontfacing and backfacing surfaces of the object. The depth buffer is cleared, color ... Enablingstencilalso may reduce performance. Nonetheless, some portions 16 Programming with OpenGL: Advanced Rendering else glCullFace(GL_FRONT); if (the surface is 1-convex) glDepthMask(1); glColorMask(0,...
Ngày tải lên: 06/11/2013, 11:15