php调用c++

WBOY
Release: 2016-06-23 14:34:49
Original
1756 people have browsed it

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

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

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

 

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

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

保存。

4.程序执行如下

提交后:

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template