![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 53
胖团君
ict 在读,研究方向为隐私保护机器学习和数据挖掘。
渣渣一枚
展开
-
Vector 介绍
前言 今天做工程时用到了 vector 类和一些 C++11的特性,之前对 vector 就不是很熟悉,今天索性梳理了一遍。 文章中的方法来自博客和官方的 API 介绍,Reference在文章末尾 一、 向量的介绍向量 vector 是一种对象实体, 能够容纳许多其他类型相同的元素, 因此又被称为容器。 与string相同, vector 同属于STL(Standard Templa原创 2017-02-10 12:54:12 · 637 阅读 · 0 评论 -
python 嵌入 C/C++方法
摘要:利用 gcc -o libpycall.so -shared -fPIC filename.c 将 C/C++文件编译成.so文件,供 python 调用/*gcc -o libpycall.so -shared -fPIC pycall.c */ #include <stdio.h> #include <stdlib.h> int fact(int n) { if (n <=原创 2017-08-19 15:51:27 · 989 阅读 · 0 评论