Finding the product and sum of two univariate polynomials (C language)
The design function calculates the product and sum of two univariate polynomials.
Input format:
The input is divided into two lines. Each line gives the number of nonzero terms of polynomials, and then enters a coefficient and index of nonzero terms of polynomials (the absolute value is not more than 1000 integers) in exponential descending ...
Added by Operandi on Thu, 02 Apr 2020 22:22:02 +0300
On the realization of string library function
#include<stdio.h>
#include<assert.h>
#include<ctype.h>
//strcpy(p, p1) copy string
///strncpy(p, p1, n) copies the specified length string
char *My_strcpy1(char *des, const char *src, int len1, int len2)
{
char *p = des;
assert((len1 >= len2)&&(*src != NULL));
while(*src != '\0')
{ ...
Added by Imtehbegginer on Tue, 31 Mar 2020 22:30:04 +0300
A picture with material!!! C language algorithm of file picture synthesizer
Kailugaji blog Park
http://www.cnblogs.com/kailugaji/
1. Open f disk and find two files first. One is a compressed file (2.rar), the other is a picture (1.jpg). Put it in F disk directory. Of course, other disks can also be used.
1.jpg image is as follows:
2. The contents of rar file are as follows:
2. Open cmd and enter command
C:\Users\le ...
Added by dvwhi on Tue, 31 Mar 2020 15:53:35 +0300
PHP FFI Details - A new way to extend PHP
This article address: https://www.laruence.com/2020/03/11/5475.html
Please indicate the source for reprinting
With PHP 7.4 comes an extension that I think is very useful: PHP FFI (Foreign Function interface), which refers to a description in a PHP FFI RFC:
For PHP, FFI provides a way to write PHP extensions and bindings to C li ...
Added by $SuperString on Mon, 30 Mar 2020 06:00:01 +0300
Detailed explanation of output controller
Why use the output controller:
We know that the data in the computer is stored in the form of binary, but the code composed of 01 can represent both data and instructions. It's easy to misunderstand if you don't use the output controller to become what you want.
If the 01 code represents data, then different output formats of the same 01 code ...
Added by axon on Sat, 14 Mar 2020 17:21:56 +0200
Date related questions (questions after n days)
Date of current computer system
#include<stdio.h>
#include<time.h>
int main(void){
time_t now,t1;
t1=time(&now);
printf("Seconds from 0:00 on January 1, 1970, current calendar time:%u\n",t1);
struct tm *localtp;
localtp=localtime(&now);
printf("Now the time is:%dyear%dmo ...
Added by jcd on Wed, 11 Mar 2020 09:34:49 +0200
Detailed description of C++ classes
Article Directory
1. Access rights of class members
2. Naming of member variables
3. Constructors
4. Destructors
5. C++ programs are also elegant
6. Other knowledge of classes
7. Variable parameters
8. Homework
9. Copyright Statement
Examples of Super Girls have been playing for a long time. To le ...
Added by webzyne on Thu, 05 Mar 2020 04:36:35 +0200
The summary of C++ template
The summary of C++ template
This article is a project summary file developed around class templates. We share some details about the use of class templates and easy to ignore when using classes. For example, the member variable of a class is the processing method in the constructor and destructor whe ...
Added by johnsmith153 on Tue, 25 Feb 2020 14:33:50 +0200
C basic Generic application
Introduction - Introduction to the use of "Generic"
#include <stdio.h>
#define TYPENAME_CASE(type) \
type: #type,
#define TYPENAME_POINTER_CASE(type) \
TYPENAME_CASE(type) \
TYPENAME_CASE(type *) \
#define TYPENAME_UNSIG ...
Added by bateman on Wed, 19 Feb 2020 18:40:03 +0200
Webapis DOM, get elements, event basis, operation elements, recommended collection!
Web APIs
Learning objectives:
Can get elements through ID
Ability to get elements by tag name
Can get elements through class
Ability to get elements through selectors
Can get body and html elements
Ability to register events for elements
Ability to modify element content
Be able to distinguish between ...
Added by djetaine on Wed, 19 Feb 2020 12:01:31 +0200