#include <iostream>
using namespace std;
class CExample
{
private:
int a;
public:
//構(gòu)造函數(shù)
CExample(int b)
{
a = b;
cout << "creat: " << a << endl;
}
//拷貝構(gòu)造
CExample(const CExample& C)
{
a = C.a;
cout << "copy" << endl;
}
//析構(gòu)函數(shù)
~CExample()
{
cout << "delete: " << a << endl;
}
void Show()
{
cout << a << endl;
}
};
//全局函數(shù)仅讽,傳入的是對象
void g_Fun(CExample C)
{
cout << "test" << endl;
}
int main()
{
CExample test(1);
//傳入對象
g_Fun(test);
return 0;
}
echo '<script type="text/javascript">';
$php_test = 'I come from PHP!';
echo "var test='$php_test';";
echo "var test='$php_test';";
echo 'alert(test);';
echo '</script>';
replace into t(id, update_time) select 1, now();
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者