php调用c++

WBOY
WBOYOriginal
2016-06-23 14:34:491758browse

1.在/var/www中建个测试文件夹 cpp

在此文件夹中新建c++文件sort.cpp,如下

编译并测试执行通过进行以下步骤。

 

2.在cpp文件夹下新建文件cpp.html,如下

3.同样在cpp下建php文件cpp.php,如下

保存。

4.程序执行如下

提交后:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP 11:函数Next article:PHP连接PGSQL