Expected primary expression before
时间: 2023-11-15 21:05:29 浏览: 134
"Expected primary expression before" seems like an incomplete sentence, and I'm not sure what you're trying to ask. Can you please rephrase or clarify your question?
相关问题
expected primary expression before '.'token
This error message typically occurs in programming languages like C++ or Java, and it means that the code contains a syntax error.
The error message "expected primary expression before '.' token" usually indicates that there is a problem with the code syntax, particularly with the use of a dot (.) character. This character is often used to access properties or methods of objects in object-oriented programming.
Possible causes of this error include:
- Missing or incorrect syntax, such as forgetting to declare a variable or function before using it, or using the wrong type of variable or function.
- Incorrect use of the dot (.) operator, such as using it on a non-object or non-class element, or using it with incorrect syntax.
- Incorrect placement of the dot (.) operator, such as using it in a place where it is not allowed or expected.
To fix this error, you can try checking the syntax of the code and ensuring that all variables and functions are properly declared and used. You can also double-check the use of the dot (.) operator and make sure it is used correctly and in the right place.
expected primary-expression before
“expected primary-expression before” 意思是编译器在编译代码时遇到了一个语法错误,表明在某个地方缺少了一个主要表达式。这可能是因为缺少了一个变量、常量或函数调用,或者在该处使用了一个不正确的符号。
阅读全文