📄 test.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 + -