vs code configuration.json file introduces makefile file file for multifile compilation

Background: When writing c++ using VS code before, you didn't use multiple files, so you didn't configure launch.jason and task.jason configurations too much, but you don't support multi-file compilation and debugging. Note: Makefile is used mainly for larger projects involving the compilation of multiple files.If a header fi ...

Posted on Sat, 28 Mar 2020 09:53:20 -0700 by Wolfsoap

squid cache server -- traditional mode

1, Working mechanism of web agentTwo serversIn the traditional mode, the client knows that it is an agentIn transparent mode, the client does not need to be set2, Basic types of agents Traditional agent: suitable for internet, need to specify the server clearly Transparent proxy: clients do not need to specify the address and port of the prox ...

Posted on Wed, 25 Mar 2020 20:37:24 -0700 by TGLMan

Advanced operating system experiment 2-process scheduling and switching analysis

First, write the application program to make it contain three processes, output three letters respectively. I don't know where to start. First, study the example that the teacher in class says. The code is as follows 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <pthread.h> 4 5 void loop(){ 6 while(1); 7 } ...

Posted on Fri, 20 Mar 2020 10:49:24 -0700 by Fallen_angel

Python3 Socket Programming (Personal Summary)

Summary: Socket s, also known as sockets, are used by applications to make requests to or respond to network requests through sockets, enabling communication between hosts or between processes on a computer. 1. Socket Object In Python, we use the socket() function to create a socket in the following s ...

Posted on Fri, 21 Feb 2020 19:52:08 -0800 by sundru

OpenSSL and implementation of private CA to realize certificate application issuing

2 OpenSSL OpenSSL is an open source software library package, which can be used by applications to communicate securely, avoid eavesdropping, and confirm the identity of the other end of the connection. This package is widely used in web servers on the Internet The main library is written in C language ...

Posted on Mon, 10 Feb 2020 04:33:27 -0800 by Thoughtless

Signal tracking under linux: Jprobe? Signal

Problem Description: in linux environment, sometimes the process exits abnormally. At this time, strace can be used to track the running of the process. If it is an internal error of the process, the strace log can see the abnormal error points of the process. But if it is killed by another person or process, only the killed in ...

Posted on Sun, 09 Feb 2020 10:18:43 -0800 by fr0mat

gRPC C + + tutorial

I have written a tutorial about using gRPC to send and receive messages in Python before. Please refer to the article Experience gRPC . Recently, it is planned to use gRPC in C + + project, so write an article to record how to use C + + language to implement a simple gRPC server and client program. Thi ...

Posted on Sat, 01 Feb 2020 04:46:21 -0800 by mike97gt

centos7 installs Python 3 and tab completion

centos7 installs Python 3 and tab completion   1. Install python3 1.1 download python source package Website: https://www.python.org/downloads/release/python-366/ Download address: https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz To compile and install Python 3.6 1. Download Python 3 source package 2. Download Python ...

Posted on Fri, 10 Jan 2020 23:46:41 -0800 by Steffen

The C++ standard specifies int, what is the size of the long type?

I'm looking for more information about the basic C++ type size.I know it depends on the architecture (16 bit, 32 bit, 64 bit) and the compiler. But what are the C++ criteria? I use Visual Studio 2008 on a 32-bit architecture.This is what I get: char : 1 byte short : 2 bytes int : 4 bytes long : 4 bytes float : 4 bytes double: 8 byt ...

Posted on Tue, 24 Dec 2019 21:56:15 -0800 by wstran

c + + to copy files and modify corresponding properties

Problem description Complete a directory copy command mycp, including files and subdirectories under the directory. The operation results are as follows: beta@bugs.com [~/]# ls –la sem total 56 drwxr-xr-x 3 beta beta 4096 Dec 19 02:53 ./ drwxr-xr-x 8 beta beta 4096 Nov 27 08:49 ../ -rw-r--r-- 1 beta beta 128 Nov 27 09:31 Makefile -rwxr ...

Posted on Sat, 14 Dec 2019 09:41:12 -0800 by SpectralDesign.Net