[error] .cpp expected primary-expression before '.' token May 17, 2014 at 9:37pm casper4215 (5) I received this error when I want to compile.It's from function'extract' anyone know how to fix it? :( .cpp expected primary-expression before '.' token this is my code 123456...
An expression enclosed in parentheses is a primary expression. Its type and value are identical to the type and value of the unparenthesized expression. It's an l-value if the unparenthesized expression is an l-value. Examples of primary expressions include: ...
test3.cpp:6: error: expected primary-expression before ‘int’ Feb 6, 2010 at 9:04pm MWH(8) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include<iostream>#include<cmath>usingnamespacestd;intmain() {doublea,b,c;doublex1,x2; a=2.0; b=5.0; c=3.0; x1=(-b+sqrt(b*b...
sTaskMgr->Add(task4); ^ /work/tmms/src/base/TestTask.cpp: In function ‘int main(int, const char**)’: /work/tmms/src/base/TestTask.cpp:48:17: error: expected primary-expression before ‘->’ token sTaskMgr->OnWork(); ^ make[2]: *** [src/base/CMakeFiles/base_test.dir/Test...
if(a[i]>a[i+1]){t=a[i];a[i]=[i+1];a[i+1]=t;} 中”a[i]=[i+1]“,如果没有理解错误的话,应该是a[i]=a[i+1]吧?
G:\C++初级\string2.cpp In constructor `String::String()':54 G:\C++初级\string2.cpp expected primary-expression before ']' token
An expression enclosed in parentheses is a primary expression whose type and value are identical to those of the unparenthesized expression. It is an l-value if the unparenthesized expression is an l-value. In the context of the primary expression syntax given above,namemeans anything in the syn...
29 C:\Dev-Cpp\pro\ders\main.cpp expected primary-expression before "char" 29 C:\Dev-Cpp\pro\ders\main.cpp expected `;' before "char" 30 C:\Dev-Cpp\pro\ders\main.cpp expected primary-expression before ';' token 30 C:\Dev-Cpp\pro\ders\main.cpp expected primary-expression before ';...
aEverywhere you go ,there are people smiling at you. 到处您去,那里是微笑对您的人们。[translate] a27 D:\My Documents\未命名9.cpp expected primary-expression before "else" 27 D:\My Documents\未命名9.cpp期望的主要表示在“之前”[translate]...
你这阵仗,1)你应该说明一下编译环境,头文件库什么的,方便大家帮你 2)出错只是显示你的代码编译器不能识别那些TOKEN。猜猜应该是库文件设置的问题 3)你如果是用了a simple C++ library for parsing and manipulating VCF files,之类的库,建议你看看它的install和make的说明。