请帮助这个代码。 [英] Help with this code please.
本文介绍了请帮助这个代码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是c ++的新手。只做了几天而且我非常享受。
我正在写一个我写的练习代码时出现这个错误。 />
语法错误:'string'之前缺少';'
和
语法错误:缺少';'之前标识符'cin'
但是我没有看到我错过结束行的地方
这是我的代码
Hi, I am new to c++. Only been doing it for a few days and I am enjoying it very much.
I am getting this error on one of my practice codes I'm writing.
syntax error : missing ';' before 'string'
and
syntax error : missing ';' before identifier 'cin'
but i dont see a spot where i missed ending the line
here is my code
syntax error : missing ';' before identifier 'cin'
推荐答案
C编译器需要以;结束每个命令。所以检查你是否错过了一个。避免使用关键字和使用类似函数的名称。它只会带来错误和混乱。
你最好显示你写的代码。
The C-compiler needs every command to be ended with a ";". So check if you missed one. Avoid using "keywords" and used names like for functions. It only brings errors and confusion.
you better show the code that you have written.
这篇关于请帮助这个代码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文