- 授权协议: Apache
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: https://github.com/tylertreat/chan
- 软件文档: https://github.com/tylertreat/chan
- 官方下载: https://github.com/tylertreat/chan
软件介绍
chan 是纯 C 实现的 Go 的 Channels,示例代码:
#include <pthread.h>
#include <stdio.h>
#include "chan.h"
chan_t* chan;
void* ping()
{
// Send blocks until receiver is ready.
chan_send(chan, "ping");
return NULL;
}
int main()
{
// Initialize unbuffered channel.
chan = chan_init(0);
pthread_t th;
pthread_create(&th, NULL, ping, NULL);
// Receive blocks until sender is ready.
void* msg;
chan_recv(chan, &msg);
printf("%s\n", msg);
// Clean up channel.
chan_dispose(chan);
}
程式之美-微軟技術面試心得
編程之美小 / 悅知文化 / 2008.06.20 / 490元
書內容分為以下幾個部分: ▓ 遊戲之樂:從遊戲和其他有趣問題出發,化繁為簡,分析總結。 ▓ 數字之魅:程式設計的過程實際上就是和數字及字元打交道的過程。這一部分收集了一些這方面的有趣探討。 ▓ 結構之法:彙集了常見的對字串、鏈表、佇列,以及樹進行操作的題目。 ▓ 數學之趣:列舉了一些不需要寫具體程式的數學問題,鍛煉讀者的抽象思考能力。 ▓ 書中絕大部分題目都提供了詳細......一起来看看 《程式之美-微軟技術面試心得》 这本书的介绍吧!
