昨天的设计模式中有个问题需要拿出来说明下:
#include "pch.h"
#include "SimpleFactory.h"
#include <iostream>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
int toUnicode(const char* str)
{
return str[0] + (str[1] ? toUnicode(str + 1)
昨天的设计模式中有个问题需要拿出来说明下:
#include "pch.h"
#include "SimpleFactory.h"
#include <iostream>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
int toUnicode(const char* str)
{
return str[0] + (str[1] ? toUnicode(str + 1)