Incompatible with parameter of type “LPCWSTR”

后端 未结 5 641
终归单人心
终归单人心 2020-12-08 03:42
#include \"stdafx.h\"
#include 
#include 
#include 
#include 
using namespace std;

class Dir
{
public:
         


        
5条回答
  •  自闭症患者
    2020-12-08 03:43

    you can use wchar_t

    class Dir
    {
    public:
        wchar_t* cat;
    Dir()
    {
        wcout << "(C:/*)\n";
        cat = new wchar_t[50];
        wcin >> cat;
    }
    
        void virtual ShowFiles()
        {
        }
    
    };
    

    In Visual Studio 2013 and later, the MFC libraries for multi-byle character encoding (MBCS) will be provided as an add-on to Visual Studio

提交回复
热议问题