问题描述
- c++ does not refer to a value
-
#ifndef __seven____5__ #define __seven____5__ #include <stdio.h> #include <iostream> using namespace std; class B1{ public: B1(int a){ cout << a << " b1"<< endl; } }; class B2{ public: B2(int b){ cout << b << " b2"<< endl; } }; class B3{ public: B3(){ cout << " b3"<< endl; } }; class C: public B2, public B1, public B3{ public: C(int a, int b, int c):B1(a), B2(b), mb2(a), mb1(b) { cout << c << " c3"<< endl; } private: B1 mb1; B2 mb2: B3 mb3; }; #endif
不知道为何会有这个错误啊,哪位大哥帮忙解答一下
解决方案
B2 mb2:
这里的分号写成冒号了。
解决方案二:
写程序小心点,标点也不能乱用。冒号是标号,分号是语句结束。
解决方案三:
上一行mb2应该是分号而不是冒号。
解决方案四:
哇,你这个错误,还真是不好看出来,看了半天觉的没啥问题,还是大神们细心
解决方案五:
1.去官网下载最新的源码,自行编译安装
sudo python setup-py build
sudo python setup.py install
- ?
Oracle home does not refer to an 8i, 9i, 10g or 11g installation.
The next problem to arise was that th......
答案就在这里:cx_Oracle Oracle home does not refer to an 8i, 9i, 10g or 11g installation
时间: 2024-12-21 02:43:10