c++ error cannot be used as a function, some stray error -


I have written a calendar code, but I have some incorrect error here. My code is:

  #include & lt; Iostream & gt; # Include & lt; Iomanip & gt; using namespace std; Int main () {int month, year, y, m; Int day [13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; Int FirstDayofMonth; Cout & lt; & Lt; "Please fill the year!" & Lt; & Lt; Endl; CIN & gt; & Gt; year; While (year <1600) {cout & lt; & Lt; "Please do not enter less than 1600 years!" & Lt; & Lt; Endl; CIN & gt; & Gt; year; } Cout & lt; & Lt; "Please enter the month! (1 ~ 12)" & lt; & Lt; Endl; CIN & gt; & Gt; Months; Y = year one ???? (14 "months") / 12; M = months + 12 * ((14 months) / 12) - 2; First Dow Mind = (Y + Y / 4-Y / 100 + Y / 400 + 31 * M / 12 + 1)% 7; }   

The result of the second part is to print. And it shows me the error below

  try.cpp: 18: error: stray a ???? \ 342â ???? Try.cpp in the program: 18: error: stray a ???? \ 200 one ??? Try.cpp in the program: 18: error: straying a â ???? 223â ???? Try.cpp in the program: 18: error: stray a ???? \ 342â ???? Try.cpp in the program: 18: error: stray a ???? \ 200 one ??? Try.cpp in the program: 18: error: straying a â ???? 223â ???? Try.cpp in the program: "int int main" () in function: try.cpp: 18: error: expected ')' first '' month '' Try.cpp: 18: error: one year?   

18: y = year one ???? (14 a month) / 12;

I do not know what the mistake means, can someone help me? Thanks!

bytes \ 342 , \ 200 And the \ 223 (represented in octal) in your code, UTF-8 encoding of these bytes is created; This is a character that uses categories in the English text (e.g. June 'August') or relationships (e.g., Sydney 'Los Angeles Flight'). Usually the minis characters accepted by the C ++ compiler are ASCII compatible, which is the character available on a QWERTY keyboard.

It seems that you have copied and pasted this code and there is an incorrect character for subtraction this line:

  Y = year one ???? (14 years old)) / 12;   

Also note the additional brackets that should not be there. Maybe you want to:

  Y = year - (14 - month) / 12;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -