i've also had a couple of of other errors i might have fixed that 1 but this 1 will show
include <iostream.h>
int main()
{
int number;
int numbers;
int answer;
int answers;
cout << "would you like to subtract(1) or add(2) two numbers";
cin.get(answer,'\n');
switch(answer);
case 1:
{
cout << "what is the first number? ";
cin >> number;
cout << "what is the second number? ";
cin >> numbers;
answers = number - numbers;
}
case 2:
{
default:
{
cout << "invaild number selection";
}
cout << "this is your answer" << answers;
return(0)
}
Did you read the error message? Try to get in the habit of doing so - rather than succumbing to the "Oh my god, an error message - panic!" that we all go through at some point.
You have a compile option:
"-fdollar-in-identifiers"
set that is not spported by the compiler. Find where it is set (usually one of the check boxes) and turn it off.
As a matter of fact, you have a LOT of non-default options turned on that probably should not be.
In addition, it is never a good idea to compile your code within the Dev installation directory.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i'm sorry wayne, i fixed it. i was being dumb about. I just moved where it was being save and it started working i sat there for 3-4 hours but i know what i did.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think Clifford mentions in the "Please Read" thread about not putting your stuff in the Dev directory.
There is a lot of good stuff there that has been contributed by the users over the years, (and the crap that I put in there) - it is a useful read.
When I point people there, that is not the same as saying "Read this and go away kid, I don't knowe how to help you anyway, so this should keep you busy" - while the latter part may well be true, it really is a good resource.
:)
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I followed the http://aditsu.freeunixhost.com/dev-cpp-faq.html#reseditor but i still seem to get the error
Compiler: Default compiler
Building Makefile: "C:\Users\Owner\projects\Makefile.win"
Executing make...
make.exe -f "C:\Users\Owner\projects\Makefile.win" ../projects/Untitled1.o
make.exe: *** No rule to make target `../projects/Untitled1.o'. Stop.
Execution terminated
i've also had a couple of of other errors i might have fixed that 1 but this 1 will show
include <iostream.h>
int main()
{
int number;
int numbers;
int answer;
int answers;
cout << "would you like to subtract(1) or add(2) two numbers";
cin.get(answer,'\n');
switch(answer);
case 1:
{
cout << "what is the first number? ";
cin >> number;
cout << "what is the second number? ";
cin >> numbers;
answers = number - numbers;
}
case 2:
{
default:
{
cout << "invaild number selection";
}
cout << "this is your answer" << answers;
return(0)
}
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Dev-Cpp\projects\Untitled1.cpp" -o "C:\Dev-Cpp\projects\Untitled1.exe" -ansi -traditional-cpp -w -fno-access-control -fdollar-in-identifiers -fsave-memoized -fexceptions -fshort-double -fverbose-asm -O3 -pg -g3 -nostdlib -mwindows -fmessage-length=0 -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -lgmon -pg -lobjc -g3 -nostdlib -mwindows -fmessage-length=0 -s
Executing g++.exe...
g++.exe "C:\Dev-Cpp\projects\Untitled1.cpp" -o "C:\Dev-Cpp\projects\Untitled1.exe" -ansi -traditional-cpp -w -fno-access-control -fdollar-in-identifiers -fsave-memoized -fexceptions -fshort-double -fverbose-asm -O3 -pg -g3 -nostdlib -mwindows -fmessage-length=0 -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -lgmon -pg -lobjc -g3 -nostdlib -mwindows -fmessage-length=0 -s
cc1plus.exe: error: unrecognized command line option "-fdollar-in-identifiers"
cc1plus.exe: error: unrecognized command line option "-fsave-memoized"
Execution terminated
i dont even get to debug so when i just that site for this i don't know what im looking for sorry to bug you like this
Did you read the error message? Try to get in the habit of doing so - rather than succumbing to the "Oh my god, an error message - panic!" that we all go through at some point.
You have a compile option:
"-fdollar-in-identifiers"
set that is not spported by the compiler. Find where it is set (usually one of the check boxes) and turn it off.
As a matter of fact, you have a LOT of non-default options turned on that probably should not be.
In addition, it is never a good idea to compile your code within the Dev installation directory.
Wayne
i'm sorry wayne, i fixed it. i was being dumb about. I just moved where it was being save and it started working i sat there for 3-4 hours but i know what i did.
I think Clifford mentions in the "Please Read" thread about not putting your stuff in the Dev directory.
There is a lot of good stuff there that has been contributed by the users over the years, (and the crap that I put in there) - it is a useful read.
When I point people there, that is not the same as saying "Read this and go away kid, I don't knowe how to help you anyway, so this should keep you busy" - while the latter part may well be true, it really is a good resource.
:)
Wayne