Hello I am practising for uni using bloodshed and I keep getting an error on line 24 saying ' 25 C:\C++\test do while\test do while.cpp expected `;' before string constant
Im new to this and our assignment is to make a calculator that will calculate the circumfence of a circl and a few other things, nut for now I am justtrying out a few basic things I really need to understand everything about it!
#include <cstdlib>
#include <iostream>
#include <math.h>
usingnamespace std;
int main(int argc, char *argv[])
{
int a;
int one = 1;
int two = 2;
int three = 3;
int four = 4;
int five = 5;
cout << "enter a number, press zero to exit\n";
cin >> a;
if (a = one) {
cout "you pressed one";
}
}