|error: expected type-specifier before '(' token|

初学者的问题,在看视频的时候老师是可以运行的,但我用vs和codeblock都不能运行,代码我是照着打下来的,应该没错,那么这个是编译器问题还是我真的打错了....#include
using namespace std;

#include"string"
#include
#include
#include"set"
#include
#include"functional"

//函数对象
template
class show
{
public:
void operator(T &t)
{
cout << t << " ";
}

private:

};

void main()
{
cout << "hello wordl" << endl;
system("pause");
return 0;
}

1个回答

 void operator<<(T &t)
你运算符没写

你现在的水平是不可能遇到“编译器问题”的。

saber1043513213
saber1043513213 啊十分感谢,我当时看到您的评论点进去却发现被删除了,我以为是帖子被删除了,今天重新发帖才发现您的回复
接近 3 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
请问:error: expected primary-expression before '[' token 该怎么解决?
程序及错误如图:![图片说明](https://img-ask.csdn.net/upload/201904/26/1556271507_407252.png)
77: error: expected unqualified-id before '^' token
#define TO_SIGNED(x) ((signed)(x)) class BigInteger{ protected: unsigned* array; BigInteger(unsigned*const theArray){ array = theArray; } inline unsigned* getArray(){ if(this == BigIntegerNull) #ifdef _EXCEPTION_H_ throw NullPointerException(); #else return NullArray; #endif return array; } BigInteger expand(unsigned newSize, bool extendSign){ if(getArray() == NullArray){ BigInteger n(NullArray); return n; } if(newSize <= array[0]) return *(new BigInteger(*this)); BigInteger nbi(new unsigned[newSize+1]); register unsigned i; for(i = 0; i <= array[0]; i++) nbi.array[i] = array[i]; if(extendSign && TO_SIGNED(array[array[0]]) < 0){ for(; i <= newSize; i++) nbi.array[i] = -1; }else{ for(; i <= newSize; i++) nbi.array[i] = 0; } return nbi; } public: static BigInteger*const BigIntegerNull; static unsigned*const NullArray; BigInteger(const BigInteger& origin){ #ifdef _EXCEPTION_H_ if(origin.getArray() == NullArray) throw NullPointerException(); #endif register unsigned size = origin.array[0]+1; array = new unsigned[size]; do{ --size; array[size] = origin.array[size]; }while(size > 0); } BigInteger _xor(BigInteger bi, bool extendSign){ if(getArray() == NullArray || bi.getArray() == NullArray){ BigInteger n(NullArray); return n; } register unsigned i; if(array[0] <= bi.array[0]){ for(i = array[0]; i > 0; i--) array[i] &= bi.array[i]; }else{ for(i = 1; i <= bi.array[0]; i++){ array[i] ^= bi.array[i]; } if(extendSign && TO_SIGNED(bi.array[bi.array[0]]) < 0){ for(; i <= array[0]; i++){ array[i] = -1; // or -1 } } } return *this; } BigInteger xor(BigInteger bi, bool extendSign){ // 编译器指示错误的行 BigInteger n(NullArray); if(getArray() == NullArray || bi.getArray() == NullArray){ return n; } register unsigned i; if(array[0] <= bi.array[0]){ n = this->expand(bi.array[0], extendSign); for(i = array[0]; i > 0; i--){ n.array[i] ^= bi.array[i]; } if(extendSign && TO_SIGNED(bi.array[bi.array[0]]) < 0){ for(; i <= bi.array[0]; i++){ n.array[i] = ~bi.array[i]; // xor -1 } }else{ for(; i <= bi.array[0]; i++){ n.array[i] = bi.array[i]; // xor 0 } } }else{ n = *(new BigInteger(*this)); for(i = 1; i <= bi.array[0]; i++){ n.array[i] ^= bi.array[i]; } if(extendSign && TO_SIGNED(bi.array[bi.array[0]]) < 0){ for(; i <= array[0]; i++){ n.array[i] = ~array[i]; // xor -1 } } } return n; } }; BigInteger*const BigInteger::BigIntegerNull = reinterpret_cast<BigInteger*>(0); unsigned*const BigInteger::NullArray = reinterpret_cast<unsigned*>(0);
关于vue打包提示Error: Expected a pseudo-class or pseudo-element
![图片说明](https://img-ask.csdn.net/upload/201911/06/1573020553_450911.png) vue打包出错,提示Error: Expected a pseudo-class or pseudo-element错误打包不成功,请问该如何解决?
C++代码有什么问题啊 求解答
![图片说明](https://img-ask.csdn.net/upload/201507/28/1438086348_293066.jpg) 为什么编译器提示 Line3: error: expected unqualified-id before ';' token
qt在编译c++11 的<"thread">头文件时报错
qt在编译c++11 的<"thread">头文件时报错: 1. d:\Qt\Qt5.6.2\Tools\mingw492_32\i686-w64-mingw32\include\c++\thread:235: error: expected primary-expression before '<<' token return __out << "thread::id of a non-executing thread"; 2.d:\Qt\Qt5.6.2\Tools\mingw492_32\i686-w64-mingw32\include\c++\thread:237: error: expected primary-expression before '<<' token return __out << __id._M_thread; 只包括头文件也会报错 qmake 已添加: QMAKE_CXXFLAGS += -std=c++11 QMAKE_LFLAGS += -Wl,--no-as-needed LIBS += -lpthread
linux安装opencv是make出错
[ 7%] Built target libwebp [ 7%] Built target opencv_test_core_pch_dephelp [ 7%] Built target opencv_core_pch_dephelp [ 7%] Built target opencv_ts_pch_dephelp [ 7%] Built target pch_Generate_opencv_ts [ 7%] Built target pch_Generate_opencv_core [ 7%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp: In function ‘int lapack_gemm_c(const fptype*, size_t, const fptype*, size_t, fptype, const fptype*, size_t, fptype, fptype*, size_t, int, int, int, int)’: /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:437: error: expected unqualified-id before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:437: error: expected ‘)’ before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:438: error: expected unqualified-id before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:438: error: expected ‘)’ before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:439: error: expected unqualified-id before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:439: error: expected ‘)’ before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:440: error: expected unqualified-id before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:440: error: expected ‘)’ before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:443: error: expected unqualified-id before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:443: error: expected ‘;’ before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:444: error: expected unqualified-id before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:444: error: expected ‘;’ before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:494: error: expected unqualified-id before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:494: error: expected ‘)’ before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:496: error: expected unqualified-id before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:496: error: expected ‘)’ before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:501: error: expected unqualified-id before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:501: error: expected ‘)’ before ‘__complex__’ /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:504: error: ‘cAlpha’ was not declared in this scope /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:504: error: ‘cBeta’ was not declared in this scope /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:506: error: ‘cAlpha’ was not declared in this scope /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:506: error: ‘cBeta’ was not declared in this scope /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp: In function ‘int lapack_gemm_c(const fptype*, size_t, const fptype*, size_t, fptype, const fptype*, size_t, fptype, fptype*, size_t, int, int, int, int) [with fptype = float]’: /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:591: instantiated from here /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:439: warning: unused variable ‘ldsrc3’ [-Wunused-variable] /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp: At global scope: /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:434: warning: unused parameter ‘alpha’ [-Wunused-parameter] /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp: In function ‘int lapack_gemm_c(const fptype*, size_t, const fptype*, size_t, fptype, const fptype*, size_t, fptype, fptype*, size_t, int, int, int, int) [with fptype = double]’: /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:598: instantiated from here /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:439: warning: unused variable ‘ldsrc3’ [-Wunused-variable] /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp: At global scope: /home/w/opencv-3.2.0/modules/core/src/hal_internal.cpp:434: warning: unused parameter ‘alpha’ [-Wunused-parameter] modules/core/CMakeFiles/opencv_core.dir/build.make:930: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o' failed make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o] Error 1 CMakeFiles/Makefile2:1289: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
linux下安装node.js使用make命令的时候报错请大神帮忙看下什么原因。
mutex.h:210: 错误:expected ‘)’ before ‘const’ ../deps/v8/src/base/platform/mutex.h:210: 错误:‘void operator=(const LockGuard&)’必须是一个非静态的成员函数 ../deps/v8/src/base/platform/mutex.h:211: 错误:expected declaration before ‘}’ token make[1]: *** [/usr/src/node-v6.2.0/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] 错误 1 make[1]: Leaving directory `/usr/src/node-v6.2.0/out' ../deps/v8/src/base/platform/mutex.h:69: 错误:expected unqualified-id before ‘private’ ../deps/v8/src/base/platform/mutex.h:89: 错误:‘friend’用在类外 ../deps/v8/src/base/platform/mutex.h:91: 错误:expected unqualified-id before ‘const’ ../deps/v8/src/base/platform/mutex.h:91: 错误:expected ‘)’ before ‘const’ ../deps/v8/src/base/platform/mutex.h:91: 错误:‘void v8::base::operator=(const v8::base::Mutex&)’必须是一个非静态的成员函数 ../deps/v8/src/base/platform/mutex.h:104: 错误:expected initializer before ‘<’ token ../deps/v8/src/base/platform/mutex.h:130: 错误:变量‘v8::RecursiveMutex v8::final’有初始值设定,但是类型不完全 ../deps/v8/src/base/platform/mutex.h:131: 错误:expected primary-expression before ‘public’ ../deps/v8/src/base/platform/mutex.h:131: 错误:expected ‘}’ before ‘public’ ../deps/v8/src/base/platform/mutex.h:131: 错误:expected ‘,’ or ‘;’ before ‘public’ ../deps/v8/src/base/platform/mutex.h:133: 错误:expected constructor, destructor, or type conversion before ‘;’ token ../deps/v8/src/base/platform/mutex.h:155: 错误:‘Mutex’未声明 ../deps/v8/src/base/platform/mutex.h:155: 错误:expected initializer before ‘NativeHandle’ ../deps/v8/src/base/platform/mutex.h:157: 错误:expected constructor, destructor, or type conversion before ‘&’ token ../deps/v8/src/base/platform/mutex.h:160: 错误:expected initializer before ‘&’ token ../deps/v8/src/base/platform/mutex.h:164: 错误:expected unqualified-id before ‘private’ ../deps/v8/src/base/platform/mutex.h:170: 错误:expected unqualified-id before ‘const’ ../deps/v8/src/base/platform/mutex.h:170: 错误:expected ‘)’ before ‘const’ ../deps/v8/src/base/platform/mutex.h:170: 错误:‘void v8::operator=(const v8::RecursiveMutex&)’必须是一个非静态的成员函数 ../deps/v8/src/base/platform/mutex.h:184: 错误:expected initializer before ‘<’ token ../deps/v8/src/base/platform/mutex.h:202: 错误:‘LockGuard final’声明为模板 ../deps/v8/src/base/platform/mutex.h:203: 错误:expected primary-expression before ‘public’ ../deps/v8/src/base/platform/mutex.h:203: 错误:expected ‘}’ before ‘public’ ../deps/v8/src/base/platform/mutex.h:205: 错误:‘~LockGuard’未声明为成员 ../deps/v8/src/base/platform/mutex.h:207: 错误:expected unqualified-id before ‘private’ ../deps/v8/src/base/platform/mutex.h:210: 错误:expected unqualified-id before ‘const’ ../deps/v8/src/base/platform/mutex.h:210: 错误:expected ‘)’ before ‘const’ ../deps/v8/src/base/platform/mutex.h:210: 错误:‘void operator=(const LockGuard&)’必须是一个非静态的成员函数 ../deps/v8/src/base/platform/mutex.h:211: 错误:expected declaration before ‘}’ token make[1]: *** [/usr/src/node-v6.2.0/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] 错误 1 make[1]: Leaving directory `/usr/src/node-v6.2.0/out' make: *** [node] 错误 2
error : missing ')' before ';'
#include<iostream> #include<malloc.h> using namespace std; #define listinitsize 10; #define listincrement 10; #define error 0; #define ok 1; #define overflow -1; typedef int status; 前面这段代码我可能会有影响所以我就把它粘上了 typedef struct{ int *elem; int length; int listsize; } sqlist;//创建结构体 status initlistsq(sqlist &l)//用c++初始话线性表 { l.elem =(int *)malloc(listinitsize*sizeof(int));//问题行 if(!l.elem)return -1;。。。。。 error: expected primary-expression before "int"(此为c free编译错误报告) 老师说是有什么标识打错,但跟书上对了没错。初学者谢谢了
in function 'xx'; error : expected';' before '}'
数据结构实验一 线性表的实现与多项式的加法 在codeblock下编译出错 in function 'Add': error : expected';' before '}' 代码如下: #include<stdlib.h> #include<stdio.h> #define ERROR 0 #define OK 1 #define Overflow 2 #define Underflow 3 #define Notpresent 4 #define Duplicate 5 typedef int Elemtype; typedef struct { int n; int maxLength; Elemtype *element; }SeqList; typedef int Status; typedef struct PNode { int coef; int exp; struct PNode* link; }PNode; typedef struct { struct PNode *head; }polynominal; Status Init(SeqList *L,int mSize) { L->maxLength=mSize; L->n=0; L->element=malloc(sizeof(Elemtype)*mSize); if(!L->element) return ERROR; return OK; } Status Find(SeqList L,int i,Elemtype *x) { if(i<0||i>L.n-1) return ERROR; *x=L.element[i]; return OK; } Status Insert(SeqList *L,int i,Elemtype x) { int j; if(i<-1||i>L->n-1) return ERROR; if(L->n==L->maxLength) return ERROR; for(j=L->n-1;j>i;j--) L->element[j+1]=L->element[j]; L->element[i+1]=x; L->n=L->n+1; return OK; } Status Delete(SeqList *L,int i) { int j; if(i<0||i>L->n-1) return ERROR; if(!L->n) return ERROR; for(j=i+1;j<L->n;j++) L->element[j-1]=L->element[j]; L->n --; return OK; } void Output(SeqList L) { int i; //if(!L.n) //return ERROR; for(i=0;i<L.n;i++) printf("%d ",L.element[i]); //return OK; } void Destroy(SeqList *L) { (*L).n=0; (*L).maxLength=0; free((*L).element); } void Create(polynominal *p) { PNode *pn,*pre,*q; p->head=malloc(sizeof(PNode)); p->head->exp=-1; p->head->link=NULL; for(;;) { pn=malloc(sizeof(PNode)); printf("coef:\n"); scanf("%d",&pn->coef); printf("exp:\n"); scanf("%d",&pn->exp); if(pn->exp<0) break; pre=p->head; q=p->head->link; while(q&&q->exp>pn->exp) { pre=q; q=q->link; } pn->link=q; pre->link=pn; } } void Add(polynominal *px,polynominal *qx) { PNode *q,*q1=qx->head,*p,*temp; p=px->head->link; q=q1->link; while(p&&q) { while(p->exp<q->exp) { q1=q; q=q->link; } if(p->exp==q->exp) { q->coef=q->coef+p->coef; if(q->coef==0) { q1->link=q->link; free(q); q=q1->link; p=p->link; } else { q1=q; q=q->link; p=p->link; } } else { temp=malloc(sizeof(PNode)); temp->coef=p->coef; temp->exp=p->exp; temp->link=q1->link; q1->link=temp; p=p->link; } } 1 } void main() { int i,j,k,m,num,x,y; SeqList list; printf("请输入元素的最大空间:"); scanf("%d",&m); Init(&list,m); printf("请输入元素的个数:"); scanf("%d",&num); list.n=num; printf("请输入各个元素:"); printf("\n"); for(i=0;i<num;i++) scanf("%d",&list.element[i]); Output(list); printf("请输入要插入元素的位置:"); scanf("%d",&i); printf("请输入要插入的元素:"); scanf("%d",&k); Insert(&list,i,k); Output(list); printf("请输入要查找的位置:"); scanf("%d",&j); Find(list,j,&x); printf("%d",x); printf("请输入要删除的元素下标:"); scanf("%d",&y); Delete(&list,y); Output(list); Destroy(&list); polynominal px; Create(&px); polynominal qx; Create (&qx); Add(&px,&qx); }
java内存溢出问题,不确定哪里出的问题
项目运行的时候出现了内存溢出情况,复现方式无法确定,大概出现了五六次,每次复现的方式都不一样,下面是我用MAT工具分析的dump文件 ![图片说明](https://img-ask.csdn.net/upload/202001/20/1579508231_612899.png) ![图片说明](https://img-ask.csdn.net/upload/202001/20/1579508244_502327.png) 除了hibernate里的那两个对象,其他的1000多万个对象里全是integer类型的对象 这是当时出现的时候产生的异常 ``` 2020-01-17 13:32:55 ERROR [DruidDataSource.java:2469] - create connection SQLException, url: jdbc:mysql://localhost:55060/mcs?useUnicode=true&characterEncoding=utf-8, errorCode 0, state 08S01 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:425) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3517) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3417) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3860) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:864) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1707) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1217) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2189) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2220) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2015) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:768) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:425) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:385) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:323) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1513) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1578) at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2466) Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2969) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3427) ... 19 more 2020-01-17 13:33:03 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_preset_rlat failed: java.lang.OutOfMemoryError: GC overhead limit exceeded at net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.getBytes(MemoryEfficientByteArrayOutputStream.java:65) at net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.serialize(MemoryEfficientByteArrayOutputStream.java:99) at net.sf.ehcache.store.disk.DiskStorageFactory.serializeElement(DiskStorageFactory.java:405) at net.sf.ehcache.store.disk.DiskStorageFactory.write(DiskStorageFactory.java:384) at net.sf.ehcache.store.disk.DiskStorageFactory$DiskWriteTask.call(DiskStorageFactory.java:485) at net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1088) at net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1072) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 2020-01-17 13:32:59 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:32:59 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:32:55 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:16 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:27 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:33:27 ERROR [SqlExceptionHelper.java:144] - wait millis 7401, active 16, maxActive 40, creating 1 2020-01-17 13:33:27 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-17 13:33:33 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:33 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:49 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:49 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:49 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:49 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:49 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:53 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:53 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:53 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:02 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:34:02 ERROR [SqlExceptionHelper.java:144] - wait millis 5503, active 18, maxActive 40, creating 1 2020-01-17 13:34:02 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-17 13:34:04 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:08 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:12 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:12 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:14 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:14 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:14 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:17 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:34:17 ERROR [SqlExceptionHelper.java:144] - wait millis 5485, active 19, maxActive 40, creating 1 2020-01-17 13:34:17 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [null]; error code [0]; Could not open connection; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-17 13:34:17 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:27 INFO [DeviceCache.java:249] - 设备状态及报警维护过程中出现异常 2020-01-17 13:34:35 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:35 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:42 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:42 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:44 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:44 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:52 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:34:52 ERROR [SqlExceptionHelper.java:144] - wait millis 7301, active 22, maxActive 40, creating 1 2020-01-17 13:34:52 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-17 13:34:53 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:35:05 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_roll_preset failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-17 13:35:18 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:35:18 ERROR [SqlExceptionHelper.java:144] - Error 2020-01-17 13:35:50 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:35:50 ERROR [SqlExceptionHelper.java:144] - Error 2020-01-17 13:36:13 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-17 13:36:13 ERROR [SqlExceptionHelper.java:144] - Lock wait timeout exceeded; try restarting transaction 2020-01-17 13:36:13 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-17 13:36:24 ERROR [SqlExceptionHelper.java:144] - Lock wait timeout exceeded; try restarting transaction 2020-01-17 13:36:13 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-17 13:37:01 ERROR [SqlExceptionHelper.java:144] - Lock wait timeout exceeded; try restarting transaction 2020-01-17 13:37:43 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:36:37 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-17 13:36:33 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-17 13:36:22 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 ``` 现在就是无法确定到底哪里导致的内存溢出? 这个是上次出现的异常和代码 ``` 2020-01-13 13:21:44 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-13 13:21:44 ERROR [SqlExceptionHelper.java:144] - Lock wait timeout exceeded; try restarting transaction 2020-01-13 13:23:55 INFO [MQTTProtocolHandler.java:283] - 接收到设备接入协议:{"topic":"info/deviceBaseInfo/BHIP118-S/00:00:01:A6:00:A2","reportTime":"256573751","decodeCapacity":{"totalLevel":2,"totalBlock":36,"totalPixel":16588800},"outputList":[{"status":"start","ratio":"UHD","pixel":"3840*2160","type":"UDP","url":"udp://231.0.100.80:7001"},{"status":"start","ratio":"HD","pixel":"960*540","type":"UDP","url":"udp://231.0.101.80:7001"},{"status":"start","ratio":"SD","pixel":"352*288","type":"UDP","url":"udp://231.0.102.80:7001"},{"status":"stop","ratio":"UHD","pixel":"3840*2160","type":"RTMP","url":"rtmp://192.168.15.80:1935/live/100"},{"status":"stop","ratio":"HD","pixel":"960*540","type":"RTMP","url":"rtmp://192.168.15.124:1935/live/101"},{"status":"stop","ratio":"SD","pixel":"352*288","type":"RTMP","url":"rtmp://192.168.15.80:1935/live/102"}],"baseInfo":{"deviceType":"BHIP118-S","code":"00:00:01:A6:00:A2","version":"v1.0.0.11","ip":"192.168.16.80"},"online":true} 2020-01-13 13:23:59 INFO [DeviceCache.java:127] - 接收到新增/更新设备信息:00:00:01:A6:00:A2 :BaseInfo [type=0,name=BHIP118-S,ip=192.168.16.80,port=0,code=00:00:01:A6:00:A2,groupCode=null,groupIndex=0,online=true,multiCastTime=0,ver=v1.0.0.11,channel=0,reserve=0,lockStatus=null,workMode=null,videoPixerls=null,kvmMode=null,serialNumber=null,sdipPortInfo is null,hdIpPortInfo is null,audioIpPortInfo is null,outputList[SourceOutput [ratio=UHD, url=udp://231.0.100.80:7001, pixel=3840*2160, channel=0, SourceOutput [ratio=HD, url=udp://231.0.101.80:7001, pixel=960*540, channel=0, SourceOutput [ratio=SD, url=udp://231.0.102.80:7001, pixel=352*288, channel=0, SourceOutput [ratio=UHD, url=rtmp://192.168.15.80:1935/live/100, pixel=3840*2160, channel=0, SourceOutput [ratio=HD, url=rtmp://192.168.15.124:1935/live/101, pixel=960*540, channel=0, SourceOutput [ratio=SD, url=rtmp://192.168.15.80:1935/live/102, pixel=352*288, channel=0],callStatus=null] 2020-01-13 13:24:06 INFO [MultiCastDeviceInfoHandler.java:229] - 更新视频合成器设备信息: Device [id=ff8080816f694555016f6a4bf61e158c, code=00:00:01:A6:00:A2, name=192.168.16.80, ip=192.168.16.80, port=0, status=0, type=BHIP118, deviceType=BHIP118-S, stamp=2020-01-03 15:26:00, abilityInfo=null, netCardInfo=null] 2020-01-13 13:24:53 INFO [MultiCastDeviceInfoHandler.java:364] - 更新解码器信息:Decoder [IP=192.168.16.80, Port=0, Channel=0, totalBlocks=36, totalLevel=2, uRefWidth=1920, uRefHeight=1080, audioPort=0, totalPixel=16588800, deviceTypeName=BHIP118-S, pixelsWidth=null, pixelsHeight=null] 2020-01-13 13:25:17 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:17 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:17 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:19 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:28 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:42 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-13 13:25:42 ERROR [SqlExceptionHelper.java:144] - wait millis 14463, active 11, maxActive 40, creating 1 2020-01-13 13:25:46 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_playback_task failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:25:48 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-13 13:25:50 ERROR [SqlExceptionHelper.java:144] - wait millis 18056, active 11, maxActive 40, creating 1 2020-01-13 13:25:50 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_source_volume failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:25:51 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:51 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:51 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [null]; error code [0]; Could not open connection; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-13 13:25:51 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-13 13:25:58 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_kvm failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:25:56 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:56 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:03 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_video_terminal failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:05 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_pic_layer failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:05 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_template failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:05 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_multicast_address failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:08 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_mass_source failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:08 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_pic_encoder_block failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:08 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_ipc_preset_group failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:08 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:13 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_video_terminal failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:17 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_record_layer_block failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:24 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_video_meeting failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:28 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_audio_preset_rlat failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:28 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_preset failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:28 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_layer_block failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:28 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:32 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-13 13:26:32 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:32 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:32 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_encoder failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:52 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:27:07 ERROR [SqlExceptionHelper.java:144] - wait millis 20150, active 12, maxActive 40, creating 1 2020-01-13 13:26:50 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:46 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:46 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:41 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:41 ERROR [SqlExceptionHelper.java:144] - wait millis 23244, active 12, maxActive 40, creating 1 2020-01-13 13:26:41 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:41 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:30:29 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:30:25 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:30:07 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:30:07 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:30:07 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 ``` 这个是组播上报的设备信息,因为组播是一秒钟上报了好几次,是不是这里一直占用着连接 ``` public void run() { try { ms = new MulticastSocket(multiCastPort);//建立组播套接字 ms.setReceiveBufferSize(65535); // ms.setNetworkInterface(NetworkInterface.getByInetAddress(localAddress)); ms.joinGroup(InetAddress.getByName(multiCastIP));//加入组播组 LogHome.getLog().info("正常启动监听" + localAddress.getHostAddress()); byte[] buffer = null; DatagramPacket dp = null; while (true) { try { if (IsStop) { break; } buffer = new byte[1400]; dp = new DatagramPacket(buffer, buffer.length); LogHome.getLog().debug("等待接受组播信息:"); ms.receive(dp); MultiCastInfoParser info = new MultiCastInfoParser(dp.getData()); DeviceCache.baseInfoOf1004Handler(info.parse()); } catch (Exception e) { if (IsStop) {// 如果换网卡可能会出问题 break; } else { if (ms.isClosed()) { ms = new MulticastSocket(multiCastPort); ms.setNetworkInterface(NetworkInterface.getByInetAddress(localAddress)); ms.joinGroup(InetAddress.getByName(multiCastIP)); } } LogHome.getLog().error("接受并设置组播信息失败",e); }finally{ Thread.sleep(1); } } } catch (Exception e) { e.printStackTrace(); try { if (listenerList.containsKey(localAddress.getHostAddress())) { listenerList.remove(localAddress.getHostAddress()); } } catch (Exception ex) { LogHome.getLog().error(ex); } } ```
DPDK使用脚本执行问题
我用执行setup.sh时,报错如下 In file included from /root/dpdk/lib/librte_vhost/virtio-net.c:35: /usr/include/linux/virtio_net.h:171: error: expected specifier-qualifier-list before ‘u16’ make[5]: *** [virtio-net.o] Error 1 make[4]: *** [librte_vhost] Error 2 make[3]: *** [lib] Error 2 make[2]: *** [all] Error 2 make[1]: *** [i686-native-linuxapp-gcc_install] Error 2 make: *** [install] Error 2 这是由什么原因造成的,怎么解决?谢谢!
vs2010错误机器人足球
最近在学习机器人足球 用的是vs2010运行代码 老是出现错误 3> ------ Building libbhuman (Release) ------ 3> bhuman.cpp 1> Enum.cpp 1> Global.cpp 1> Geometry.cpp 1> Pose2D.cpp 1> OutStreams.cpp 3> ..\..\Src\libbhuman\bhuman.cpp(14) :28: warning: alcore\altypes.h: No such file or directory 3> ..\..\Src\libbhuman\bhuman.cpp(15) :28: warning: alcore\alerror.h: No such file or directory 3> ..\..\Src\libbhuman\bhuman.cpp(16) :31: warning: alcommon\albroker.h: No such file or directory 3> ..\..\Src\libbhuman\bhuman.cpp(17) :30: warning: alcommon\alproxy.h: No such file or directory 3> ..\..\Src\libbhuman\bhuman.cpp(18) :32: warning: alproxies\dcmproxy.h: No such file or directory 3> ..\..\Src\libbhuman\bhuman.cpp(19) :37: warning: alproxies\almemoryproxy.h: No such file or directory 3>..\..\Src\libbhuman\bhuman.cpp(29): error : 'AL' has not been declared 3>..\..\Src\libbhuman\bhuman.cpp(29): error : expected constructor, destructor, or type conversion before '*' token 3>..\..\Src\libbhuman\bhuman.cpp(30): error : 'AL' has not been declared 3>..\..\Src\libbhuman\bhuman.cpp(30): error : expected constructor, destructor, or type conversion before '*' token 3>..\..\Src\libbhuman\bhuman.cpp(31): error : 'AL' has not been declared 3>..\..\Src\libbhuman\bhuman.cpp(31): error : expected constructor, destructor, or type conversion before '*' token 3>..\..\Src\libbhuman\bhuman.cpp(32): error : 'AL' has not been declared 3>..\..\Src\libbhuman\bhuman.cpp(32): error : expected constructor, destructor, or type conversion before '*' token 3>..\..\Src\libbhuman\bhuman.cpp(33): error : 'AL' has not been declared 3>..\..\Src\libbhuman\bhuman.cpp(33): error : expected constructor, destructor, or type conversion before '*' token 3>..\..\Src\libbhuman\bhuman.cpp(34): error : 'AL' has not been declared 3>..\..\Src\libbhuman\bhuman.cpp(34): error : expected constructor, destructor, or type conversion before '*' token 3> ..\..\Src\libbhuman\bhuman.cpp: In function 'void sitDown(float, float*)': 3>..\..\Src\libbhuman\bhuman.cpp(424): error : 'positionRequest' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(425): error : 'hardnessRequest' was not declared in this scope 3> ..\..\Src\libbhuman\bhuman.cpp: In function 'void standUp(float, float*, float*)': 3>..\..\Src\libbhuman\bhuman.cpp(455): error : 'positionRequest' was not declared in this scope 3> ..\..\Src\libbhuman\bhuman.cpp: In function 'void onPreProcess()': 3>..\..\Src\libbhuman\bhuman.cpp(475): error : 'proxy' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(475): error : 'positionRequest' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(475): error : 'hardnessRequest' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(486): error : 'stderr' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(486): error : 'fprintf' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(563): error : 'usRequest' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(575): error : 'ledRequest' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(575): error : 'string' is not a member of 'std' 3>..\..\Src\libbhuman\bhuman.cpp(582): error : expected type-specifier before 'AL' 3>..\..\Src\libbhuman\bhuman.cpp(582): error : expected `)' before '::' token 3>..\..\Src\libbhuman\bhuman.cpp(582): error : expected `{' before '::' token 3>..\..\Src\libbhuman\bhuman.cpp(582): error : '::ALError' has not been declared 3>..\..\Src\libbhuman\bhuman.cpp(582): error : 'e' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(582): error : expected `;' before ')' token 3> ..\..\Src\libbhuman\bhuman.cpp: In function 'void onPostProcess()': 3>..\..\Src\libbhuman\bhuman.cpp(591): error : 'memory' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(591): error : 'proxy' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(601): error : 'assert' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(616): error : 'system' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(618): error : 'system' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(622): error : expected type-specifier before 'AL' 3>..\..\Src\libbhuman\bhuman.cpp(622): error : expected `)' before '::' token 3>..\..\Src\libbhuman\bhuman.cpp(622): error : expected `{' before '::' token 3>..\..\Src\libbhuman\bhuman.cpp(622): error : '::ALError' has not been declared 3>..\..\Src\libbhuman\bhuman.cpp(622): error : 'e' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(622): error : expected `;' before ')' token 3>..\..\Src\libbhuman\bhuman.cpp(641): error : 'stderr' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(641): error : 'fprintf' was not declared in this scope 3> ..\..\Src\libbhuman\bhuman.cpp: In function 'void close()': 3>..\..\Src\libbhuman\bhuman.cpp(650): error : 'stderr' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(650): error : 'fprintf' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(648): error : too many arguments to function 'void close()' 3>..\..\Src\libbhuman\bhuman.cpp(662): error : at this point in file 3>..\..\Src\libbhuman\bhuman.cpp(674): error : 'proxy' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(676): error : type '<type error>' argument given to 'delete', expected pointer 3>..\..\Src\libbhuman\bhuman.cpp(679): error : 'positionRequest' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(681): error : type '<type error>' argument given to 'delete', expected pointer 3>..\..\Src\libbhuman\bhuman.cpp(684): error : 'hardnessRequest' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(686): error : type '<type error>' argument given to 'delete', expected pointer 3>..\..\Src\libbhuman\bhuman.cpp(689): error : 'usRequest' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(691): error : type '<type error>' argument given to 'delete', expected pointer 3>..\..\Src\libbhuman\bhuman.cpp(694): error : 'ledRequest' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(696): error : type '<type error>' argument given to 'delete', expected pointer 3>..\..\Src\libbhuman\bhuman.cpp(699): error : 'memory' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(701): error : type '<type error>' argument given to 'delete', expected pointer 3> ..\..\Src\libbhuman\bhuman.cpp: At global scope: 3>..\..\Src\libbhuman\bhuman.cpp(708): error : 'AL' has not been declared 3>..\..\Src\libbhuman\bhuman.cpp(708): error : 'AL' has not been declared 3>..\..\Src\libbhuman\bhuman.cpp(708): error : 'pBroker' was not declared in this scope 3>..\..\Src\libbhuman\bhuman.cpp(709): error : expected ',' or ';' before '{' token 3> make: *** [../../Build/libbhuman/Linux/Release/bhuman.o] Error 1 3>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(43,5): error MSB3073: 命令“bash -c "../../Util/zbuildgen/Win32/bin/zbuildgen.exe ../Linux/libbhuman.make.zbuild && make -f ../Linux/libbhuman.make clean CONFIG=Release SHELLOPTS=igncr && make -j 2 -f ../Linux/libbhuman.make CONFIG=Release SHELLOPTS=igncr"”已退出,代码为 2。 3> 3>生成失败。
Qt include<Python.h> 报错
Qt里面只是加了一个头文件 #include <Python.h> 程序就报错了, D:\Python34-x86\include\object.h:435: error: expected unqualified-id before ';' token PyType_Slot *slots; /* terminated by slot==0. */ ^ 点击错误发现出错的位置是我Python的安装目录下include/object.h ![图片说明](https://img-ask.csdn.net/upload/201607/29/1469781997_28091.png) 这个问题是要怎么处理啊,各位给点建议
linux下编译C代码头文件问题
linux下编译C程序出现如下错误: /opt/mingw32/i686-w64-mingw32/include/ctype.h:153: error: expected initializer before 'iswspace' /opt/mingw32/i686-w64-mingw32/include/ctype.h:154: error: expected initializer before '_iswspace_l' /opt/mingw32/i686-w64-mingw32/include/ctype.h:155: error: expected initializer before 'iswpunct' /opt/mingw32/i686-w64-mingw32/include/ctype.h:156: error: expected initializer before '_iswpunct_l' /opt/mingw32/i686-w64-mingw32/include/ctype.h:157: error: expected initializer before 'iswalnum'/opt/mingw32/i686-w64-mingw32/include/ctype.h:158: error: expected initializer before '_iswalnum_l' /opt/mingw32/i686-w64-mingw32/include/ctype.h:159: error: expected initializer before 'iswprint' /opt/mingw32/i686-w64-mingw32/include/ctype.h:160: error: expected initializer before '_iswprint_l' /opt/mingw32/i686-w64-mingw32/include/ctype.h:161: error: expected initializer before 'iswgraph' /opt/mingw32/i686-w64-mingw32/include/ctype.h:162: error: expected initializer before '_iswgraph_l' /opt/mingw32/i686-w64-mingw32/include/ctype.h:163: error: expected initializer before 'iswcntrl' 这种情况是什么问题?
求解关于C++中的条件编译#ifdef
IDE是codeblocks,源文件 第一个是头文件time.h,定义类 ``` // time.h //#ifdef _TIME_H #define _TIME_H class Time { private: int hour; int minute; int second; public: Time(); void set_time(int h, int m, int s); void show_time(); }; //#endif ``` 第二个是方法实现文件time_func.cpp ``` // time_func.cpp #include <iostream> #include "time.h" Time::Time() { }; void Time::set_time(int h, int m, int s) { hour = h; minute = m; second = s; return; } void Time::show_time() { std::cout << "show time: " << hour << ":" << minute << ":" << second << std::endl; return; } ``` 第三个是main函数,main.cpp ``` // the main function #include <iostream> #include "time.h" using namespace std; int main() { Time t; t.set_time(19, 20, 59); t.show_time(); return 0; } ``` 我把条件编译#ifdef和#endif注释掉就能编译通过,要不然就会出现编译失败: ||=== Build: Debug in test_class (compiler: GNU GCC Compiler) ===| D:\C++\课后练习\test_class\time.h|2|error: unterminated #ifdef| D:\C++\课后练习\test_class\main.cpp||In function 'int main()':| D:\C++\课后练习\test_class\main.cpp|7|error: 'Time' was not declared in this scope| D:\C++\课后练习\test_class\main.cpp|7|error: expected ';' before 't'| D:\C++\课后练习\test_class\main.cpp|8|error: 't' was not declared in this scope| ||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===| 真心求解为何?
unix网络编程卷2门代码编译中报错:error: ‘door_arg_t’ undeclared (first use in this function),环境是centos6
gcc client1.c -lunpipc -lrt -ldoor client1.c: In function ‘main’: client1.c:8: error: ‘door_arg_t’ undeclared (first use in this function) client1.c:8: error: (Each undeclared identifier is reported only once client1.c:8: error: for each function it appears in.) client1.c:8: error: expected ‘;’ before ‘arg’ client1.c:17: error: ‘arg’ undeclared (first use in this function)
reactnative启动报错 app:compileDebugJavaWithJavac
scanning folders for symlinks in E:\SimpleApp\SimpleApp\node_modules (30ms) Starting JS server... Building and installing the app on the device (cd android && gradlew.bat installDebug)... Starting a new Gradle Daemon for this build (subsequent builds will be faster). Incremental java compilation is an incubating feature. :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE :app:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE :app:prepareComFacebookFrescoDrawee130Library UP-TO-DATE :app:prepareComFacebookFrescoFbcore130Library UP-TO-DATE :app:prepareComFacebookFrescoFresco130Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipeline130Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipelineBase130Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipelineOkhttp3130Library UP-TO-DATE :app:prepareComFacebookReactReactNative0493Library UP-TO-DATE :app:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE :app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE :app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:mergeDebugShaders UP-TO-DATE :app:compileDebugShaders UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:bundleDebugJsAndAssets SKIPPED :app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE :app:compileDebugJavaWithJavac :app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). :app:compileDebugJavaWithJavac FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'. > Unexpected lock protocol found in lock file. Expected 3, found 0.
关于error: expected ';', ',' or ')' before numeric constant如何解决?
![图片说明](https://img-ask.csdn.net/upload/201911/13/1573631352_778529.png) 此码为数据结构中初始化顺序性线性表
请教,编译总是提示expected primary-expression before')' token请问该怎么解决
程序及错误如图![图片](https://img-ask.csdn.net/upload/201710/13/1507864258_560212.png)
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
win10系统安装教程(U盘PE+UEFI安装)
一、准备工作 u盘,电脑一台,win10原版镜像(msdn官网) 二、下载wepe工具箱  极力推荐微pe(微pe官方下载) 下载64位的win10 pe,使用工具箱制作启动U盘打开软件,   选择安装到U盘(按照操作无需更改) 三、重启进入pe系统   1、关机后,将U盘插入电脑 2、按下电源后,按住F12进入启动项选择(技嘉主板是F12)     选择需要启
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
Nginx 软件层面加强Nginx性能优化的面试问答和解决方案
Nginx 软件层面加强Nginx性能优化的面试问答和解决方案 去年我去爱卡汽车面试PHP,一轮和二轮面的都不错,在三轮面到Nginx的时候很多问题当时不知道怎么回答,确实没有深入学习过,花了一段时间的学习,终于能解答Nginx高性能优化的问题了,10月24号为了获得程序员勋章,发布了半个优化笔记,浏览到了1000+,受到这个鼓舞,我抽时间在仔细整理下关于Nginx性能优化的问题,我们从软件说起。...
【管理系统课程设计】美少女手把手教你后台管理
【文章后台管理系统】URL设计与建模分析+项目源码+运行界面 栏目管理、文章列表、用户管理、角色管理、权限管理模块(文章最后附有源码) 1. 这是一个什么系统? 1.1 学习后台管理系统的原因 随着时代的变迁,现如今各大云服务平台横空出世,市面上有许多如学生信息系统、图书阅读系统、停车场管理系统等的管理系统,而本人家里就有人在用烟草销售系统,直接在网上完成挑选、购买与提交收货点,方便又快捷。 试想,若没有烟草销售系统,本人家人想要购买烟草,还要独自前往药...
11月19日科技资讯|华为明日发布鸿蒙整体战略;京东宣告全面向技术转型;Kotlin 1.3.60 发布
「极客头条」—— 技术人员的新闻圈! CSDN 的读者朋友们早上好哇,「极客头条」来啦,快来看今天都有哪些值得我们技术人关注的重要新闻吧。扫描上方二维码进入 CSDN App 可以收听御姐萌妹 Style 的人工版音频哟。 一分钟速览新闻点! 6G 专家组成员:速率是 5G 的 10 至 100 倍,预计 2030 年商用 雷军:很多人多次劝我放弃WPS,能坚持下来并不是纯粹的商业决定 ...
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n
化繁为简 - 腾讯计费高一致TDXA的实践之路
导语:腾讯计费是孵化于支撑腾讯内部业务千亿级营收的互联网计费平台,在如此庞大的业务体量下,腾讯计费要支撑业务的快速增长,同时还要保证每笔交易不错账。采用最终一致性或离线补...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
Java学习笔记(七十二)—— Cookie
概述 会话技术: 会话:一次会话中包含多次请求和响应 一次会话:浏览器第一次给服务器发送资源请求,会话建立,直到有一方断开为止 功能:在一次会话的范围内的多次请求间,共享数据 方式: 客户端会话技术:Cookie,把数据存储到客户端 服务器端会话技术:Session,把数据存储到服务器端 Cookie 概念:客户端会话技术,将数据存储到客户端 快速入门: 使用步骤: 创建C
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆  每天早上8:30推送 作者| Mr.K   编辑| Emma 来源| 技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯
程序员该看的几部电影
##1、骇客帝国(1999) 概念:在线/离线,递归,循环,矩阵等 剧情简介: 不久的将来,网络黑客尼奥对这个看似正常的现实世界产生了怀疑。 他结识了黑客崔妮蒂,并见到了黑客组织的首领墨菲斯。 墨菲斯告诉他,现实世界其实是由一个名叫“母体”的计算机人工智能系统控制,人们就像他们饲养的动物,没有自由和思想,而尼奥就是能够拯救人类的救世主。 可是,救赎之路从来都不会一帆风顺,到底哪里才是真实的世界?
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
@程序员,如何花式构建线程?
作者 |曾建责编 | 郭芮出品 | CSDN(ID:CSDNnews)在项目和业务的开发中,我们难免要经常使用线程来进行业务处理,使用线程可以保证我们的业务在相互处理之间可以保证原子性...
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布了 2019年国民经济报告 ,报告中指出:年末中国大陆总人口(包括31个
强烈推荐10本程序员在家读的书
很遗憾,这个鼠年春节注定是刻骨铭心的,新型冠状病毒让每个人的神经都是紧绷的。那些处在武汉的白衣天使们,尤其值得我们的尊敬。而我们这些窝在家里的程序员,能不外出就不外出,就是对社会做出的最大的贡献。 有些读者私下问我,窝了几天,有点颓丧,能否推荐几本书在家里看看。我花了一天的时间,挑选了 10 本我最喜欢的书,你可以挑选感兴趣的来读一读。读书不仅可以平复恐惧的压力,还可以对未来充满希望,毕竟苦难终
Linux自学篇——linux命令英文全称及解释
man: Manual 意思是手册,可以用这个命令查询其他命令的用法。 pwd:Print working directory 显示当前目录 su:Swith user 切换用户,切换到root用户 cd:Change directory 切换目录 ls:List files 列出目录下的文件 ps:Process Status 进程状态 mk
Python实战:抓肺炎疫情实时数据,画2019-nCoV疫情地图
文章目录1. 前言2. 数据下载3. 数据处理4. 数据可视化 1. 前言 今天,群里白垩老师问如何用python画武汉肺炎疫情地图。白垩老师是研究海洋生态与地球生物的学者,国家重点实验室成员,于不惑之年学习python,实为我等学习楷模。先前我并没有关注武汉肺炎的具体数据,也没有画过类似的数据分布图。于是就拿了两个小时,专门研究了一下,遂成此文。 2月6日追记:本文发布后,腾讯的数据源多次变更u
智力题(程序员面试经典)
NO.1  有20瓶药丸,其中19瓶装有1克/粒的药丸,余下一瓶装有1.1克/粒的药丸。给你一台称重精准的天平,怎么找出比较重的那瓶药丸?天平只能用一次。 解法 有时候,严格的限制条件有可能反倒是解题的线索。在这个问题中,限制条件是天平只能用一次。 因为天平只能用一次,我们也得以知道一个有趣的事实:一次必须同时称很多药丸,其实更准确地说,是必须从19瓶拿出药丸进行称重。否则,如果跳过两瓶或更多瓶药
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
2020年的1月,我辞掉了我的第一份工作
其实,这篇文章,我应该早点写的,毕竟现在已经2月份了。不过一些其它原因,或者是我的惰性、还有一些迷茫的念头,让自己迟迟没有试着写一点东西,记录下,或者说是总结下自己前3年的工作上的经历、学习的过程。 我自己知道的,在写自己的博客方面,我的文笔很一般,非技术类的文章不想去写;另外我又是一个还比较热衷于技术的人,而平常复杂一点的东西,如果想写文章写的清楚点,是需要足够...
别低估自己的直觉,也别高估自己的智商
所有群全部吵翻天,朋友圈全部沦陷,公众号疯狂转发。这两周没怎么发原创,只发新闻,可能有人注意到了。我不是懒,是文章写了却没发,因为大家的关注力始终在这次的疫情上面,发了也没人看。当然,我...
Java坑人面试题系列: 包装类(中级难度)
Java Magazine上面有一个专门坑人的面试题系列: https://blogs.oracle.com/javamagazine/quiz-2。 这些问题的设计宗旨,主要是测试面试者对Java语言的了解程度,而不是为了用弯弯绕绕的手段把面试者搞蒙。 如果你看过往期的问题,就会发现每一个都不简单。 这些试题模拟了认证考试中的一些难题。 而 “中级(intermediate)” 和 “高级(ad
Spring Boot 2.x基础教程:使用JdbcTemplate访问MySQL数据库
在第2章节中,我们介绍了如何通过Spring Boot来实现HTTP接口,以及围绕HTTP接口相关的单元测试、文档生成等实用技能。但是,这些内容还不足以帮助我们构建一个动态应用的服务端程序。不论我们是要做App、小程序、还是传统的Web站点,对于用户的信息、相关业务的内容,通常都需要对其进行存储,而不是像第2章节中那样,把用户信息存储在内存中(重启就丢了!)。 对于信息的存储,现在已经有非常非常多...
基于Python的人脸自动戴口罩系统
目录 1、项目背景 2、页面设计 3、器官识别 4、退出系统 1、项目背景 2019年新型冠状病毒感染的肺炎疫情发生以来,牵动人心,举国哀痛,口罩、酒精、消毒液奇货可居。 抢不到口罩,怎么办?作为技术人今天分享如何使用Python实现自动戴口罩系统,来安慰自己,系统效果如下所示: 本系统的实现原理是借助 Dlib模块的Landmark人脸68个关键点检测库轻松识别出人脸五官
相关热词 c# 为空 判断 委托 c#记事本颜色 c# 系统默认声音 js中调用c#方法参数 c#引入dll文件报错 c#根据名称实例化 c#从邮件服务器获取邮件 c# 保存文件夹 c#代码打包引用 c# 压缩效率
立即提问