- 授权协议: BSL
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: https://github.com/Dobiasd/FunctionalPlus
软件介绍
FunctionalPlus 是一个小的表头库,它可以降低代码噪声,一次只处理一个单一等级的的抽象对象。通过增加你的代码的简洁性和可维护性来提高生产效率和编码乐趣。从长远的角度来看,它可以通过提供易于使用的功能将你从实现控制的流中解放出来。
示例代码:
#include "FunctionalPlus/FunctionalPlus.h"#include <iostream>
// std::list<std::uint64_t> CollatzSeq(std::uint64_t x) { ... }int main()
{ using namespace FunctionalPlus;
using namespace std;
typedef list<uint64_t> Ints;
// [1, 2, 3 ... 29]
auto numbers = GenerateIntegralRange<Ints>(1, 30);
// A function that does [1, 2, 3, 4, 5] -> "[1 => 2 => 3 => 4 => 5]"
auto ShowInts = Bind1of2(ShowContWith<Ints>, " => ");
// A composed function that calculates a Collatz sequence and shows it.
auto ShowCollatsSeq = Compose(CollatzSeq, ShowInts);
// Apply it to all our numbers.
auto seqStrs = Transform(ShowCollatsSeq, numbers);
// Combine the numbers and their sequence representations into a map.
auto collatzDict = CreateMap(numbers, seqStrs);
// Print some of the sequences.
cout << collatzDict[13] << endl;
cout << collatzDict[17] << endl;
}
C语言的科学和艺术
罗伯茨 / 翁惠玉 / 机械工业出版社 / 2005-3 / 55.00元
《C语言的科学和艺术》是计算机科学的经典教材,介绍了计算机科学的基础知识和程序设计的专门知识。《C语言的科学和艺术》以介绍ANSI C为主线,不仅涵盖C语言的基本知识,而且介绍了软件工程技术以及如何应用良好的程序设计风格进行开发等内容。《C语言的科学和艺术》采用了库函数的方法,强调抽象的原则,详细阐述了库和模块化开发。此外,《C语言的科学和艺术》还利用大量实例讲述解决问题的全过程,对开发过程中常见......一起来看看 《C语言的科学和艺术》 这本书的介绍吧!
