I have the Visual Studio C++ 2010 version. The language I'm actually using right now is just C, though, not C++. I'm a beginner in programming and I thought I'd start with C.
That said, I currently keep having errors all of a sudden; I got these errors: ..\ex0504\main.c|8|error C2059: syntax error : ')'|
..\ex0504\main.c|9|error C2065: 'OCTO' : undeclared identifier|
..\ex0504\main.c|9|error C2146: syntax error : missing ')' before identifier 'OCTO'|
..\ex0504\main.c|10|error C2065: 'OCTO' : undeclared identifier|
..\ex0504\main.c|10|error C2146: syntax error : missing ')' before identifier 'OCTO'|
..\ex0504\main.c|11|error C2065: 'OCTO' : undeclared identifier|
..\ex0504\main.c|11|error C2146: syntax error : missing ')' before identifier 'OCTO'|
||=== Build finished: 7 errors, 0 warnings (0 minutes, 0 seconds) ===|
And just in case, here's my source code: #include <stdio.h>
#define VALUE 2 OCTO 8
int main()
{
puts("Values VALUE and OCTO:");
printf("Addition is %d\n",OCTO+VALUE;
printf("Subtraction is %d\n",OCTO-VALUE);
printf("Multiplication is %d\n",OCTO*VALUE);
printf("Division is %d\n",OCTO/VALUE);
return 0;
}
If there's something I'm doing wrong, please let me know. Thanks.