|
From: Mundt, S. <seb...@ge...> - 2000-11-27 09:14:08
|
Fale por favor ingleses. -----Original Message----- From: Vany [mailto:va...@gl...] Sent: Sunday, November 26, 2000 10:07 PM To: dev...@li... Subject: [Dev-C++] (no subject) Eu faco ou nao parte da lista???? |
|
From: <jos...@ya...> - 2000-12-22 10:56:37
|
--- ARI FIXLER <ari...@ju...> escribió: > i keep on getting this error message > C:\DEV-C_~1\BIN\ld.exe: cannot open crt2.o: No such file or directory If you read the FAQ you will find this: ===================================================================== 8. when I try to compile I get: ld: cannot open crt2. o: No such file or directory. What can i do ? Go to Compiler options, and check if the Lib directory is correctly set to: C:\Dev-C++\Lib\ (for a default installation). If this still doesn't work, try copying the file Lib\crt2.o to your Dev-C++ Bin directory. ===================================================================== Hope this helps. Chemanuel __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ |
|
From: <jos...@ya...> - 2001-01-16 13:31:11
|
if(type=='Q');
should be
if(type=='Q')
Cheers,
Chemanuel
El rincón de Chemanuel - Resources for Windows programming in C++
---------------------------------
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail. |
|
From: James G. <Jam...@Cl...> - 2001-01-16 13:34:50
|
You have if(type = 'Q'); <--- remove the ; as you have an empty control
statement.
Your missing a return before the closing } in main.
Basically if your program doesn't run into any of the if tests then it falls
out of the bottom without returning a value. (add return 0; before the last
})
A suggestion would be to replace the if's with switch statements.
i.e.
switch(type)
{
case 'Q':
...
break;
case 'C':
...
break;
}
Regards,
James.
-----Original Message-----
From: Frazell Thomas [mailto:fr...@fl...]
Sent: Tuesday, January 16, 2001 1:09 PM
To: Dev...@Li...
Subject: [Dev-C++] (no subject)
I'm trying to add another feature to my primitive program :O) I was trying
to add a regular calculator allowing a choice from the quadratic equation
calculator and from a regular arithmetic calculator I keep getting two
errors which I marked in the code below I'm still a beginner so I as if what
I'm trying to do even possible if not can I have a program open either one
(each in its own executable) if so how? Thanks
Error summary
1. Parse error before 'else' line 69
2. Parse error before '}' line 100
The errors are marked with a '< ----------------' in red if you can read
html mail
---------------------------------------------------------------------------S
ORCE CODE (Errors are marked below in color which may require HTML email to
see)------------------------------------------------------------------------
------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <windows.h>
char type;
int a,b,c;
float sroot, divide, answer_1, answer_2;
double determinent;
float calc1,calc2;
int calc3;
char typec;
int main()
{
//Asks user which caculator does he/she want to start
printf("What type of calcultor do you need? Please enter 'Q' for
Quadratric Eqations \nand 'C' for a stadered calculator: ");
scanf("%c" ,&type);
// Determines which calculator user selected and uses the one chosen
if(type=='Q');
{
printf("This program is designed to do quadratic equations
only.\n");
printf("You are free to use this software as stated under the
GNU\n");
printf("Public License (Avalible at GNU.org).\n\n");
printf("Version: Beta 1.4 1/3/2001 6:00AM EST.\n");
printf("Programmer: Frazell Thomas\n");
printf("Programmer: Hoo Hong\n");
printf("Please visit http://www.frazellthomas.com\n\n");
// Input From User
printf("Please enter the number used to represent varible A: ");
scanf("%d", &a);
// if statement to prevent the divide error if the var. a is zero
if (a == 0)
{
printf("\nSorry you entered 0 this will result in an error try
again.");
printf("\nPlease enter the number used to represent varible A:
");
printf("\nEnter 0 again to quit: ");
scanf("%d", &a);
if (a==0)
{
return 0;
}
}
printf("\nPlease enter the number used to represent varible B:
");
scanf("%d", &b);
printf("\nPlease enter the number used to represent varible C:
");
scanf("%d", &c);
determinent = (pow(b,2) - 4*a*c);
if (determinent < 0)
{
printf("\nSorry, The equation you entered returned no
real result.\n");
printf("Please re-run the program entering an equation
that will give you a real result.");
system("Pause");
return 0;
}
sroot = sqrt(determinent);
divide = 2 * a;
answer_1 = (-b - sroot) / divide;
answer_2 = (-b + sroot) / divide;
// Prints the answer
printf("\nThe Answer Is %.4f and %.4f\n ", answer_1, answer_2);
system("Pause");
return 0;
}
else if(type=='C') < -----------------Parse error before
'else'
{
printf("\nPlease input the first integer: ");
scanf("%f" ,&calc1);
printf("\nEnter the sign ('+','-','*','/'): ");
scanf("%c" ,&typec);
printf("\nPlease input the second integer: ");
scanf("%f" ,&calc2);
if(typec=='+')
{
calc3=calc1+calc2;
}
if(typec=='-')
{
calc3=calc1-calc2;
}
if(typec=='*')
{
calc3=calc1*calc2;
}
if(typec=='/')
{
calc3=calc1/calc2;
}
//Returns Answer From Standerd Calculator To User
printf("\n%f %c %f = %f ",calc1,typec,calc2,calc3);
system("PAUSE");
return 0;
}
} < ------------------Parse error before '}'
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This electronic message and any attachment is intended to be
read by the named addressee(s) only.
Any other recipient should be aware that its contents may be
legally privileged and/or confidential and that its use,
disclosure, copying or distribution may be unlawful.
Unless you are a named addressee, please delete this message
Whilst C. & J. Clark International Limited has taken steps
to prevent the transmission of computer viruses with electronic mail,
responsibility for screening incoming messages and the risk of such
transmission and its consequences lies with the recipient.
C. & J. Clark International Limited
Registered in England and Wales
Company No. 141015
Registered Office: 40 High Street, Street, Somerset BA16 0YA
Telephone: +44 (0) 1458 443131
Fax: +44 (0) 1458 447547
|
|
From: Frazell T. <fr...@fl...> - 2001-01-16 13:49:51
|
I don't know about switch statements can u refer me to some online
documentation or give me a brief tutorial thanks
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of James Gordon
Sent: Tuesday, January 16, 2001 8:35 AM
To: 'dev...@li...'
Subject: RE: [Dev-C++] (no subject)
You have if(type = 'Q'); <--- remove the ; as you have an empty control
statement.
Your missing a return before the closing } in main.
Basically if your program doesn't run into any of the if tests then it falls
out of the bottom without returning a value. (add return 0; before the last
})
A suggestion would be to replace the if's with switch statements.
i.e.
switch(type)
{
case 'Q':
...
break;
case 'C':
...
break;
}
Regards,
James.
-----Original Message-----
From: Frazell Thomas [mailto:fr...@fl...]
Sent: Tuesday, January 16, 2001 1:09 PM
To: Dev...@Li...
Subject: [Dev-C++] (no subject)
I'm trying to add another feature to my primitive program :O) I was trying
to add a regular calculator allowing a choice from the quadratic equation
calculator and from a regular arithmetic calculator I keep getting two
errors which I marked in the code below I'm still a beginner so I as if what
I'm trying to do even possible if not can I have a program open either one
(each in its own executable) if so how? Thanks
Error summary
1. Parse error before 'else' line 69
2. Parse error before '}' line 100
The errors are marked with a '< ----------------' in red if you can read
html mail
---------------------------------------------------------------------------S
ORCE CODE (Errors are marked below in color which may require HTML email to
see)------------------------------------------------------------------------
------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <windows.h>
char type;
int a,b,c;
float sroot, divide, answer_1, answer_2;
double determinent;
float calc1,calc2;
int calc3;
char typec;
int main()
{
//Asks user which caculator does he/she want to start
printf("What type of calcultor do you need? Please enter 'Q' for
Quadratric Eqations \nand 'C' for a stadered calculator: ");
scanf("%c" ,&type);
// Determines which calculator user selected and uses the one chosen
if(type=='Q');
{
printf("This program is designed to do quadratic equations
only.\n");
printf("You are free to use this software as stated under the
GNU\n");
printf("Public License (Avalible at GNU.org).\n\n");
printf("Version: Beta 1.4 1/3/2001 6:00AM EST.\n");
printf("Programmer: Frazell Thomas\n");
printf("Programmer: Hoo Hong\n");
printf("Please visit http://www.frazellthomas.com\n\n");
// Input From User
printf("Please enter the number used to represent varible A: ");
scanf("%d", &a);
// if statement to prevent the divide error if the var. a is zero
if (a == 0)
{
printf("\nSorry you entered 0 this will result in an error try
again.");
printf("\nPlease enter the number used to represent varible A:
");
printf("\nEnter 0 again to quit: ");
scanf("%d", &a);
if (a==0)
{
return 0;
}
}
printf("\nPlease enter the number used to represent varible B:
");
scanf("%d", &b);
printf("\nPlease enter the number used to represent varible C:
");
scanf("%d", &c);
determinent = (pow(b,2) - 4*a*c);
if (determinent < 0)
{
printf("\nSorry, The equation you entered returned no
real result.\n");
printf("Please re-run the program entering an equation
that will give you a real result.");
system("Pause");
return 0;
}
sroot = sqrt(determinent);
divide = 2 * a;
answer_1 = (-b - sroot) / divide;
answer_2 = (-b + sroot) / divide;
// Prints the answer
printf("\nThe Answer Is %.4f and %.4f\n ", answer_1, answer_2);
system("Pause");
return 0;
}
else if(type=='C') < -----------------Parse error before
'else'
{
printf("\nPlease input the first integer: ");
scanf("%f" ,&calc1);
printf("\nEnter the sign ('+','-','*','/'): ");
scanf("%c" ,&typec);
printf("\nPlease input the second integer: ");
scanf("%f" ,&calc2);
if(typec=='+')
{
calc3=calc1+calc2;
}
if(typec=='-')
{
calc3=calc1-calc2;
}
if(typec=='*')
{
calc3=calc1*calc2;
}
if(typec=='/')
{
calc3=calc1/calc2;
}
//Returns Answer From Standerd Calculator To User
printf("\n%f %c %f = %f ",calc1,typec,calc2,calc3);
system("PAUSE");
return 0;
}
} < ------------------Parse error before '}'
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This electronic message and any attachment is intended to be
read by the named addressee(s) only.
Any other recipient should be aware that its contents may be
legally privileged and/or confidential and that its use,
disclosure, copying or distribution may be unlawful.
Unless you are a named addressee, please delete this message
Whilst C. & J. Clark International Limited has taken steps
to prevent the transmission of computer viruses with electronic mail,
responsibility for screening incoming messages and the risk of such
transmission and its consequences lies with the recipient.
C. & J. Clark International Limited
Registered in England and Wales
Company No. 141015
Registered Office: 40 High Street, Street, Somerset BA16 0YA
Telephone: +44 (0) 1458 443131
Fax: +44 (0) 1458 447547
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Frazell T. <fr...@fl...> - 2001-01-16 13:49:55
|
Also adding the return 0; gave me another error parse error before return
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of James Gordon
Sent: Tuesday, January 16, 2001 8:35 AM
To: 'dev...@li...'
Subject: RE: [Dev-C++] (no subject)
You have if(type = 'Q'); <--- remove the ; as you have an empty control
statement.
Your missing a return before the closing } in main.
Basically if your program doesn't run into any of the if tests then it falls
out of the bottom without returning a value. (add return 0; before the last
})
A suggestion would be to replace the if's with switch statements.
i.e.
switch(type)
{
case 'Q':
...
break;
case 'C':
...
break;
}
Regards,
James.
-----Original Message-----
From: Frazell Thomas [mailto:fr...@fl...]
Sent: Tuesday, January 16, 2001 1:09 PM
To: Dev...@Li...
Subject: [Dev-C++] (no subject)
I'm trying to add another feature to my primitive program :O) I was trying
to add a regular calculator allowing a choice from the quadratic equation
calculator and from a regular arithmetic calculator I keep getting two
errors which I marked in the code below I'm still a beginner so I as if what
I'm trying to do even possible if not can I have a program open either one
(each in its own executable) if so how? Thanks
Error summary
1. Parse error before 'else' line 69
2. Parse error before '}' line 100
The errors are marked with a '< ----------------' in red if you can read
html mail
---------------------------------------------------------------------------S
ORCE CODE (Errors are marked below in color which may require HTML email to
see)------------------------------------------------------------------------
------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <windows.h>
char type;
int a,b,c;
float sroot, divide, answer_1, answer_2;
double determinent;
float calc1,calc2;
int calc3;
char typec;
int main()
{
//Asks user which caculator does he/she want to start
printf("What type of calcultor do you need? Please enter 'Q' for
Quadratric Eqations \nand 'C' for a stadered calculator: ");
scanf("%c" ,&type);
// Determines which calculator user selected and uses the one chosen
if(type=='Q');
{
printf("This program is designed to do quadratic equations
only.\n");
printf("You are free to use this software as stated under the
GNU\n");
printf("Public License (Avalible at GNU.org).\n\n");
printf("Version: Beta 1.4 1/3/2001 6:00AM EST.\n");
printf("Programmer: Frazell Thomas\n");
printf("Programmer: Hoo Hong\n");
printf("Please visit http://www.frazellthomas.com\n\n");
// Input From User
printf("Please enter the number used to represent varible A: ");
scanf("%d", &a);
// if statement to prevent the divide error if the var. a is zero
if (a == 0)
{
printf("\nSorry you entered 0 this will result in an error try
again.");
printf("\nPlease enter the number used to represent varible A:
");
printf("\nEnter 0 again to quit: ");
scanf("%d", &a);
if (a==0)
{
return 0;
}
}
printf("\nPlease enter the number used to represent varible B:
");
scanf("%d", &b);
printf("\nPlease enter the number used to represent varible C:
");
scanf("%d", &c);
determinent = (pow(b,2) - 4*a*c);
if (determinent < 0)
{
printf("\nSorry, The equation you entered returned no
real result.\n");
printf("Please re-run the program entering an equation
that will give you a real result.");
system("Pause");
return 0;
}
sroot = sqrt(determinent);
divide = 2 * a;
answer_1 = (-b - sroot) / divide;
answer_2 = (-b + sroot) / divide;
// Prints the answer
printf("\nThe Answer Is %.4f and %.4f\n ", answer_1, answer_2);
system("Pause");
return 0;
}
else if(type=='C') < -----------------Parse error before
'else'
{
printf("\nPlease input the first integer: ");
scanf("%f" ,&calc1);
printf("\nEnter the sign ('+','-','*','/'): ");
scanf("%c" ,&typec);
printf("\nPlease input the second integer: ");
scanf("%f" ,&calc2);
if(typec=='+')
{
calc3=calc1+calc2;
}
if(typec=='-')
{
calc3=calc1-calc2;
}
if(typec=='*')
{
calc3=calc1*calc2;
}
if(typec=='/')
{
calc3=calc1/calc2;
}
//Returns Answer From Standerd Calculator To User
printf("\n%f %c %f = %f ",calc1,typec,calc2,calc3);
system("PAUSE");
return 0;
}
} < ------------------Parse error before '}'
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This electronic message and any attachment is intended to be
read by the named addressee(s) only.
Any other recipient should be aware that its contents may be
legally privileged and/or confidential and that its use,
disclosure, copying or distribution may be unlawful.
Unless you are a named addressee, please delete this message
Whilst C. & J. Clark International Limited has taken steps
to prevent the transmission of computer viruses with electronic mail,
responsibility for screening incoming messages and the risk of such
transmission and its consequences lies with the recipient.
C. & J. Clark International Limited
Registered in England and Wales
Company No. 141015
Registered Office: 40 High Street, Street, Somerset BA16 0YA
Telephone: +44 (0) 1458 443131
Fax: +44 (0) 1458 447547
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: James G. <Jam...@Cl...> - 2001-01-16 13:57:37
|
Either but a book on C or C++, if you can. Or search www.google.com. Or try here http://msdn.microsoft.com/library/devprods/vs6/visualc/vclang/_clang_the_c_s witch_statement.htm I know is MS but it's all the same. It was just the first site I can across using goggle the described the C switch statement. Regards, James. -----Original Message----- From: Frazell Thomas [mailto:fr...@fl...] Sent: Tuesday, January 16, 2001 1:50 PM To: dev...@li... Subject: RE: [Dev-C++] (no subject) I don't know about switch statements can u refer me to some online documentation or give me a brief tutorial thanks -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of James Gordon Sent: Tuesday, January 16, 2001 8:35 AM To: 'dev...@li...' Subject: RE: [Dev-C++] (no subject) You have if(type = 'Q'); <--- remove the ; as you have an empty control statement. Your missing a return before the closing } in main. Basically if your program doesn't run into any of the if tests then it falls out of the bottom without returning a value. (add return 0; before the last }) A suggestion would be to replace the if's with switch statements. i.e. switch(type) { case 'Q': ... break; case 'C': ... break; } Regards, James. -----Original Message----- From: Frazell Thomas [mailto:fr...@fl...] Sent: Tuesday, January 16, 2001 1:09 PM To: Dev...@Li... Subject: [Dev-C++] (no subject) I'm trying to add another feature to my primitive program :O) I was trying to add a regular calculator allowing a choice from the quadratic equation calculator and from a regular arithmetic calculator I keep getting two errors which I marked in the code below I'm still a beginner so I as if what I'm trying to do even possible if not can I have a program open either one (each in its own executable) if so how? Thanks Error summary 1. Parse error before 'else' line 69 2. Parse error before '}' line 100 The errors are marked with a '< ----------------' in red if you can read html mail ---------------------------------------------------------------------------S ORCE CODE (Errors are marked below in color which may require HTML email to see)------------------------------------------------------------------------ ------------------------------------ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <windows.h> char type; int a,b,c; float sroot, divide, answer_1, answer_2; double determinent; float calc1,calc2; int calc3; char typec; int main() { //Asks user which caculator does he/she want to start printf("What type of calcultor do you need? Please enter 'Q' for Quadratric Eqations \nand 'C' for a stadered calculator: "); scanf("%c" ,&type); // Determines which calculator user selected and uses the one chosen if(type=='Q'); { printf("This program is designed to do quadratic equations only.\n"); printf("You are free to use this software as stated under the GNU\n"); printf("Public License (Avalible at GNU.org).\n\n"); printf("Version: Beta 1.4 1/3/2001 6:00AM EST.\n"); printf("Programmer: Frazell Thomas\n"); printf("Programmer: Hoo Hong\n"); printf("Please visit http://www.frazellthomas.com\n\n"); // Input From User printf("Please enter the number used to represent varible A: "); scanf("%d", &a); // if statement to prevent the divide error if the var. a is zero if (a == 0) { printf("\nSorry you entered 0 this will result in an error try again."); printf("\nPlease enter the number used to represent varible A: "); printf("\nEnter 0 again to quit: "); scanf("%d", &a); if (a==0) { return 0; } } printf("\nPlease enter the number used to represent varible B: "); scanf("%d", &b); printf("\nPlease enter the number used to represent varible C: "); scanf("%d", &c); determinent = (pow(b,2) - 4*a*c); if (determinent < 0) { printf("\nSorry, The equation you entered returned no real result.\n"); printf("Please re-run the program entering an equation that will give you a real result."); system("Pause"); return 0; } sroot = sqrt(determinent); divide = 2 * a; answer_1 = (-b - sroot) / divide; answer_2 = (-b + sroot) / divide; // Prints the answer printf("\nThe Answer Is %.4f and %.4f\n ", answer_1, answer_2); system("Pause"); return 0; } else if(type=='C') < -----------------Parse error before 'else' { printf("\nPlease input the first integer: "); scanf("%f" ,&calc1); printf("\nEnter the sign ('+','-','*','/'): "); scanf("%c" ,&typec); printf("\nPlease input the second integer: "); scanf("%f" ,&calc2); if(typec=='+') { calc3=calc1+calc2; } if(typec=='-') { calc3=calc1-calc2; } if(typec=='*') { calc3=calc1*calc2; } if(typec=='/') { calc3=calc1/calc2; } //Returns Answer From Standerd Calculator To User printf("\n%f %c %f = %f ",calc1,typec,calc2,calc3); system("PAUSE"); return 0; } } < ------------------Parse error before '}' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This electronic message and any attachment is intended to be read by the named addressee(s) only. Any other recipient should be aware that its contents may be legally privileged and/or confidential and that its use, disclosure, copying or distribution may be unlawful. Unless you are a named addressee, please delete this message Whilst C. & J. Clark International Limited has taken steps to prevent the transmission of computer viruses with electronic mail, responsibility for screening incoming messages and the risk of such transmission and its consequences lies with the recipient. C. & J. Clark International Limited Registered in England and Wales Company No. 141015 Registered Office: 40 High Street, Street, Somerset BA16 0YA Telephone: +44 (0) 1458 443131 Fax: +44 (0) 1458 447547 _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This electronic message and any attachment is intended to be read by the named addressee(s) only. Any other recipient should be aware that its contents may be legally privileged and/or confidential and that its use, disclosure, copying or distribution may be unlawful. Unless you are a named addressee, please delete this message Whilst C. & J. Clark International Limited has taken steps to prevent the transmission of computer viruses with electronic mail, responsibility for screening incoming messages and the risk of such transmission and its consequences lies with the recipient. C. & J. Clark International Limited Registered in England and Wales Company No. 141015 Registered Office: 40 High Street, Street, Somerset BA16 0YA Telephone: +44 (0) 1458 443131 Fax: +44 (0) 1458 447547 |
|
From: sushmita u. <sus...@ya...> - 2001-01-17 05:36:04
|
it seems that u r familiar with both c and c++ the switch statement is used in place of multiple if/else statements --- James Gordon <Jam...@Cl...> wrote: > Either but a book on C or C++, if you can. > Or search www.google.com. > Or try here > http://msdn.microsoft.com/library/devprods/vs6/visualc/vclang/_clang_the_c_s > witch_statement.htm > > I know is MS but it's all the same. It was just the > first site I can across > using goggle the described the C switch statement. > > Regards, > > James. > > > -----Original Message----- > From: Frazell Thomas [mailto:fr...@fl...] > Sent: Tuesday, January 16, 2001 1:50 PM > To: dev...@li... > Subject: RE: [Dev-C++] (no subject) > > > I don't know about switch statements can u refer me > to some online > documentation or give me a brief tutorial thanks > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On > Behalf Of James Gordon > Sent: Tuesday, January 16, 2001 8:35 AM > To: 'dev...@li...' > Subject: RE: [Dev-C++] (no subject) > > You have if(type = 'Q'); <--- remove the ; as you > have an empty control > statement. > > Your missing a return before the closing } in main. > Basically if your program doesn't run into any of > the if tests then it falls > out of the bottom without returning a value. (add > return 0; before the last > }) > > A suggestion would be to replace the if's with > switch statements. > > i.e. > > switch(type) > { > case 'Q': > ... > break; > case 'C': > ... > break; > } > > Regards, > > James. > > > > -----Original Message----- > From: Frazell Thomas [mailto:fr...@fl...] > Sent: Tuesday, January 16, 2001 1:09 PM > To: Dev...@Li... > Subject: [Dev-C++] (no subject) > > > > I'm trying to add another feature to my primitive > program :O) I was trying > to add a regular calculator allowing a choice from > the quadratic equation > calculator and from a regular arithmetic calculator > I keep getting two > errors which I marked in the code below I'm still a > beginner so I as if what > I'm trying to do even possible if not can I have a > program open either one > (each in its own executable) if so how? Thanks > > > > Error summary > > 1. Parse error before 'else' line 69 > > 2. Parse error before '}' line 100 > > The errors are marked with a '< ----------------' in > red if you can read > html mail > > > > > > > > ---------------------------------------------------------------------------S > ORCE CODE (Errors are marked below in color which > may require HTML email to > see)------------------------------------------------------------------------ > ------------------------------------ > > #include <stdio.h> > > #include <stdlib.h> > > #include <math.h> > > #include <windows.h> > > char type; > > int a,b,c; > > float sroot, divide, answer_1, answer_2; > > double determinent; > > float calc1,calc2; > > int calc3; > > char typec; > > int main() > > { > > > > //Asks user which caculator does he/she want > to start > > printf("What type of calcultor do you need? > Please enter 'Q' for > Quadratric Eqations \nand 'C' for a stadered > calculator: "); > > scanf("%c" ,&type); > > > > // Determines which calculator user selected > and uses the one chosen > > if(type=='Q'); > > { > > printf("This program is designed to do > quadratic equations > only.\n"); > > printf("You are free to use this software > as stated under the > GNU\n"); > > printf("Public License (Avalible at > GNU.org).\n\n"); > > printf("Version: Beta 1.4 1/3/2001 6:00AM > EST.\n"); > > printf("Programmer: Frazell Thomas\n"); > > printf("Programmer: Hoo Hong\n"); > > printf("Please visit > http://www.frazellthomas.com\n\n"); > > > > // Input From User > > printf("Please enter the number used to > represent varible A: "); > > scanf("%d", &a); > > // if statement to prevent the divide > error if the var. a is zero > > if (a == 0) > > { > > printf("\nSorry you entered 0 this > will result in an error try > again."); > > printf("\nPlease enter the number used > to represent varible A: > "); > === message truncated === __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
|
From: <jos...@ya...> - 2001-01-19 15:51:06
|
> Hi
> I am a student learning c++ and have written a program to displace
> fibonacci numbers till the value entered by the user. This program
> doesnt compile in DevC++ showing some linker errors however it does
> compile in Visual c++. Any Ideas on whats wrong ?
> Thanks
> Devik
>
> Here's the code
>
> /* This Program Displays N Fibonacci Numbers */
> #include
>
> > void main()
> {
> int c,a=1,b=1,newno,n;
> cout> cin>>n;
> cout> cout> for(c=2;c> {
> newno=a+b;
> a=b;
> b=newno;
> cout>
> }
>
Try to use the correct main function.
int main()
{
// your code here
return 0;
}
Cheers,
Chemanuel
El rincón de Chemanuel - Resources for Windows programming in C++
---------------------------------
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail. |
|
From: James G. <Jam...@Cl...> - 2001-03-06 09:58:07
|
Normally you would use -I/usr/include -I/home/xwin/include -I. That is using a capital I not L. (-L is used to include libraries). Regards, James. -----Original Message----- From: Purohit Prahlad Jogaram [mailto:pra...@si...] Sent: Tuesday, March 06, 2001 7:30 AM To: dev...@li... Subject: [Dev-C++] (no subject) Will some one please tell me How To Specify Multiple Include Directories when using g++ on a linux machine Prahlad J. Purohit... PH: +91-22-8143953 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This electronic message and any attachment is intended to be read by the named addressee(s) only. Any other recipient should be aware that its contents may be legally privileged and/or confidential and that its use, disclosure, copying or distribution may be unlawful. Unless you are a named addressee, please delete this message Whilst C. & J. Clark International Limited has taken steps to prevent the transmission of computer viruses with electronic mail, responsibility for screening incoming messages and the risk of such transmission and its consequences lies with the recipient. C. & J. Clark International Limited Registered in England and Wales Company No. 141015 Registered Office: 40 High Street, Street, Somerset BA16 0YA Telephone: +44 (0) 1458 443131 Fax: +44 (0) 1458 447547 |
|
From: JS <jsc...@gm...> - 2001-08-13 14:21:56
|
you should add something like an input commang (getc) or what to
stop the window from disappearing.
On 13 Aug 2001, at 9:04, Clayton Weaver wrote:
> I made a simple program to test the compiling and run options in the Dev-C++
> program. The program I wrote was just a simple one that told the computer to
> output the string "hello world" to the screen when you ran the program. That
> is where the problem is though. I have Windows 98 and I have the DJGPP
> compiler with Rhide interface and the MinGW compiler and I just recently
> downloaded the Dev-C++ software and I like it, but I'm having trouble with
> it. Let me start from the beginning. The simple program I wrote had this as
> the source code:
>
> #include <iostream.h>
>
> int main()
> {
> cout<<"hello world";
> return0;
> }
>
> I compiled the program without any problems, but when I run it or try to
> click on the .exe file in the c:\ drive it pops up the program real quick
> and closes it back out instead of keeping it up until I click the exit
> button at the top of the window. Why does it do this and how can I make it
> stop? My DJGPP with Rhide interface lets the identical program I wrote in it
> stay open until I click the x on the screen to close it, but Dev-C++ opens
> the program and closes it write back(the program was written in Dev-C++).
> Thanks for any and all help that you can offer me:).
>
> --Clayton Weaver
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Nexus <nne...@ya...> - 2001-08-13 20:00:13
|
add cin.get() just before the return you may have to add 2
or run it from the command line....
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Clayton
Weaver
Sent: Monday, August 13, 2001 7:04 AM
To: dev...@li...
Subject: [Dev-C++] (no subject)
I made a simple program to test the compiling and run options in the Dev-C++
program. The program I wrote was just a simple one that told the computer to
output the string "hello world" to the screen when you ran the program. That
is where the problem is though. I have Windows 98 and I have the DJGPP
compiler with Rhide interface and the MinGW compiler and I just recently
downloaded the Dev-C++ software and I like it, but I'm having trouble with
it. Let me start from the beginning. The simple program I wrote had this as
the source code:
#include <iostream.h>
int main()
{
cout<<"hello world";
return0;
}
I compiled the program without any problems, but when I run it or try to
click on the .exe file in the c:\ drive it pops up the program real quick
and closes it back out instead of keeping it up until I click the exit
button at the top of the window. Why does it do this and how can I make it
stop? My DJGPP with Rhide interface lets the identical program I wrote in it
stay open until I click the x on the screen to close it, but Dev-C++ opens
the program and closes it write back(the program was written in Dev-C++).
Thanks for any and all help that you can offer me:).
--Clayton Weaver
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|
|
From: Daniel G. <sp...@ho...> - 2001-10-22 21:00:42
|
<html><div style='background-color:'><DIV> <P>oooooooooooh I know this, I know this....you have to enclose it between something...ummmmmm...........bugger I can't think what it is.<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "John Barnett" <SER...@HO...> <DIV></DIV>>To: dev...@li... <DIV></DIV>>Subject: [Dev-C++] (no subject) <DIV></DIV>>Date: Mon, 22 Oct 2001 15:54:43 -0500 <DIV></DIV>> <DIV></DIV>>I need help with bloodshed, in the system portion of the code is <DIV></DIV>>there <DIV></DIV>>anyway for the developer to cause Dev to recognize "/" without it <DIV></DIV>>being <DIV></DIV>>shown as an invalid escape? I wanted to create a program that allows <DIV></DIV>>users <DIV></DIV>>to rename logo.sys and so forth yet I can't see how to do that. <DIV></DIV>>Please help. <DIV></DIV>> <DIV></DIV>>_________________________________________________________________ <DIV></DIV>>Get your FREE download of MSN Explorer at <DIV></DIV>>http://explorer.msn.com/intl.asp <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>_______________________________________________ <DIV></DIV>>Dev-cpp-users mailing list <DIV></DIV>>Dev...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: Jason H. <jas...@bt...> - 2001-10-23 03:02:57
|
To produce a single backslash character in a string literal you actualy = have to use a double backslash, one for the escape and one to say you = want a backslash, i.e. char path[] =3D "C:\\foo\\bar.exe"; Jason. ----- Original Message -----=20 From: Daniel Glenfield=20 To: dev...@li...=20 Sent: Monday, October 22, 2001 10:00 PM Subject: Re: [Dev-C++] (no subject) oooooooooooh I know this, I know this....you have to enclose it = between something...ummmmmm...........bugger I can't think what it is. >From: "John Barnett"=20 >To: dev...@li...=20 >Subject: [Dev-C++] (no subject)=20 >Date: Mon, 22 Oct 2001 15:54:43 -0500=20 >=20 >I need help with bloodshed, in the system portion of the code is=20 >there=20 >anyway for the developer to cause Dev to recognize "/" without it=20 >being=20 >shown as an invalid escape? I wanted to create a program that allows=20 >users=20 >to rename logo.sys and so forth yet I can't see how to do that.=20 >Please help.=20 >=20 >_________________________________________________________________=20 >Get your FREE download of MSN Explorer at=20 >http://explorer.msn.com/intl.asp=20 >=20 >=20 >_______________________________________________=20 >Dev-cpp-users mailing list=20 >Dev...@li...=20 >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 -------------------------------------------------------------------------= ----- Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Williams, T. W. <TIM...@sa...> - 2002-01-08 19:00:03
|
It's tough to tell without more code but my guess is that you don't =
have a
function declaration?
Admittedly, I haven't been following this list so maybe I missed =
something.
For example:
//must be declared before it is used.
int titleshot(int n);
int main()
{ =20
int i =3D titleshot(3);
system("PAUSE");
return 0;
}
int titleshot(int n)
{
return 1;
}
If it's more complex that this, post the code...
--tim
> -----Original Message-----
> From: Andre` Niel Cameron [mailto:An...@Ax...]
> Sent: Tuesday, January 08, 2002 1:45 PM
> To: Dev-C++
> Subject: [Dev-C++] (no subject)
>=20
>=20
> battle.c:8: warning: implicit declaration of function `int=20
> titleshot(...)'
>=20
> Any CLUE what this might mean?
> Regards,
> Andr=E9 C.
> Technical Support
> =D4=BF=D4=AC
> --------------------------------------------------------------
> --------------
> -
> Visit our support manual at http://supportmanual.com/
>=20
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|
|
From: Andre` N. C. <An...@Ax...> - 2002-01-08 21:25:20
|
That was it Duh to me;) Sorry guys its been acouple of years since I hav= e used C/C++ bear with me;) Last one promise any clues on this: /tmp/ccIZJ7So.o(.text+0x4): undefined reference to `titleshot(void)' Thats what popped up after the other error went away. Regards, Andr=E9 C. Technical Support =D4=BF=D4=AC -------------------------------------------------------------------------= --- - Visit our support manual at http://supportmanual.com/ ----- Original Message ----- From: "Williams, Timothy W." <TIM...@sa...> To: "'Andre` Niel Cameron'" <An...@Ax...>; "Dev-C++" <dev...@li...> Sent: Tuesday, January 08, 2002 1:58 PM Subject: RE: [Dev-C++] (no subject) > It's tough to tell without more code but my guess is that you don't hav= e a > function declaration? > Admittedly, I haven't been following this list so maybe I missed something. > > For example: > > //must be declared before it is used. > int titleshot(int n); > > int main() > { > int i =3D titleshot(3); > system("PAUSE"); > return 0; > } > > int titleshot(int n) > { > return 1; > } > > If it's more complex that this, post the code... > --tim > > > -----Original Message----- > > From: Andre` Niel Cameron [mailto:An...@Ax...] > > Sent: Tuesday, January 08, 2002 1:45 PM > > To: Dev-C++ > > Subject: [Dev-C++] (no subject) > > > > > > battle.c:8: warning: implicit declaration of function `int > > titleshot(...)' > > > > Any CLUE what this might mean? > > Regards, > > Andr=E9 C. > > Technical Support > > =D4=BF=D4=AC > > -------------------------------------------------------------- > > -------------- > > - > > Visit our support manual at http://supportmanual.com/ > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |
|
From: Ioannis V. <no...@ya...> - 2002-01-08 21:51:34
|
You haven't provided the function definition. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Andre` Niel Cameron > Sent: Tuesday, January 08, 2002 11:22 PM > To: Williams, Timothy W.; Dev-C++ > Subject: Re: [Dev-C++] (no subject) >=20 >=20 > That was it Duh to me;) Sorry guys its been acouple of years=20 > since I have used C/C++ bear with me;) Last one promise any=20 > clues on this: >=20 > /tmp/ccIZJ7So.o(.text+0x4): undefined reference to `titleshot(void)' >=20 > Thats what popped up after the other error went away. > Regards, > Andr=E9 C. > Technical Support > =D4=BF=D4=AC > -------------------------------------------------------------- > -------------- > - > Visit our support manual at http://supportmanual.com/ > ----- Original Message ----- > From: "Williams, Timothy W." <TIM...@sa...> > To: "'Andre` Niel Cameron'" <An...@Ax...>; "Dev-C++"=20 > <dev...@li...> > Sent: Tuesday, January 08, 2002 1:58 PM > Subject: RE: [Dev-C++] (no subject) >=20 >=20 > > It's tough to tell without more code but my guess is that you don't=20 > > have a function declaration? Admittedly, I haven't been=20 > following this=20 > > list so maybe I missed > something. > > > > For example: > > > > //must be declared before it is used. > > int titleshot(int n); > > > > int main() > > { > > int i =3D titleshot(3); > > system("PAUSE"); > > return 0; > > } > > > > int titleshot(int n) > > { > > return 1; > > } > > > > If it's more complex that this, post the code... > > --tim > > > > > -----Original Message----- > > > From: Andre` Niel Cameron [mailto:An...@Ax...] > > > Sent: Tuesday, January 08, 2002 1:45 PM > > > To: Dev-C++ > > > Subject: [Dev-C++] (no subject) > > > > > > > > > battle.c:8: warning: implicit declaration of function `int=20 > > > titleshot(...)' > > > > > > Any CLUE what this might mean? > > > Regards, > > > Andr=E9 C. > > > Technical Support > > > =D4=BF=D4=AC > > > -------------------------------------------------------------- > > > -------------- > > > - > > > Visit our support manual at http://supportmanual.com/ > > > > > > > > > _______________________________________________ > > > Dev-cpp-users mailing list Dev...@li... > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > >=20 >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: Joshua T. <vap...@ms...> - 2002-01-23 06:08:21
|
Don't you have an any key?:) Joshua Thomas If not : http://www.computergear.com/bits---bytes.html =20 --------First choice------- printf( "Press [enter] to quit..." ); getchar();Get more from the Web. FREE MSN Explorer download : http://exp= lorer.msn.com |
|
From: Daniel G. <sp...@ho...> - 2002-02-11 13:04:38
|
<html><div style='background-color:'><DIV> <P>Hey that's interesting, thanks!</P> <P>I wonder how many unemployed programmers (like me) there are out there...<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "Ioannis Vranos" <NO...@YA...> <DIV></DIV>>To: "Dev-C++" <DEV...@LI...> <DIV></DIV>>Subject: [Dev-C++] (no subject) <DIV></DIV>>Date: Mon, 11 Feb 2002 03:07:16 +0200 <DIV></DIV>> <DIV></DIV>>Something useful: <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Recently, a report by IDC indicated that there are over 2.6 million <DIV></DIV>>professional developers worldwide using C/C++ as their primary language <DIV></DIV>>and over a million professional developers worldwide using Java as their <DIV></DIV>>primary language. This means over 37% of all developers worldwide are <DIV></DIV>>using these languages and the numbers continue to grow. <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Ioannis <DIV></DIV>> <DIV></DIV>>* Ioannis Vranos <DIV></DIV>>* Programming pages: <HTTP: www.noicys.d2g.com /> <DIV></DIV>>http://www.noicys.d2g.com <DIV></DIV>>* Alternative URL: <HTTP: noicys run.to>http://run.to/noicys <DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://go.msn.com/bql/hmtag3_etl_EN.asp'>Click Here</a><br></html> |
|
From: Benjamin W. <ben...@ho...> - 2002-03-05 12:59:13
|
<html><div style='background-color:'><P>Good morning,</P> <P>Just wanted to chime in here. Jason's opinion on this topic is right along the same lines as mine. I totally agree that it is important to learn the fundamentals behind the structure of programming first.</P> <P>As I mentioned in an email to another person posting this same question (possibly the same person under a different email address)... I'd recommend something like Pascal or QBasic to start you off. They are outdated and are aimed at teaching programming from a console (DOS window) environment, but they will be excellent at "starting your journey" as Jason said, into the world of programming.</P> <P>Back when I was in college, the first programming language that they taught there was Pascal. Then we progressed into C and C++ and then into learning more about Data Structures, Algorithms, Operating Systems, etc. Anyway, my point is...start with something small and work up... QBasic, BASIC, and Pascal are all languages that are great starting points.</P> <P>Start there, with the basics....and feel free to email should you have any questions along the way.</P> <DIV><FONT face="Geneva, Arial, Sans-serif" size=2>Benjamin Wheeless</FONT></DIV> <DIV></DIV> <DIV><FONT face="Geneva, Arial, Sans-serif" size=2><STRONG>Network Systems - Delta Airlines, Inc.</STRONG></FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2><STRONG>Atlanta, GA - USA 30320</STRONG></FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2><STRONG>==============================</STRONG></FONT></DIV> <DIV> </DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>----Original Message Follows---- <DIV></DIV>From: Nicole Mark <NIC...@YA...> <DIV></DIV>To: dev...@li... <DIV></DIV>Subject: [Dev-C++] (no subject) <DIV></DIV>Date: Mon, 4 Mar 2002 16:01:56 -0800 (PST) <DIV></DIV> <DIV></DIV> <DIV></DIV>Pre-high schooler needs information on how to start learning programming <DIV></DIV> <DIV></DIV>Thanks <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>--------------------------------- <DIV></DIV>Do You Yahoo!? <DIV></DIV>Yahoo! Sports - Sign up for Fantasy Baseball <DIV></DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a href='http://g.msn.com/1HM105401/14'>Click Here</a><br></html> |
|
From: Jason H. <jas...@bt...> - 2002-03-05 13:31:00
|
I don't want to nay say something someone else has said, but I wouldn't = recommend BASIC as a way of learning structured programming, because in = essence BASIC is an unstructured language with very loose type checking. = In the more recent incarnations there have been some flow control = statements grafted on to the language, but I still wouldn't recommend = it. After saying all that I will admit that my first experience of = programming was ZX Spectrum Basic. The usual first language is Pascal. There's a Dev-Pascal environment = available I believe (maybe I got the name wrong) at the Bloodshed = website. Delphi is an extension of the Pascal language into an object = oriented paradigm from Borland. You can also still get hold of the old = Turbo-Pascal environment from the museum section of the borland comunity = web-site (I think). Jason. ----- Original Message -----=20 From: Benjamin Wheeless=20 To: nic...@ya... ; dev...@li...=20 Sent: Tuesday, March 05, 2002 12:58 PM Subject: Re: [Dev-C++] (no subject) Good morning, Just wanted to chime in here. Jason's opinion on this topic is right = along the same lines as mine. I totally agree that it is important to = learn the fundamentals behind the structure of programming first. As I mentioned in an email to another person posting this same = question (possibly the same person under a different email address)... = I'd recommend something like Pascal or QBasic to start you off. They = are outdated and are aimed at teaching programming from a console (DOS = window) environment, but they will be excellent at "starting your = journey" as Jason said, into the world of programming. Back when I was in college, the first programming language that they = taught there was Pascal. Then we progressed into C and C++ and then = into learning more about Data Structures, Algorithms, Operating Systems, = etc. Anyway, my point is...start with something small and work up... = QBasic, BASIC, and Pascal are all languages that are great starting = points. Start there, with the basics....and feel free to email should you have = any questions along the way. Benjamin Wheeless Network Systems - Delta Airlines, Inc. Atlanta, GA - USA 30320 = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D ----Original Message Follows----=20 From: Nicole Mark=20 To: dev...@li...=20 Subject: [Dev-C++] (no subject)=20 Date: Mon, 4 Mar 2002 16:01:56 -0800 (PST)=20 Pre-high schooler needs information on how to start learning = programming=20 Thanks=20 ---------------------------------=20 Do You Yahoo!?=20 Yahoo! Sports - Sign up for Fantasy Baseball=20 -------------------------------------------------------------------------= ----- Send and receive Hotmail on your mobile device: Click Here _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Benjamin W. <ben...@ho...> - 2002-03-05 14:46:10
|
<html><div style='background-color:'><DIV> <P>Bloodshed does carry a Pascal compiler on their web site. I think it's DevPascal 1.9. I am not sure about the old Turbo Pascal being available at Borland...although it may be...as I rarely check their museum section. I do know that you cannot purchase it anywhere except in the UK where I think it is available in limited quantities (I'm speaking of the TP 7.0 version).</P> <P>You can get a trial version of Delphi ( or Object Pascal as Jason mentioned ) from Borland I believe... version 6.0 (I think). I already own Delphi 6.0 Enterprise and I also have an outdated but fully functional (all documentation included) Delphi 1.0 version which I would be more than happy to part with if you would prefer that over DevPascal 1.9. However, I would personally recommend that you NOT start off with Delphi 1.0 and would recommend the DevPascal 1.9 over Delphi 1.0 to get you started.</P> <P>Anyway, best of luck.<BR><FONT face="Geneva, Arial, Sans-serif" size=2><BR>Benjamin Wheeless<BR></FONT><FONT face="Geneva, Arial, Sans-serif" size=2><STRONG>Network Systems - Delta Airlines, Inc.<BR></STRONG></FONT><FONT face=Arial size=2><STRONG>Atlanta, GA - USA 30320</STRONG></FONT></P></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2><STRONG>==============================</STRONG></FONT></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>----Original Message Follows---- <DIV></DIV>From: "Jason Hardman" <JAS...@BT...> <DIV></DIV>To: "Dev-C++" <DEV...@LI...> <DIV></DIV>Subject: Re: [Dev-C++] (no subject) <DIV></DIV>Date: Tue, 5 Mar 2002 13:29:22 -0000 <DIV></DIV> <DIV></DIV>I don't want to nay say something someone else has said, but I wouldn't recommend BASIC as a way of learning structured programming, because in essence BASIC is an unstructured language with very loose type checking. In the more recent incarnations there have been some flow control statements grafted on to the language, but I still wouldn't recommend it. After saying all that I will admit that my first experience of programming was ZX Spectrum Basic. <DIV></DIV> <DIV></DIV>The usual first language is Pascal. There's a Dev-Pascal environment available I believe (maybe I got the name wrong) at the Bloodshed website. Delphi is an extension of the Pascal language into an object oriented paradigm from Borland. You can also still get hold of the old Turbo-Pascal environment from the museum section of the borland comunity web-site (I think). <DIV></DIV> <DIV></DIV>Jason. <DIV></DIV> <DIV></DIV> <DIV></DIV>----- Original Message ----- <DIV></DIV>From: Benjamin Wheeless <DIV></DIV>To: nic...@ya... ; dev...@li... <DIV></DIV>Sent: Tuesday, March 05, 2002 12:58 PM <DIV></DIV>Subject: Re: [Dev-C++] (no subject) <DIV></DIV> <DIV></DIV> <DIV></DIV>Good morning, <DIV></DIV> <DIV></DIV>Just wanted to chime in here. Jason's opinion on this topic is right along the same lines as mine. I totally agree that it is important to learn the fundamentals behind the structure of programming first. <DIV></DIV> <DIV></DIV>As I mentioned in an email to another person posting this same question (possibly the same person under a different email address)... I'd recommend something like Pascal or QBasic to start you off. They are outdated and are aimed at teaching programming from a console (DOS window) environment, but they will be excellent at "starting your journey" as Jason said, into the world of programming. <DIV></DIV> <DIV></DIV>Back when I was in college, the first programming language that they taught there was Pascal. Then we progressed into C and C++ and then into learning more about Data Structures, Algorithms, Operating Systems, etc. Anyway, my point is...start with something small and work up... QBasic, BASIC, and Pascal are all languages that are great starting points. <DIV></DIV> <DIV></DIV>Start there, with the basics....and feel free to email should you have any questions along the way. <DIV></DIV> <DIV></DIV>Benjamin Wheeless <DIV></DIV>Network Systems - Delta Airlines, Inc. <DIV></DIV>Atlanta, GA - USA 30320 <DIV></DIV>============================== <DIV></DIV> <DIV></DIV>----Original Message Follows---- <DIV></DIV>From: Nicole Mark <DIV></DIV>To: dev...@li... <DIV></DIV>Subject: [Dev-C++] (no subject) <DIV></DIV>Date: Mon, 4 Mar 2002 16:01:56 -0800 (PST) <DIV></DIV>Pre-high schooler needs information on how to start learning programming <DIV></DIV>Thanks <DIV></DIV>--------------------------------- <DIV></DIV>Do You Yahoo!? <DIV></DIV>Yahoo! Sports - Sign up for Fantasy Baseball <DIV></DIV> <DIV></DIV> <DIV></DIV>------------------------------------------------------------------------------ <DIV></DIV>Send and receive Hotmail on your mobile device: Click Here <DIV></DIV>_______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://g.msn.com/1HM105401/15'>Click Here</a><br></html> |
|
From: Ioannis V. <no...@ya...> - 2002-03-05 15:02:38
|
"Learn some easy language", "learn some outdated language", "so as to
get the fundamentals". Sorry guys i strongly disagree with you. My
advice is: Learn the *best* language directly. I started from C
straight, and now i am at C++ and i can suggest to learrn C at all and
go straight at C++. C++ provides all the paradigms and facilities both
high level and low level, so as anyone can learn as much as he wants and
start programming. There is no need to know the whole C++ so as to write
good programs. Also for a newcomer it is very easy to program in C++!
=20
=20
Consider the code:
=20
#include <iostream>
#include <string>
=20
int main()
{
using namespace std;
=20
string a=3D"This is my first program.";
string b=3D"I wish to become a very good programmer";
=20
string c=3Da+" "+b;
=20
cout<<c;
}
=20
=20
I also suggested a great book which permits to learn C++ rapidly.
"Accelerated C++" by Andrew Koenig, Barbara Moo. I was informed of this
book by BS himself in an email discussion we had on TC++PL. Then i
checked at Amazon and i saw it has good comments. Also i read the
contents and i think they are great too. Then i read the author's page
for the book and i liked it too. In summary a great book.
=20
=20
http://www.research.att.com/~ark/bibliography/accelerated.html
=20
=20
=20
Ioannis
=20
* Ioannis Vranos
* Programming pages: <http://www.noicys.d2g.com/>
http://www.noicys.d2g.com
* Alternative URL: <http://run.to/noicys> http://run.to/noicys
=20
=20
Ioannis
=20
* Ioannis Vranos
* Programming pages: <http://www.noicys.d2g.com/>
http://www.noicys.d2g.com
* Alternative URL: <http://run.to/noicys> http://run.to/noicys
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Benjamin
Wheeless
Sent: Tuesday, March 05, 2002 2:59 PM
To: nic...@ya...; dev...@li...
Subject: Re: [Dev-C++] (no subject)
Good morning,
Just wanted to chime in here. Jason's opinion on this topic is right
along the same lines as mine. I totally agree that it is important to
learn the fundamentals behind the structure of programming first.
As I mentioned in an email to another person posting this same question
(possibly the same person under a different email address)... I'd
recommend something like Pascal or QBasic to start you off. They are
outdated and are aimed at teaching programming from a console (DOS
window) environment, but they will be excellent at "starting your
journey" as Jason said, into the world of programming.
Back when I was in college, the first programming language that they
taught there was Pascal. Then we progressed into C and C++ and then
into learning more about Data Structures, Algorithms, Operating Systems,
etc. Anyway, my point is...start with something small and work up...
QBasic, BASIC, and Pascal are all languages that are great starting
points.
Start there, with the basics....and feel free to email should you have
any questions along the way.
Benjamin Wheeless
Network Systems - Delta Airlines, Inc.
Atlanta, GA - USA 30320
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
=20
----Original Message Follows----=20
From: Nicole Mark=20
To: dev...@li...=20
Subject: [Dev-C++] (no subject)=20
Date: Mon, 4 Mar 2002 16:01:56 -0800 (PST)=20
Pre-high schooler needs information on how to start learning programming
Thanks=20
---------------------------------=20
Do You Yahoo!?=20
Yahoo! Sports - Sign up for Fantasy Baseball=20
_____ =20
Send and receive Hotmail on your mobile device: Click
<http://g.msn.com/1HM105401/14> Here
_______________________________________________ Dev-cpp-users mailing
list Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20
|
|
From: Jason H. <jas...@bt...> - 2002-03-05 19:45:41
|
MessageAs you said "C++ provides all the paradigms and facilities both =
high level and low level,..." which I think is actualy a reason for not =
learning C++ straight off. Also is the fact that C++ is a hybrid =
language in that it can operate as both a structured language and an OOP =
language, or a bit of both. When learning an approach it's important =
that the learner is not confused by the features of a language, and is =
kept on a 'tight leash' so to say.
Another thing that C and C++ does is to expose pointers and references =
more than most languages, as it is a middle level language. It would be =
better to start with high level language which doesn't confuse complete =
newbies with such things. I think pointers are one of the harder =
concepts that most learning programmers have to get thier heads around =
at some point, but not right at the beginning.
As for C++ being the *best* language, it's a matter of point of view, =
but I wouldn't say that any language is the best, much the same that any =
spoken language is the best. When approaching a development you choose =
the one that is right at the time. An additional benefit of learning =
Pascal (or some other language) is that you can write on your CV =
(Resume) that you can program in Pascal (or whatever). I believe that =
Cobol programmers are very much in demand these days.
Jason.
----- Original Message -----=20
From: Ioannis Vranos=20
To: Dev-C++=20
Sent: Tuesday, March 05, 2002 3:02 PM
Subject: RE: [Dev-C++] (no subject)
"Learn some easy language", "learn some outdated language", "so as to =
get the fundamentals". Sorry guys i strongly disagree with you. My =
advice is: Learn the *best* language directly. I started from C =
straight, and now i am at C++ and i can suggest to learrn C at all and =
go straight at C++. C++ provides all the paradigms and facilities both =
high level and low level, so as anyone can learn as much as he wants and =
start programming. There is no need to know the whole C++ so as to write =
good programs. Also for a newcomer it is very easy to program in C++!
Consider the code:
#include <iostream>
#include <string>
int main()
{
using namespace std;
string a=3D"This is my first program.";
string b=3D"I wish to become a very good programmer";
string c=3Da+" "+b;
cout<<c;
}
I also suggested a great book which permits to learn C++ rapidly. =
"Accelerated C++" by Andrew Koenig, Barbara Moo. I was informed of this =
book by BS himself in an email discussion we had on TC++PL. Then i =
checked at Amazon and i saw it has good comments. Also i read the =
contents and i think they are great too. Then i read the author's page =
for the book and i liked it too. In summary a great book.
http://www.research.att.com/~ark/bibliography/accelerated.html
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
-----Original Message-----
From: dev...@li... =
[mailto:dev...@li...] On Behalf Of Benjamin =
Wheeless
Sent: Tuesday, March 05, 2002 2:59 PM
To: nic...@ya...; dev...@li...
Subject: Re: [Dev-C++] (no subject)
Good morning,
Just wanted to chime in here. Jason's opinion on this topic is =
right along the same lines as mine. I totally agree that it is =
important to learn the fundamentals behind the structure of programming =
first.
As I mentioned in an email to another person posting this same =
question (possibly the same person under a different email address)... =
I'd recommend something like Pascal or QBasic to start you off. They =
are outdated and are aimed at teaching programming from a console (DOS =
window) environment, but they will be excellent at "starting your =
journey" as Jason said, into the world of programming.
Back when I was in college, the first programming language that they =
taught there was Pascal. Then we progressed into C and C++ and then =
into learning more about Data Structures, Algorithms, Operating Systems, =
etc. Anyway, my point is...start with something small and work up... =
QBasic, BASIC, and Pascal are all languages that are great starting =
points.
Start there, with the basics....and feel free to email should you =
have any questions along the way.
Benjamin Wheeless
Network Systems - Delta Airlines, Inc.
Atlanta, GA - USA 30320
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
----Original Message Follows----=20
From: Nicole Mark=20
To: dev...@li...=20
Subject: [Dev-C++] (no subject)=20
Date: Mon, 4 Mar 2002 16:01:56 -0800 (PST)=20
Pre-high schooler needs information on how to start learning =
programming=20
Thanks=20
---------------------------------=20
Do You Yahoo!?=20
Yahoo! Sports - Sign up for Fantasy Baseball=20
-------------------------------------------------------------------------=
---
Send and receive Hotmail on your mobile device: Click Here
_______________________________________________ Dev-cpp-users =
mailing list Dev...@li... =
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20
|
|
From: Ioannis V. <no...@ya...> - 2002-03-05 15:04:27
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of David Mcken
> Sent: Tuesday, March 05, 2002 4:15 PM
> To: dev...@li...
> Subject: Re: [Dev-C++] (no subject)
>
Sorry for the "corrections" but i have to. :)
> //Hello world in C
C++
> #include <iostream.h>
#include <iostream>
#include <cstdlib>
>
> int main()
> {
using namespace std;
> cout << "Hello World" << endl;
> system("PAUSE");
> return 0;
> }
>
> As you can see the structure is quite similar and thus when
> you decide to move up to C or C++ the jump is quite small
> (all you have to do is learn different syntax and functions).
> I regret to say that there are not many good books on store
> shelves but you can find quite a few good tutorials on the
> internet(or just write me for help).
>
> (P.S. sorry this was so long I just had to put in my two cents)
Then why not learn C++ directly?
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
|