- 博客(5)
- 资源 (4)
- 收藏
- 关注
原创 C++ 11 : call a function on every item of a vector
vector nums = {1, 2, 3, 4}; std::for_each(nums.begin(), nums.end(), [](int &n) { n = -n; }); for (int element : nums) { std::cout << element << " "; }
2016-07-13 23:21:25 290
原创 C++ 11 : create all possible k combinations of n items
#include #include #include main (){ int nn = 5; int r = 3; std::vector v_real = { 1, 2, 3, 4, 5 }; for (int r = 1; r <= nn; r++) { std::vector v(nn); std::fill(v.begin(), v.begin() + r,
2016-07-13 23:07:44 363
原创 [Solved] fatal error: mpc.h: No such file or directory Ubuntu
sudo apt-get install libmpc-devThis error was caused by the lack of multiple precision complex floating-point library development package (libmpc-dev).
2016-07-06 10:29:10 14142 1
原创 The Concept of Indistinguishability under Chosen Plaintext Attack (IND-CPA)
First, the concept of the Semantic Security means the knowledge of the ciphertext of unknown message does not reveal any additional information on the message. The indistinguishablility under chosen p
2016-07-06 02:00:12 1447
原创 The concept of Homomorphic Encryption
Homomorphic encryption is one of the hot research topics in the field of encryption. This technique enables the computation to be done in the encrypted data without requiring the encryption key. The b
2016-07-04 01:19:07 375
兔子过河C语言代码小游戏
2009-08-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人