Basic javascript grammar 1

Four forms of declaration: <script type="text/javascript"> alert(1); </script> <a href="javascript:alert(2);">Eject</a> <script scr="xxx.js"></script> <div onclick="alert(3)";>Point me</div> Four ways of displaying data: 1. alert() function bullet window warning 2. co ...

Posted by Trekx on Mon, 01 Apr 2019 21:42:30 -0700

Coursera Programming and Algorithms Course 1. Introduction to Computing and Tenth Week Assignment of C Language Foundation (Part 1)

Recently, in the use of spare time and Coursera, we have attended a special course of Programming and Algorithms in Peking University, a total of seven courses, which is the first course of Introduction to Computing and C Language Foundation. Programming Question #1: Number of letters Source: POJ (Coursera Statement: Exercises completed on PO ...

Posted by oscardog on Sat, 30 Mar 2019 23:33:29 -0700

C++Primer Fifth Edition Chapter 7 Exercise Answers (1-10)

1: Knowledge Point 1: Method of class Definition: Use and Difference of Strct and class. Knowledge Point 2: Initialization Method of Members in Class: Initialization List of Members. The compiler calls the constructor to initialize the members and can be overloaded. First, an example is given to facilitate understanding. #include <ios ...

Posted by Fjerpje on Sat, 30 Mar 2019 18:15:30 -0700

King's Glory Brushing Gold Coin Small Procedure

Two days ago, I asked my classmates to help me become a king. He needed heroes, but I didn't have gold coins. I couldn't afford them. (How important is money!!) I have to brush gold coins in the clouds, but I'm so lazy that I don't want to brush them manually. So, try to do something about it. After a long battle (as if it wasn't too long), it ...

Posted by dotty on Tue, 26 Mar 2019 05:06:30 -0700

Linux Platform Driver Model (I)_Device Information

I am here Linux Character Device Driver Framework In this paper, we briefly introduce the programming model of Linux character device. In that model, as long as the application program opens () the corresponding device files, we can use ioctl to control our hardware through the driver. This model is intuitive, but from the point of view of soft ...

Posted by mjr on Thu, 21 Mar 2019 11:12:54 -0700

Data Structure Skills Examination System

Through one month's efforts, the data structure skills examination system was finally implemented in C++ language (including C language interpolation). The greatest advantage of the system is that it can detect whether students have inserted U disk when answering questions, and open auxiliary tools such as word and notebook. This system is divi ...

Posted by briant on Wed, 20 Mar 2019 17:15:27 -0700

runtime Summary

OC is called dynamic runtime language. The main reason is that there are two features: runtime and polymorphism. runtime Runtime, also known as runtime, is an underlying c language api, which is one of the core of iOS. OC is a dynamic runtime language, it will put some work on the code runtime to deal with, rather than compile time, ...

Posted by syn1234 on Sat, 09 Mar 2019 05:18:24 -0800

Chapter 16 C Preprocessor and C Library (memcpy() and memmove())

1 /*----------------------------------------- 2 mems.c -- Use memcpy() and memmove() 3 -----------------------------------------*/ 4 5 #include <stdio.h> 6 #include <string.h> 7 #include <stdlib.h> 8 9 #define SIZE 10 10 11 void show_array(const int ar[], int n); 12 13 int main() 14 { 15 int values[SIZE] ...

Posted by vladibo on Mon, 04 Feb 2019 19:12:16 -0800

c/c++ directed acycline graph

c/c++ directed acycline graph Concept: The lines between points in the graph are directional, and there are no rings in the graph. Graph implemented by adjacency table. Nouns: The degree of entry of a vertex: the number of lines to that vertex. Extent of a vertex: The number of lines starting from this vertex. Ideas for realization: 1. Calcul ...

Posted by OilSheikh on Mon, 04 Feb 2019 04:00:16 -0800

Rookie Birds Make the First Pass of bomb lab

The first question is relatively simple, but this dish chicken has also been made for two hours (')( Firstly, open the bomb.s file which has been disassembled in advance. Through bomb.c, we know that each level is a function. Their name is phase_x. X represents the number of the level. If the input of a level is incorrect, the explode_bomb will ...

Posted by jeancharles on Sun, 03 Feb 2019 12:15:15 -0800