37,719
社区成员
发帖
与我相关
我的任务
分享
/* jsample.h */
#ifndef JSAMPLE_H
#define JSAMPLE_H
//void cHelloWorld();
int compute(int a, int b);
#endif
/* jsample.cpp */
#include <iostream>
#include "jsample.h"
using namespace std;
int compute(int a, int b)
{
int temp = (a+b)*(a-b);
return temp;
}
#!/usr/bin/env python
# -*- coding: cp936 -*-
# runme.py
from __future__ import division
import jsample
print('this is the test running.\n')
aa = jsample.compute(5,2)
print(aa)
raw_input("press the enter key to exit.")