Beginner programming beginner 5

BC47 judge whether it is a letter describe KiKi wants to judge whether the input character is a letter, please help him program it. Enter Description: Multiple sets of input, one character per line. Output Description: For each group of input, the output occupies a separate line to judge whether the input character is a letter. See th ...

Posted by makeshift on Wed, 02 Feb 2022 10:37:14 +0100

Introduction to Algorithms (Day1)

catalogue 1. Search in two-dimensional array 2. Rotate the minimum number of the array 3. Adjust the array order so that odd numbers precede even numbers More than half of the number in the array 1. Search in two-dimensional array Core test points: array correlation, characteristic observation, grasp of time complexity [description] In ...

Posted by phpnewby1918 on Wed, 02 Feb 2022 09:58:07 +0100

C + + simple FTP client programming

Basic FTP client FTP download client implemented by QT C + + Environmental description FTP server: centos7 8 + vsftpd 3.0.2 installation settings see blog CentOS vsftpd settings Client: win10+QT 5.15.2 The implementation is not a fully functional FTP client, but the program has the need to download files from the FTP server. It mainly rea ...

Posted by bernouli on Wed, 02 Feb 2022 09:27:24 +0100

[C + +] string of STL container

preface C + + introduces the idea of object-oriented. Compared with C language, a class can better manage and operate some data structures. In C language, we use character array and string The library function in H is used to maintain a string. The data is separated from the method. Because the underlying space is maintained by itself, it may ...

Posted by docmattman on Wed, 02 Feb 2022 06:51:42 +0100

2022 Blue Bridge Cup learning - 7 greedy

Examples 1. Stock trading Title Description Given an array with length N, the ith number in the array represents the price of a given stock on day i. Design an algorithm to calculate the maximum profit you can make. You can complete as many transactions as possible (buying and selling a stock multiple times). Note: you cannot participate in ...

Posted by szms on Wed, 02 Feb 2022 05:33:14 +0100

String + memory function

0. Preface The processing of characters and strings in C language is very frequent, but C language itself has no string type. Strings are usually placed in constant strings or character arrays. String constants apply to string functions that do not modify them 1. Function introduction strlen #include<stdio.h> #include<asse ...

Posted by jestaji on Wed, 02 Feb 2022 02:47:10 +0100

opecv cuda acceleration official tutorial 2: Using a cv::cuda::GpuMat with thrust

Original address Global Thrust is a very powerful library of various cuda acceleration algorithms. However, thrust is designed for vector rather than tilt matrix. The following tutorial discusses how to wrap cv::cuda::GpuMat into a thrust iterator that can be used for thrust algorithms. This tutorial will show you how to: Wrap GpuMat in a t ...

Posted by JonnySnip3r on Wed, 02 Feb 2022 01:50:00 +0100

Lecture 9 of Blue Bridge Cup -- difference [example / exercise]

preface Blue Bridge Cup Official Website: Blue Bridge Cup - National College Students TMT industry competition โœจ This blog explains the algorithm knowledge involved in the Blue Bridge Cup C/C + + preparation. This blog is the ninth lecture: difference [examples / exercises] The exercises included in this blog are: ๐Ÿ‘Š Difference ๐Ÿ‘Š Differ ...

Posted by Josh1billion on Tue, 01 Feb 2022 22:33:37 +0100

Blue Bridge Cup preparation - AcWing 668 Game time 2

Blue Bridge Cup preparation โ€“ AcWing 668 Game time 2 lanqiao preparation series description This is the first blog to prepare for the competition. This time, I use the ACwing question brushing website of President y to prepare for the competition (which can also be regarded as advertising president y hhh)The brush questions in this ...

Posted by frenchy373 on Tue, 01 Feb 2022 22:03:39 +0100

The simplest function

preface In mathematics, we have learned many kinds of functions, such as logarithmic function, exponential function and so on. These make my brain ache when I see them. Now I still remember that my high school mathematics teacher filled the whole blackboard in high spirits, wiped it and then wrote it. I can only stare at him like a silly ...

Posted by jeppers on Tue, 01 Feb 2022 19:58:11 +0100