testtoolfun.cpp

来自「标准C++编写的小小CRM软件,无任何平台依赖.采用标准XML作为数据库.只需重」· C++ 代码 · 共 41 行

CPP
41
字号
#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 + =
减小字号Ctrl + -
显示快捷键?