N
N
Nana1232016-03-18 02:36:19
C++ / C#
Nana123, 2016-03-18 02:36:19

Gives an error when compiling C ++, How to solve?

#include <iostream>
#include <math.h>
using namespace std;

int main()
{
double d1, d2, d3, z, a, b, c, V;
const double PI = 3.14159265;
cout« "input d1."«endl;
cin»d1;
cout « "input d2."«endl;
cin»d2;
cout « "input d3."«endl;
cin»d3;
cout « "input z."«endl;
cin» z;
cin» a;
cin» b;
cin» c;
cin» V;
cin» PI;
a=d1*z*PI;
b=d3/d2;
c=a*b;
cout«"V"«V« endl;

return 0;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2016-03-18
@Nana123

I could be wrong, but cin» PI;it's a constant.

R
res2001, 2016-03-18
@res2001

What error is that?
You have some suspicious characters " and ". If they are the same in real code, then this is not correct - >> and << are correct.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question