[C + + Notes] polymorphism

Polymorphism is an important feature of object-oriented design in C + +. The same name has different functions, and the function calling process performs different functions. The principle of polymorphism is realized by a virtual table. Dynamic polymorphism will sacrifice some space and efficiency to achieve dynamic binding.   ​   Static po ...

Posted by AAFDesign on Sun, 03 Nov 2019 04:31:16 -0800

File download of java struts 2

1. In practical application development, file download function is also very common. 2. The simplest way to download files is through hyperlink: <body> <a href="download/s.txt">Courseware</a><br/> <a href="download/t.jpg">Beauty</a><br/> <a href="download/jstl-1.2.jar">jstl</ ...

Posted by mattyj10 on Sun, 03 Nov 2019 02:51:01 -0800

The pit of gorm associated query

Background: Recently, I am learning golang, trying to rewrite the previous PHP project with go.The table models involved are as follows: // Article type Topics struct { Id int `gorm:"primary_key"` Title string `gorm:"not null"` Body string `gorm:"not null"` UserId int `gorm:"not n ...

Posted by morphy on Sun, 03 Nov 2019 02:32:43 -0800

The cause of curl extension error in PHP compilation

For a while, I wanted to install through the source code, and then expand the installation one by one. Many of them are installed smoothly, but curl seems to report an error. In file included from /usr/local/php7.3/include/php/main/php.h:468:0, from /home/download/php-7.3.7/ext/curl/interface.c:25: /home/download/php-7.3.7/e ...

Posted by Roja on Sun, 03 Nov 2019 01:05:43 -0700

Data structure - bus line prompt system (Java background + excel table + web front end)

General process of the system: index.jsp input the station name (click "show site information", jump to list.jsp to read the table);Background obtains id through station name; getIdbyname(String name)The id is fed back to dijkstra(int vs,int vf) to find the shortest path and the vertex on the path (read the document to get the Graph) ...

Posted by Francky683 on Sat, 02 Nov 2019 18:01:02 -0700

String representing the value

Title Description:    implement a function to determine whether a string represents a numeric value, including integers and decimals. For example, the strings "+ 100","5e2","-123","3.1416" and "- 1E-16" all represent numeric values. But "12e","1a3.14","1.2.3&qu ...

Posted by ericburnard on Sat, 02 Nov 2019 16:02:28 -0700

Laravel + Vue + Element attendance application - HR system

Project address Bee introduce Bee is an attendance application in the human resource system. It is mainly used for employees to apply for false documents. Bee has high performance and expansibility, including front-end and back-end separation, plug-in rule validation (verifier), data filtering (decorator), message queuing, etc. in the MVC mode ...

Posted by JCF22Lyoko on Sat, 02 Nov 2019 15:24:29 -0700

Database design of rbac component

rbac is a role-based permission design, which consists of six tables. The specific table design is as follows: from django.db import models class Menu(models.Model): """ //Menu table """ title = models.CharField(verbose_name='Menu name',max_length=32,unique=True) icon = models.CharField(max_length=128, blank=True, ...

Posted by slweb on Sat, 02 Nov 2019 14:44:12 -0700

GPU server NVIDIA driver deployment document

I. installation system Install by default. Note the partition: /boot 500M SWAP 64G / Other space   II. Installation desktop Note: if you are installing the desktop version, you do not need to install the desktop again After the system is installed, you need to install the desktop environment. kde desktop is used by default ...

Posted by xydra on Sat, 02 Nov 2019 13:36:43 -0700

DOM operation based on HTML

DOM (Document Object Model) The display of a web page is a page composed of html tags. The dom object actually transforms html tags into a document object. You can find the html tags through the methods provided by js in the dom object. By finding the tag, you can operate the tag to make the page move and make the page move. Get Tags // Ge ...

Posted by jaydeesmalls on Sat, 02 Nov 2019 13:01:53 -0700