⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.cpp

📁 1.源码太简单 2.不是源码 3.缺少文件 4.所选类别和开发环境不对 5.乱写说明或说明不够认真 6.压缩文件有密码 7.源码重复或已经存在
💻 CPP
字号:
// Test.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include "Test.h"
#include <iostream>
#include <vector>
#include <cctype>
#include <list>
#include <map>
#include <typeinfo>
#include <fstream>
#include <tchar.h>
#include <string>
using namespace std;
// void sqrval(const int *val)
// {
// 	int *p;
// 	p=const_cast<int *>(val);
// 	*p=*val * *val;
// 	int i=reinterpret_cast<int>(p);
// 	cout << "i="<<i;
// }
template <class X> X test(X &a,X &b)
{
	X temp;
	temp=a+b;
	return temp;

}
//int fun(int i=5);
void fun(int i=5)
{
	cout<<i;
}

int _tmain(int argc, _TCHAR* argv[])
{
	//char s[]="Test";
	string s="test";

	string& c=s;
	cout<<&c;
	
	cout<< s;
	//cout<<c;

	getchar();
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -