自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(94)
  • 收藏
  • 关注

转载 网络LED矩阵显示器

前言主要是Linux网络程序和多线程程序的编写,实现一个网络访问的LED矩阵显示器。客户端采用telnet进行连接。socket的编程主要和计网实验课上的差不多,计网实验socket编程传送门字符串的显示在上次显示一个字符的基础上进行一个字符串的显示。字符的显示对于字符串的显示可以直接写入一个字符串,在内核中采用内核队列进行实现。或者每次只能写入一个字符,在应用...

2016-06-08 14:23:00 189

转载 树莓派上的GPIO字符驱动程序

博客已迁移,请前往http://wangkejie.me/2016/06/04/rasp-gpio/阅读转载于:https://www.cnblogs.com/jackwang822/p/5558046.html

2016-06-04 04:37:00 178

转载 Linux下的基于Pthread的多线程Socket编程

博客已迁移,请前往http://wangkejie.me/2016/05/27/linux-pthread-socket/阅读转载于:https://www.cnblogs.com/jackwang822/p/5533291.html

2016-05-27 03:19:00 137

转载 uC/OS-II在STM32F103上的移植

博客已迁移,请前往http://wangkejie.me/2016/05/21/ucos-stm32-migration/阅读转载于:https://www.cnblogs.com/jackwang822/p/5514168.html

2016-05-21 10:30:00 99

转载 GitHub学习笔记(更新中)

工作区,版本库解析参考链接:http://blog.csdn.net/felix_f/article/details/8777463左边为工作区,即是我们平时看到的目录,右图为版本库,其中版本库中左侧的index为暂存区(stage, index),右侧为分支(图中为master)我们修改工作区中的文件,通过add可以将修改到暂存区中;当修改了工作区中的文件而没有ad...

2016-05-07 12:30:00 64

转载 Ubuntu下mysql的安装以及简单的命令操作

mysql 5.5版本安装第一次安装直接采用了apt-get直接安装只要按顺序输入以下几条命令即可以完成安装1 sudo netstat -tap | grep mysql //查看是否安装mysql2 sudo apt-get install mysql-server mysql-client //安装mysql的服务端和客户端安装完成后通过...

2016-05-06 15:03:00 88

转载 STM32上电启动以及Cube库的程序编写

博客已迁移,请前往http://wangkejie.me/2016/04/17/stm32-start-cube/阅读转载于:https://www.cnblogs.com/jackwang822/p/5400605.html

2016-04-17 11:29:00 164

转载 zoj 1028 Flip and Shift

Flip and ShiftTime Limit:2 Seconds Memory Limit:65536 KBThis puzzle consists of a random sequence of m black disks and n white disks on an oval-shaped track, with a turnstile capable of...

2016-04-07 23:24:00 107

转载 zoj 1056 The Worm Turns

The Worm TurnsTime Limit:2 Seconds Memory Limit:65536 KBWorm is an old computer game. There are many versions, but all involve maneuvering a "worm" around the screen, trying to avoid run...

2016-04-07 22:47:00 123

转载 zoj 1073 Round and Round We Go

Round and Round We GoTime Limit:2 Seconds Memory Limit:65536 KBProblemA cyclic number is an integer n digits in length which, when multiplied by any integer from 1 to n, yields a ��cycle...

2016-04-06 19:30:00 104

转载 zoj 1094 Matrix Chain Multiplication

Matrix Chain MultiplicationTime Limit:2 Seconds Memory Limit:65536 KBMatrix multiplication problem is a typical example of dynamical programming.Suppose you have to evaluate an express...

2016-04-06 18:59:00 92

转载 zoj 1029 moving tables

Moving TablesTime Limit:2 Seconds Memory Limit:65536 KBThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure.The fl...

2016-04-06 16:00:00 99

转载 zoj 1061 Web Navigation

Web NavigationTime Limit:2 Seconds Memory Limit:65536 KBStandard web browsers contain features to move backward and forward among the pages recently visited. One way to implement these f...

2016-04-06 00:37:00 105

转载 zoj 1076 Gene Assembly

Gene AssemblyTime Limit:2 Seconds Memory Limit:65536 KBStatement of the ProblemWith the large amount of genomic DNA sequence data being made available, it is becoming more important to...

2016-04-06 00:14:00 119

转载 zoj 1027 Human Gene Functions

Human Gene FunctionsTime Limit:2 Seconds Memory Limit:65536 KBIt is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted...

2016-04-05 23:40:00 101

转载 PAT 1091. Acute Stroke (30)

1091. Acute Stroke (30)One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions are identified in ...

2015-08-25 14:41:00 88

转载 PAT 1057. Stack (30)

1057. Stack (30)Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations include Push (inserting an element onto...

2015-08-25 12:36:00 93

转载 PAT 1095. Cars on Campus (30)

1095. Cars on Campus (30)Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the gate. Now with al...

2015-08-25 11:21:00 83

转载 PAT 1021. Deepest Root (25)

1021. Deepest Root (25)A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results...

2015-08-24 23:16:00 53

转载 PAT 1033. To Fill or Not to Fill (25)

1033. To Fill or Not to Fill (25)With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations ...

2015-08-24 21:46:00 68

转载 PAT 1098. Insertion or Heap Sort (25)

1098. Insertion or Heap Sort (25)According to Wikipedia:Insertion sortiterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sor...

2015-08-24 19:33:00 89

转载 PAT 1066. Root of AVL Tree (25)

1066. Root of AVL Tree (25)An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they dif...

2015-08-24 17:46:00 96

转载 PAT 1072. Gas Station (30)

1072. Gas Station (30)A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as possible. However it ...

2015-08-24 16:33:00 68

转载 PAT 1055. The World's Richest (25)

1055. The World's Richest (25)Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest people. Now you are supposed to simulate this...

2015-08-24 13:37:00 51

转载 PAT 1022. Digital Library (30)

1022. Digital Library (30)A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each book is ...

2015-08-24 10:42:00 52

转载 PAT 1089. Insert or Merge (25)

1089. Insert or Merge (25)According to Wikipedia:Insertion sortiterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort remov...

2015-08-23 18:25:00 78

转载 PAT 1068. Find More Coins (30)

1068. Find More Coins (30)Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all k...

2015-08-23 14:15:00 59

转载 PAT 1018. Public Bike Management (30)

1018. Public Bike Management (30)There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station a...

2015-08-23 11:46:00 41

转载 PAT 1017. Queueing at Bank (25)

1017. Queueing at Bank (25)Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customers have ...

2015-08-22 22:36:00 82

转载 PAT 1014. Waiting in Line (30)

1014. Waiting in Line (30)Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the custom...

2015-08-22 21:19:00 56

转载 PAT 1053. Path of Equal Weight (30)

1053. Path of Equal Weight (30)Given a non-empty tree with root R, and with weight Wiassigned to each tree node Ti. Theweight of a path from R to Lis defined to be the sum of the weights o...

2015-08-22 17:34:00 122

转载 PAT 1064. Complete Binary Search Tree (30)

1064. Complete Binary Search Tree (30)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes ...

2015-08-22 11:53:00 64

转载 PAT 1087. All Roads Lead to Rome (30)

1087. All Roads Lead to Rome (30)Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the mo...

2015-08-22 11:19:00 78

转载 PAT 1049. Counting Ones (30)

1049. Counting Ones (30)The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. For example, given...

2015-08-21 22:25:00 136

转载 PAT 1045. Favorite Color Stripe (30)

1045. Favorite Color Stripe (30)Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off those unwan...

2015-08-21 21:35:00 96

转载 PAT 1056. Mice and Rice (25)

1056. Mice and Rice (25)Mice and Riceis the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given map. The goal of ...

2015-08-21 19:45:00 60

转载 PAT 1030. Travel Plan (30)

1030. Travel Plan (30)A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a travele...

2015-08-20 21:26:00 76

转载 PAT 1010. Radix (25)

1010. Radix (25)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal number and 110 is a binary number.Now fo...

2015-08-20 20:43:00 53

转载 PAT 1003. Emergency (25)

1003. Emergency (25)As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue...

2015-08-20 16:48:00 49

转载 PAT 1016. Phone Bills (25)

1016. Phone Bills (25)A long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certain amount per minute, depending on the time of ...

2015-08-18 22:04:00 85

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除