Data Structure-Three-dimensional hierarchy

// Roomage. cpp: Master project file. # Include "stdafx. H "# include # include # include using namespace STD; unsigned int sand (unsigned int (time (0 ))); /* recursion can be used in principle, which seems complicated * // template struct room

AVR single-chip microcomputer (ATmega16) da0832 chip D/A conversion

# Include # define uchar unsigned char # define uint unsigned int # define cs_l portd & = 0xfe // output low level # define wr_l portd & = 0xfd // output low level void delayms (uint x) // 1 ms {uint y, z; For (y = x; y> 0; y --) for (Z = 1325; z> 0

One of my favorite words-Wang Anshi's "guizhixiang Jinling nostalgia"

Guizhi Xiang · Jinling huaigu [Wang Anshi] Arrival and delivery,○ ▲Late Autumn in the motherland,●● ● ⊙ ○The weather is getting better.⊙ ○ ▲Li Qianli Chengjiang lixiang,⊙ ●○ ○ ⊙ ●Cui Feng is like a cluster.○ ▲Zhengfan went to jinghyang district,⊙ ○

Custom vector container [To be continued]

# Ifndef REDEFINE_VECTOR_H _ # define REDEFINE_VECTOR_H _ # include "stdafx. h "# include # include # include # include template class vector {// public: // typedef T value_type; // typedef value_type * pointer; // typedef const value_type

Cross linked list [To be continued]

# Ifndef link_table_h # define link_table_h # include "stdafx. H "# include # include # include # include using namespace STD; struct tnode {int row, Col, Val; struct tnode * right, * down;}; void install (tnode * head); // void rand_num (int * &

AVR Microcontroller (ATmega16L) DS18B20 temperature sensor driver

It's really hard to learn by yourself. If you encounter any problem, you need Baidu half a day, one day, two days and so on ...... It has been four days since I started to write the DS18B20 program. I used to write a program, and the reference chip

Obtain the current system time (three methods)

# Include # Include Void main (){/* Method 1Time_t curTime = time (NULL );Char * curDate = ctime (& curTime );Printf (curDate ); -----------------------| Pass the NULL parameter to time () to obtain the current date and time| Convert the obtained

PIC microcontroller (PIC16F877A) Timer

# Include # define uchar unsigned char # define uint unsigned intuchar I, temp; uchar count; void delay (uint X) // 1 ms {uint y, z; for (y = x; y> 0; y --) for (Z = 25; z> 0; Z --);} void Init (void) {t1con = 0x01; // enable timer 1. The clock is

51 single-chip microcomputer (AT89S52) matrix keyboard detection program

Matrix keyboard detection ideas: Set the line to output, set the line to input to get the column Code, set the line to input, and set the line to output to get the line code, the key value is determined by the row and column code. This program can

Template metaprogramming-use MPL to solve practical problems

There are various containers in STL, And the STL algorithm allows us to perform various operations on the elements in the container. The following program should be easy for every contemporary c ++ programmer: # Include # Include # Include #

External Interrupt program of PIC Single Chip Microcomputer (PIC16F877A)

The normal operation is a streaming lamp, and the lamp is fully on when it is interrupted. # Include __ CONFIG (0x3B31); // 4 M # define uchar unsigned char # define uint unsigned int # define DELAY 500 uint j = 50000; void delay (uint x) // 1 ms

Fast sorting (variant)

# Include # include # include using namespace std; void swap (int & small, int & big) {int temp = small; small = big; big = temp;} int partion (int arr [], int left, int right) {int I = left-1, j = right, base = arr [right]; for (;) {while (arr [+

Fast sorting (three-way division) solves a large number of repeated Elements

# Include # include # include # define M 20 using namespace std; static int count_insert = 0; static int count_partion = 0; typedef struct index {int left; int right;} index; void swap (int & small, int & big) {int temp = small; small = big; big =

Reverse string order

# Include "stdio. h "# include" stdlib. h "# include" string. h "void StrConvert (const char * src, char * const dst); int main (void) {char str [1000] = {0 }; char tmp [1000] = {0}; gets (str); printf ("before convert: % s \ n", str); StrConvert

Unordered single-chain table (method 1)

#include "stdio.h"#include "stdlib.h"#include "time.h"typedef struct node{int a;struct node* next;}LNODE;LNODE* LinklistCreate(void);void LinklistVisit(LNODE *head);LNODE* LinklistConvert(LNODE *);int main(void){LNODE *head = NULL;head =

File compression and decompression in unix

. Tar Unpack: tar xvf FileName.tar Package: tar cvf FileName.tar DirName (Note: tar is packed, not compressed !) --------------------------------------------- . Gz Decompress 1: gunzip FileName.gz Decompress 2: gzip-d FileName.gz Compression: gzip

Summary of several simple compilation questions for beginners

Summary of several simple compilation questions for beginners Which of my predecessors on the Internet has borrowed the work from Mr. Smith? Don't be surprised. * ^_^ *!0. Questions about instruction time   The last time a brother asked a question

Make the image adaptive window size

How to make the background image adaptive dialog box or window size Add the following code to the onerasebkgnd () function in the code that added the background mentioned last time (for specific functions, see here: // Cpaintdc DC (this); // use

Title Bar text changes

How to change the document title I. Changes in the title of a Single-Document Interface (SDI) window First, let's look at the structure of the title bar of the Windows SDI type window. Use the AppWizard of VC to create a single-document project

Product Design Principle 3: release after improvement

Next, I wrote the first two articles on product design principles. This week I wrote the third article: The product will be released after it is improved. When we plan, design, develop, and test a product, the last thing we can do is to launch the

Total Pages: 64722 1 .... 56384 56385 56386 56387 56388 .... 64722 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.