#include<iostream>
#include<string>
using namespace std;
class Stack
{
public:
int size;
explicit Stack(int size = 0)
{
this->size = size;
}
};
string f (string s)
{
return s;
}
int main(int args, char** argv)
{
// Stack s(40) ;
// Stack s1 ;
float a =3.05f;
cout << static_cast<int> (a) << endl;
cout << f(static_cast<string>("helloworld")) << endl;
cout << static_cast<string>("helloworld") << endl;
cout << f("helloworld") << endl;
}
c++ stl__explicit
最新推荐文章于 2021-12-23 12:52:39 发布