c++ note some detail

本文探讨了C++中使用cin进行数据读取的方法,包括如何处理负数及小数点后的数字,并介绍了类型转换和运算符重载的概念。
cin>> will check digit or other string automatically  but cin.get  don't check it

#include<iostream>

using namespace std;

int main()
{
  char one_char,decimal_point,digit1,digit2;
  long dollars;
  bool negative;
  cin>>one_char;
  if(one_char == '-')
  {
     negative = true;
     cin >> one_char;
  }
  else
  {
     negative=false;
  }

  cin>>dollars>>decimal_point>>digit1>>digit2;

  cout<< dollars <<" "<<decimal_point <<"  "<<digit1<< "   " <<digit2<<endl;
}

static_cast<int>(v_char)-static_cast<int>('0');                       --return cast char to int

operator + or - or other applay a class instance+20  must be let os known how the 20 add the instance  
first check operator  fail then  call instructor implicitly

ostream & operator<<(ostream & outs ,const class& cs)                 

big three  copy constructor 、operator equal and destructor

unnamed namespace {}   is local to compilation unit.   global namespace
分布式微服务企业级系统是一个基于Spring、SpringMVC、MyBatis和Dubbo等技术的分布式敏捷开发系统架构。该系统采用微服务架构和模块化设计,提供整套公共微服务模块,包括集中权限管理(支持单点登录)、内容管理、支付中心、用户管理(支持第三方登录)、微信平台、存储系统、配置中心、日志分析、任务和通知等功能。系统支持服务治理、监控和追踪,确保高可用性和可扩展性,适用于中小型企业的J2EE企业级开发解决方案。 该系统使用Java作为主要编程语言,结合Spring框架实现依赖注入和事务管理,SpringMVC处理Web请求,MyBatis进行数据持久化操作,Dubbo实现分布式服务调用。架构模式包括微服务架构、分布式系统架构和模块化架构,设计模式应用了单例模式、工厂模式和观察者模式,以提高代码复用性和系统稳定性。 应用场景广泛,可用于企业信息化管理、电子商务平台、社交应用开发等领域,帮助开发者快速构建高效、安全的分布式系统。本资源包含完整的源码和详细论文,适合计算机科学或软件工程专业的毕业设计参考,提供实践案例和技术文档,助力学生和开发者深入理解微服务架构和分布式系统实现。 【版权说明】源码来源于网络,遵循原项目开源协议。付费内容为本人原创论文,包含技术分析和实现思路。仅供学习交流使用。
(study_1) C:\Windows\System32>pip install fasttext -i https://pypi.tuna.tsinghua.edu.cn/simple Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting fasttext Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9f/3b/9a10b95eaf565358339162848863197c3f0a29b540ca22b2951df2d66a48/fasttext-0.9.3.tar.gz (73 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: pybind11>=2.2 in c:\users\34201\.conda\envs\study_1\lib\site-packages (from fasttext) (3.0.0) Requirement already satisfied: setuptools>=0.7.0 in c:\users\34201\.conda\envs\study_1\lib\site-packages (from fasttext) (78.1.1) Requirement already satisfied: numpy in c:\users\34201\.conda\envs\study_1\lib\site-packages (from fasttext) (1.26.4) Building wheels for collected packages: fasttext Building wheel for fasttext (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for fasttext (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [135 lines of output] C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\setuptools\dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'description-file' in 'metadata' (setup.cfg), please use the underscore name 'description_file' instead. !! ******************************************************************************** Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead. (Affected: fasttext). By 2026-Mar-03, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self._enforce_underscore(opt, section) C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: MIT License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_py creating build\lib.win-amd64-cpython-310\fasttext copying python\fasttext_module\fasttext\FastText.py -> build\lib.win-amd64-cpython-310\fasttext copying python\fasttext_module\fasttext\__init__.py -> build\lib.win-amd64-cpython-310\fasttext creating build\lib.win-amd64-cpython-310\fasttext\util copying python\fasttext_module\fasttext\util\util.py -> build\lib.win-amd64-cpython-310\fasttext\util copying python\fasttext_module\fasttext\util\__init__.py -> build\lib.win-amd64-cpython-310\fasttext\util creating build\lib.win-amd64-cpython-310\fasttext\tests copying python\fasttext_module\fasttext\tests\test_configurations.py -> build\lib.win-amd64-cpython-310\fasttext\tests copying python\fasttext_module\fasttext\tests\test_script.py -> build\lib.win-amd64-cpython-310\fasttext\tests copying python\fasttext_module\fasttext\tests\__init__.py -> build\lib.win-amd64-cpython-310\fasttext\tests running build_ext building 'fasttext_pybind' extension creating build\temp.win-amd64-cpython-310\Release\python\fasttext_module\fasttext\pybind creating build\temp.win-amd64-cpython-310\Release\src "D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include -IC:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include -Isrc -IC:\Users\34201\.conda\envs\study_1\include -IC:\Users\34201\.conda\envs\study_1\Include "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\ATLMFC\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-ID:\Windows Kits\10\include\10.0.22621.0\ucrt" "-ID:\Windows Kits\10\\include\10.0.22621.0\\um" "-ID:\Windows Kits\10\\include\10.0.22621.0\\shared" "-ID:\Windows Kits\10\\include\10.0.22621.0\\winrt" "-ID:\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tppython/fasttext_module/fasttext/pybind/fasttext_pybind.cc /Fobuild\temp.win-amd64-cpython-310\Release\python\fasttext_module\fasttext\pybind\fasttext_pybind.obj /EHsc /DVERSION_INFO=\\\"0.9.3\\\" fasttext_pybind.cc D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\string_view(12): warning STL4038: The contents of <string_view> are available only with C++17 or later. C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(40): error C2039: "string_view": 不是 "std" 的成员 D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\unordered_map(23): note: 参见“std”的声明 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(40): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(41): error C2039: "string_view": 不是 "std" 的成员 D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\unordered_map(23): note: 参见“std”的声明 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(41): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(46): error C2039: "string_view": 不是 "std" 的成员 D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\unordered_map(23): note: 参见“std”的声明 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(46): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(75): error C2039: "string_view": 不是 "std" 的成员 D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\unordered_map(23): note: 参见“std”的声明 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(75): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(76): error C2039: "string_view": 不是 "std" 的成员 D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\unordered_map(23): note: 参见“std”的声明 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(76): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(78): error C2039: "string_view": 不是 "std" 的成员 D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\unordered_map(23): note: 参见“std”的声明 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(78): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(78): error C2535: “fasttext::entry_type fasttext::Dictionary::getType(int32_t) const”: 已经定义或声明成员函数 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(77): note: 参见“fasttext::Dictionary::getType”的声明 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(91): error C2039: "string_view": 不是 "std" 的成员 D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\unordered_map(23): note: 参见“std”的声明 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(91): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(91): error C2146: 语法错误: 缺少“)”(在标识符“str”的前面) C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(91): error C3646: “str”: 未知重写说明符 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(91): error C2059: 语法错误:“)” C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(91): error C2143: 语法错误: 缺少“;”(在“const”的前面) C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(91): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(91): error C2208: “const int”: 没有使用此类型进行定义的成员 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(91): warning C4091: “ ”: 没有声明变量时忽略“const int”的左侧 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(103): error C2039: "string_view": 不是 "std" 的成员 D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\unordered_map(23): note: 参见“std”的声明 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(103): error C2061: 语法错误: 标识符“string_view” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\detail\struct_smart_holder.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以 防止数据丢失 C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\cast.h(711): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(71): error C2662: “uint32_t fasttext::Dictionary::hash(const int)”: 不能将“this”指针从“_Ty2”转换为“fasttext::Dictionary &” with [ _Ty2=const fasttext::Dictionary ] python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(71): note: 转换丢失限定符 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(91): note: 参见“fasttext::Dictionary::hash”的声明 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(71): note: 尝试匹配参数列表“(std::string)”时 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(72): error C2665: “fasttext::Dictionary::getId”: 没有 重载函数可以转换所有参数类型 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(76): note: 可能是“int32_t fasttext::Dictionary::getId(const int,uint32_t) const” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(72): note: “int32_t fasttext::Dictionary::getId(const int,uint32_t) const”: 无法将参数 1 从“std::string”转换为“const int” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(72): note: 没有可用于执行该转换的用户定义的转换运算符, 或者无法调用该运算符 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(72): note: 尝试匹配参数列表“(std::string, uint32_t)”时 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(73): error C2664: “fasttext::entry_type fasttext::Dictionary::getType(int32_t) const”: 无法将参数 1 从“std::string”转换为“int32_t” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(73): note: 没有可用于执行该转换的用户定义的转换运算符, 或者无法调用该运算符 C:\Users\34201\AppData\Local\Temp\pip-install-0rn9nx1t\fasttext_373565729c8148cc9d2936be79e6fc8a\src\dictionary.h(77): note: 参见“fasttext::Dictionary::getType”的声明 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(73): note: 尝试匹配参数列表“(std::string)”时 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(172): error C2065: “ssize_t”: 未声明的标识符 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(172): error C2672: “pybind11::init”: 未找到匹配的重载 函数 C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2550): note: 可能是“Ret pybind11::init(CFunc &&,AFunc &&)” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(172): note: “pybind11::init”:“CFunc”的 模板 参数无效,应为类型 C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2542): note: 或 “Ret pybind11::init(Func &&)” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(172): note: “pybind11::init”:“Func”的 模板 参数无效 ,应为类型 C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2530): note: 或 “pybind11::detail::initimpl::constructor<Args...> pybind11::init(void)” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(172): note: “pybind11::init”:“Args”的 模板 参数无效 ,应为类型 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(172): error C2672: “pybind11::class_<fasttext::Vector>::def”: 未找到匹配的重载函数 C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2161): note: 可能是“pybind11::class_<fasttext::Vector> &pybind11::class_<fasttext::Vector>::def(pybind11::detail::initimpl::pickle_factory<Args...> &&,const Extra &...)” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2155): note: 或 “pybind11::class_<fasttext::Vector> &pybind11::class_<fasttext::Vector>::def(pybind11::detail::initimpl::factory<Args...> &&,const Extra &...)” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2148): note: 或 “pybind11::class_<fasttext::Vector> &pybind11::class_<fasttext::Vector>::def(const pybind11::detail::initimpl::alias_constructor<Args...> &,const Extra &...)” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2141): note: 或 “pybind11::class_<fasttext::Vector> &pybind11::class_<fasttext::Vector>::def(const pybind11::detail::initimpl::constructor<Args...> &,const Extra &...)” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2129): note: 或 “pybind11::class_<fasttext::Vector> &pybind11::class_<fasttext::Vector>::def(const T &,const Extra &...)” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2104): note: 或 “pybind11::class_<fasttext::Vector> &pybind11::class_<fasttext::Vector>::def(const char *,Func &&,const Extra &...)” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(172): note: “pybind11::class_<fasttext::Vector> &pybind11::class_<fasttext::Vector>::def(const char *,Func &&,const Extra &...)”: 应输入 3 个参数,却提供了 1 个 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(186): error C2065: “ssize_t”: 未声明的标识符 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(186): error C2065: “ssize_t”: 未声明的标识符 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(186): error C2672: “pybind11::init”: 未找到匹配的重载 函数 C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2550): note: 可能是“Ret pybind11::init(CFunc &&,AFunc &&)” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(186): note: “pybind11::init”:“CFunc”的 模板 参数无效,应为类型 C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2542): note: 或 “Ret pybind11::init(Func &&)” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(186): note: “pybind11::init”:“Func”的 模板 参数无效 ,应为类型 C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2530): note: 或 “pybind11::detail::initimpl::constructor<Args...> pybind11::init(void)” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(186): note: “pybind11::init”:“Args”的 模板 参数无效 ,应为类型 python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(186): error C2672: “pybind11::class_<fasttext::DenseMatrix>::def”: 未找到匹配的重载函数 C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2161): note: 可能是“pybind11::class_<fasttext::DenseMatrix> &pybind11::class_<fasttext::DenseMatrix>::def(pybind11::detail::initimpl::pickle_factory<Args...> &&,const Extra &...)” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2155): note: 或 “pybind11::class_<fasttext::DenseMatrix> &pybind11::class_<fasttext::DenseMatrix>::def(pybind11::detail::initimpl::factory<Args...> &&,const Extra &...)” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2148): note: 或 “pybind11::class_<fasttext::DenseMatrix> &pybind11::class_<fasttext::DenseMatrix>::def(const pybind11::detail::initimpl::alias_constructor<Args...> &,const Extra &...)” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2141): note: 或 “pybind11::class_<fasttext::DenseMatrix> &pybind11::class_<fasttext::DenseMatrix>::def(const pybind11::detail::initimpl::constructor<Args...> &,const Extra &...)” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2129): note: 或 “pybind11::class_<fasttext::DenseMatrix> &pybind11::class_<fasttext::DenseMatrix>::def(const T &,const Extra &...)” C:\Users\34201\AppData\Local\Temp\pip-build-env-n2a89dj4\overlay\Lib\site-packages\pybind11\include\pybind11\pybind11.h(2104): note: 或 “pybind11::class_<fasttext::DenseMatrix> &pybind11::class_<fasttext::DenseMatrix>::def(const char *,Func &&,const Extra &...)” python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(186): note: “pybind11::class_<fasttext::DenseMatrix> &pybind11::class_<fasttext::DenseMatrix>::def(const char *,Func &&,const Extra &...)”: 应输入 3 个参数,却提供了 1 个 error: command 'D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for fasttext Failed to build fasttext ERROR: Failed to build installable wheels for some pyproject.toml based projects (fasttext)
07-23
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值