编译程序的问题(期望的primary-expression,unqualified-id) [英] Problems compiling program (expected primary-expression, unqualified-id)
本文介绍了编译程序的问题(期望的primary-expression,unqualified-id)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在研究一个程序而且无法解决这些编译问题。
g ++ main.cpp -o project5.exe
main .cpp:在函数''int deal()''中:
main.cpp:20:错误:在''之前预期的primary-expression。''令牌
main .cpp:21:错误:在''之前预期的unqualified-id。''令牌
内部程序主要是这个(在main()之外)
I have been working on a program and have been unable to resolve these compile issues.
g++ main.cpp -o project5.exe
main.cpp: In function ''int deal()'':
main.cpp:20: error: expected primary-expression before ''.'' token
main.cpp:21: error: expected unqualified-id before ''.'' token
Inside program main is this (outside of main() )
展开 | 选择 | Wrap | 行号
推荐答案
我一直在研究一个程序而且无法解决这些编译问题。
g ++ main.cpp -o project5.exe
main.cpp:在函数''int deal()''中:
main.cpp:20:错误:在''之前预期的primary-expression'''令牌
main.cpp:21:错误:在''之前预期的unqualified-id。''令牌
内部程序main是这个(在main()之外)
I have been working on a program and have been unable to resolve these compile issues.
g++ main.cpp -o project5.exe
main.cpp: In function ''int deal()'':
main.cpp:20: error: expected primary-expression before ''.'' token
main.cpp:21: error: expected unqualified-id before ''.'' token
Inside program main is this (outside of main() )
展开 | 选择 < span class =codeDivider> | Wrap | 行号
在我的程序顶部#include语句我有
类卡;
卡基本上是由shuffle函数创建的向量
At the top of the program after my #include statements I have
class cards;
cards is basically a vector created by the shuffle function
展开 | 选择 | Wrap | 行号
卡是一个类,你调用的front()方法属于向量。
或者你有一个电话卡中的方法前面()?
Raghu
cards is a class and the front() method you are calling belongs to the vector.
Or do u have a method front() in the call cards?
Raghu
这篇关于编译程序的问题(期望的primary-expression,unqualified-id)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文