📄 testtoolfun.cpp
字号:
#include "ToolFun.h"
#include <iostream>
#include <conio.h>
using namespace std;
/*
int main()
{
string str1("hello");
if( str1 == "hello" )
{ cout<<"equal"<<endl; }
else
{ cout<<"not equal"<<endl; }
getch();
return 0;
}
*/
/* follow function use to test format convert function toInt() and to Float()
int main()
{
char str1[]="123";
char str2[]="12.4";
char str3[]="fdsaf";
string str4("433");
string str5("43.2");
string str6("jfdksaj");
cout<<toInt(str1)<<endl;
cout<<toInt(str3)<<endl;
cout<<toInt(str4)<<endl;
cout<<toFloat(str2)<<endl;
cout<<toFloat(str5)<<endl;
cout<<toFloat(str6)<<endl;
getch();
return true;
}
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -