This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WonderfulClass | |
{ | |
public: | |
static WonderfulClass* makeAnObject() | |
{ | |
// 创建一个WonderfulClass对象并返回其指针 | |
return (new WonderfulClass); | |
} | |
private: | |
WonderfulClass() { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <math.h> | |
#include <vector> | |
#include <sstream> | |
using namespace std; | |
int main() { | |
char Name[30]; |
NewerOlder