dev-cpp-users Mailing List for Dev-C++ (Page 733)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Ioannis V. <no...@ya...> - 2001-01-16 22:59:42
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of jag > Sent: Tuesday, January 16, 2001 1:33 PM > To: devc++ mail-list > Subject: [Dev-C++] problem calling functions > > > ----------------------------------------------------- > This email was delivered to you by the Free Internet, > a Business Online Group company. > > Join TFI at http://www.thefreeinternet.net - > the UK's premier 0800, free access ISP. > ----------------------------------------------------- > > Hi, can anyone tell me where i'm going wrong with my coding? The > code is at > the end of the email. It's a simple program to practice function > calls. I > want to enter either a number 1 or number 2 to call seperate functions. > When the functions are called it prints a simple message to say that the > function has been successfully called, i can n't get the program > to call the > functions however! Can anyone advise me why? > > thanks in advance > jag. > > #include <stdio.h> > #include <iostream.h> Bad attitude. :) Try to stick with C or C++ higher level constructs only. > int again; > int enteb; > void outpu(void); > void inpu(void); > > int main(int argc, char *argv[]) > > { > cout <<"monkey type (1) for function outpu (1) or (2) for function inpu"; > > cin >>enteb; > if (enteb == 1) > { > > outpu; It should be outpu(); > } > > if (enteb == 2) > { > inpu; inpu(); > } > cout <<"neither 1 or 2\n"; > cout <<"wait for a number and enter pressed"; > cin >> again; > > return 0; > } > void outpu(void) > { > > cout <<"calling function outpu "<<enteb; > > } > void inpu(int enteb) > { > > > cout <<"calling function inpu "<<enteb; > > } > ICQ #103968172 > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: timeridder <tim...@mi...> - 2001-01-16 18:54:40
|
The code is from the book C++ in 21 Days by Sams Pg. 86 Ex. 2 ---- Original Message ---- From: ala...@3n... To: dev...@li..., Subject: RE: Regarding weird characters - for Garland Date: Tue, 16 Jan 2001 07:55:21 -0500 >Garland, > Did you get this code off this list or off some >other email? >Could it be that the extra junk is really a result of somebody >sending you >an email in HTML format? I`ve seen that in some emails on this >list, esp. >with the "3D." > >Alan > >From: "Garling G Beard III" <tim...@mi...> >Date: Mon, 15 Jan 2001 15:55:47 -0600 >Subject: [Dev-C++] C++ > >I came across a piece of code that looks funny, it has a n with ~ >above = >it. Ex. c = (anc) with ~ above the n. What does it mean, and how >do = >you put the ~ above the n. > > |
|
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: 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: 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: James G. <Jam...@Cl...> - 2001-01-16 13:39:42
|
Your function calls don't have () on the end. Even if you do not pass parameters to functions you must include empty () when calling the functions. The deceleration of inpu doesn't pass parameters but the definition requires an int. Regards, James. -----Original Message----- From: jag [mailto:won...@th...] Sent: Tuesday, January 16, 2001 11:33 AM To: devc++ mail-list Subject: [Dev-C++] problem calling functions ----------------------------------------------------- This email was delivered to you by the Free Internet, a Business Online Group company. Join TFI at http://www.thefreeinternet.net - the UK's premier 0800, free access ISP. ----------------------------------------------------- Hi, can anyone tell me where i'm going wrong with my coding? The code is at the end of the email. It's a simple program to practice function calls. I want to enter either a number 1 or number 2 to call seperate functions. When the functions are called it prints a simple message to say that the function has been successfully called, i can n't get the program to call the functions however! Can anyone advise me why? thanks in advance jag. #include <stdio.h> #include <iostream.h> int again; int enteb; void outpu(void); void inpu(void); int main(int argc, char *argv[]) { cout <<"monkey type (1) for function outpu (1) or (2) for function inpu"; cin >>enteb; if (enteb == 1) { outpu; } if (enteb == 2) { inpu; } cout <<"neither 1 or 2\n"; cout <<"wait for a number and enter pressed"; cin >> again; return 0; } void outpu(void) { cout <<"calling function outpu "<<enteb; } void inpu(int enteb) { cout <<"calling function inpu "<<enteb; } ICQ #103968172 _______________________________________________ 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: 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: <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: Frazell T. <fr...@fl...> - 2001-01-16 13:10:19
|
Im 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 Im still a beginner so I as if what
Im 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 }
|
|
From: James G. <Jam...@Cl...> - 2001-01-16 12:35:43
|
No. #include <string> is used because there is a file called string which is
part of the C++ standard. This is so that it doesn't get confused with
#include <string.h> which is part of the C standard and is contained in a
file called string.h. Try searching in your Dev-C++ directory and below for
string*.*.
Regards,
James.
-----Original Message-----
From: sushmita upadhaya [mailto:sus...@ya...]
Sent: Tuesday, January 16, 2001 11:34 AM
To: dev...@li...
Subject: RE: [Dev-C++] Problem with header files
If String is a file then include it by
#include"string.cpp" or the path which is where the
compiler will search the file string.
--- James Gordon <Jam...@Cl...> wrote:
> string.h is the C style string functions e.g.
> strcpy, strcmp etc.
> string is the C++ string class.
>
> #include <string>
>
> using namespace std;
>
> int main()
> {
> string myString = "Fred";
> myString += " woz ere!";
> ...
> }
>
> You can only use string if you are compiling a C++
> source (.cpp file).
>
> Regards,
>
> James.
>
>
>
> -----Original Message-----
> From: Brandon [mailto:bor...@ho...]
> Sent: Monday, January 15, 2001 11:57 PM
> To: dev...@li...
> Subject: [Dev-C++] Problem with header files
>
>
> Hey, I started messing with the syntax of header
> files and I found I can
> use 'string' instead of a character array when I use
> "#include <string>"
> instead of "#include <string.h>". Why is does this
> happen? What are the
> advantages, besides 'string', of using any header
> file without the .h
> extension?
> Thanks.
>
> Signed,
> Brandon
>
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * * * * * * *
> 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
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
_______________________________________________
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: jag <won...@th...> - 2001-01-16 12:29:16
|
----------------------------------------------------- This email was delivered to you by the Free Internet, a Business Online Group company. Join TFI at http://www.thefreeinternet.net - the UK's premier 0800, free access ISP. ----------------------------------------------------- sometimes a program will execute like that if the program does not have to wait for input from the user. A good way to remedy the problem is by putting an input command at the end of your program, but before the return 0; command like this:- cin >>name_of_variable; decalare the variable at the beggining of the program like this:- int name_of_variable; and include the header at the very beginning of the program:- #include <iostream.h> now the program will leave the window open until you press a number and enter key (because you declared the variable as an integer (int) if you press a character key you might get an error) jag ICQ #103968172 ----- Original Message ----- From: "Roosevelt Barros" <ult...@ho...> To: <dev...@li...> Sent: Monday, January 15, 2001 4:44 PM Subject: [Dev-C++] Dev c++ problem > Hi, > it seems like I have a problem with my compiler. Everytime I execute a > program, the program just flashes on and off the screen. How can I fix this > problem? thanks. > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: jag <won...@th...> - 2001-01-16 12:29:15
|
----------------------------------------------------- This email was delivered to you by the Free Internet, a Business Online Group company. Join TFI at http://www.thefreeinternet.net - the UK's premier 0800, free access ISP. ----------------------------------------------------- Hi, can anyone tell me where i'm going wrong with my coding? The code is at the end of the email. It's a simple program to practice function calls. I want to enter either a number 1 or number 2 to call seperate functions. When the functions are called it prints a simple message to say that the function has been successfully called, i can n't get the program to call the functions however! Can anyone advise me why? thanks in advance jag. #include <stdio.h> #include <iostream.h> int again; int enteb; void outpu(void); void inpu(void); int main(int argc, char *argv[]) { cout <<"monkey type (1) for function outpu (1) or (2) for function inpu"; cin >>enteb; if (enteb == 1) { outpu; } if (enteb == 2) { inpu; } cout <<"neither 1 or 2\n"; cout <<"wait for a number and enter pressed"; cin >> again; return 0; } void outpu(void) { cout <<"calling function outpu "<<enteb; } void inpu(int enteb) { cout <<"calling function inpu "<<enteb; } ICQ #103968172 |
|
From: sushmita u. <sus...@ya...> - 2001-01-16 11:33:41
|
If String is a file then include it by
#include"string.cpp" or the path which is where the
compiler will search the file string.
--- James Gordon <Jam...@Cl...> wrote:
> string.h is the C style string functions e.g.
> strcpy, strcmp etc.
> string is the C++ string class.
>
> #include <string>
>
> using namespace std;
>
> int main()
> {
> string myString = "Fred";
> myString += " woz ere!";
> ...
> }
>
> You can only use string if you are compiling a C++
> source (.cpp file).
>
> Regards,
>
> James.
>
>
>
> -----Original Message-----
> From: Brandon [mailto:bor...@ho...]
> Sent: Monday, January 15, 2001 11:57 PM
> To: dev...@li...
> Subject: [Dev-C++] Problem with header files
>
>
> Hey, I started messing with the syntax of header
> files and I found I can
> use 'string' instead of a character array when I use
> "#include <string>"
> instead of "#include <string.h>". Why is does this
> happen? What are the
> advantages, besides 'string', of using any header
> file without the .h
> extension?
> Thanks.
>
> Signed,
> Brandon
>
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * * * * * * *
> 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
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
|
|
From: Ioannis V. <no...@ya...> - 2001-01-16 11:23:03
|
#include <string> and string types belong to C++. #include <string.h>
belongs to C and of course to C++ too. In C++ you can use also #include
<cstring> instead of string.h but you must make use of namespaces.
Ioannis
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Brandon
Sent: Tuesday, January 16, 2001 1:57 AM
To: dev...@li...
Subject: [Dev-C++] Problem with header files
Hey, I started messing with the syntax of header files and I found I
can use 'string' instead of a character array when I use "#include <string>"
instead of "#include <string.h>". Why is does this happen? What are the
advantages, besides 'string', of using any header file without the .h
extension?
Thanks.
Signed,
Brandon
|
|
From: sushmita u. <sus...@ya...> - 2001-01-16 11:11:19
|
pointers don't make life difficult . it makes it challenging.after some more days down the line u will find that u are dreaming of pointers --- "Zero-c." <zer...@ot...> wrote: > I study to become softwaree enginner and i learn at > the moment C for the firdt semester!We learn to use > pointers but with the instructions of the proffesor > i didn't understand the very well.So please tell > what pointers do and why to use them even if they > make my life diffucult? > __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
|
From: sushmita u. <sus...@ya...> - 2001-01-16 11:11:04
|
pointers don't make life difficult . it makes it challenging.after some more days down the line u will find that u are dreaming of pointers --- "Zero-c." <zer...@ot...> wrote: > I study to become softwaree enginner and i learn at > the moment C for the firdt semester!We learn to use > pointers but with the instructions of the proffesor > i didn't understand the very well.So please tell > what pointers do and why to use them even if they > make my life diffucult? > __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
|
From: <jos...@ya...> - 2001-01-16 09:54:10
|
Hi,Just and addition. I'm Spanish. Yes, the letter ñ is from the Spanish alphabet and goes between the letter n and the letter o. The name of my country thus is "España" and I am "español".In Portuguese they have a similar sound although they represent it with the combination nh. Thus in Portuguese it'll be Espanha.In French and Italian the equivalent is the combination gn (Espagne and Spagna respectively).You can get the character ñ with ALT+164 and Ñ with ALT+165.--- Larry Hamilton escribió: > Minor correction, Portugal and Brazil speak Portugese, not> Spanish. I studied Spanish way back in high school, but have not> idea if Portugese uses ñ.> > Larry> > On 15 Jan 2001, at 17:50, SpiderMan wrote:> > > I don't know what relevance it has to C/C++ but the ñ> > (pronounced en yay), is a letter in the Spanish alphabet, so my> > guess would be that the code was written by someone from> > Spain, Mexico, Portugal, or another Spanish speaking country.> > 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 08:01:22
|
string.h is the C style string functions e.g. strcpy, strcmp etc.
string is the C++ string class.
#include <string>
using namespace std;
int main()
{
string myString = "Fred";
myString += " woz ere!";
...
}
You can only use string if you are compiling a C++ source (.cpp file).
Regards,
James.
-----Original Message-----
From: Brandon [mailto:bor...@ho...]
Sent: Monday, January 15, 2001 11:57 PM
To: dev...@li...
Subject: [Dev-C++] Problem with header files
Hey, I started messing with the syntax of header files and I found I can
use 'string' instead of a character array when I use "#include <string>"
instead of "#include <string.h>". Why is does this happen? What are the
advantages, besides 'string', of using any header file without the .h
extension?
Thanks.
Signed,
Brandon
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
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: Larry H. <lm_...@ya...> - 2001-01-16 06:16:11
|
Minor correction, Portugal and Brazil speak Portugese, not Spanish. I studied Spanish way back in high school, but have not idea if Portugese uses =F1. Larry On 15 Jan 2001, at 17:50, SpiderMan wrote: > I don't know what relevance it has to C/C++ but the =F1 > (pronounced en yay), is a letter in the Spanish alphabet, so my > guess would be that the code was written by someone from > Spain, Mexico, Portugal, or another Spanish speaking country. |
|
From: SpiderMan <Spi...@pr...> - 2001-01-16 01:58:36
|
I don't think there are any standard libraries for doing such = things. You could take a look at OpenGL and DirectX. You can find some = good tutorials for those at http://www.gamedev.net/gamedev.asp and = http://nehe.gamedev.net/ both are free. ----- Original Message -----=20 From: jag=20 To: devc++ mail-list=20 Sent: Monday, January 15, 2001 2:41 PM Subject: [Dev-C++] graphics standard include ----------------------------------------------------- This email was delivered to you by the Free Internet, a Business Online Group company. Join TFI at http://www.thefreeinternet.net - the UK's premier 0800, free access ISP. ----------------------------------------------------- are there any standard include libraries for graphics commands like = pixel drawing, lines and setting graphics modes? if so are there any sites = where i can get a bit of instruction from tutorials? ps.allegro does n't work on my system for some reason! ICQ #103968172 _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users -------------------------------------------------------------------------= ------- Link is external to the Privacyx.com System |
|
From: SpiderMan <Spi...@pr...> - 2001-01-16 01:50:59
|
I don't know what relevance it has to C/C++ but the =F1 (pronounced = en yay), is a letter in the Spanish alphabet, so my guess would be that = the code was written by someone from Spain, Mexico, Portugal, or another = Spanish speaking country. ----- Original Message -----=20 From: Garling G Beard III=20 To: Dev User Group=20 Sent: Monday, January 15, 2001 1:55 PM Subject: [Dev-C++] C++ I came across a piece of code that looks funny, it has a n with ~ = above it. Ex. c =3D (anc) with ~ above the n. What does it mean, and how = do you put the ~ above the n.=20 -------------------------------------------------------------------------= ----- Link is external to the Privacyx.com System |
|
From: Ramana K. <ra...@my...> - 2001-01-16 01:27:13
|
Check that you have linked all the correct libraries that are needed; this may be the problem. (To do that, go the Project->Project Options and put the filename in the box for extra include files/libraries) Ramana -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of softnasolutions-ltd.fsbusiness.co.uk Sent: Tuesday, January 16, 2001 7:06 AM To: dev...@li... Subject: [Dev-C++] wxwindows linker error Hi all, I have have install the wxwindows package and at least i now get a wxwindows template under GUI in Dev c++. However i tried to compile a Hello world program just as a test and i gives me errors under linker. Can some one tell me hoe to get that sorted. Please find below a piece of the error messages; c:\work area\c++ projs\lwxwin.o(.text+0x28):lwxwin.cpp: undefined reference to `wxFrame::sm_eventTable' c:\work area\c++ projs\lwxwin.o(.text+0x195):lwxwin.cpp: undefined reference to `wxTheApp' c:\work area\c++ projs\lwxwin.o(.text+0x40f):lwxwin.cpp: undefined reference to `wxFrameNameStr' c:\work area\c++ projs\lwxwin.o(.text+0x5f0):lwxwin.cpp: undefined reference to `wxMenuBar::wxMenuBar(void)' c:\work area\c++ projs\lwxwin.o(.text+0x636):lwxwin.cpp: undefined reference to `wxEmptyString' c:\work area\c++ projs\lwxwin.o(.text+0x81c):lwxwin.cpp: undefined reference to `wxFrame::SetMenuBar(wxMenuBar *)' c:\work area\c++ projs\lwxwin.o(.text+0x829):lwxwin.cpp: undefined reference to `wxStatusLineNameStr' c:\work area\c++ projs\lwxwin.o(.text+0x888):lwxwin.cpp: undefined reference to `wxFrameBase::CreateStatusBar(int, long, int, Thanks Nap |
|
From: Ramana K. <ra...@my...> - 2001-01-16 01:25:17
|
I dont know what the ~ means, but you can put it in by doing this: Start->Run->charmap->OK then find the ñ character, click select, then copy then paste it into your code. Ramana -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Garling G Beard III Sent: Tuesday, January 16, 2001 8:56 AM To: Dev User Group Subject: [Dev-C++] C++ I came across a piece of code that looks funny, it has a n with ~ above it. Ex. c = (anc) with ~ above the n. What does it mean, and how do you put the ~ above the n. |
|
From: Ramana K. <ra...@my...> - 2001-01-16 01:22:33
|
Im not too familiar with this topic, but I think the header files without
the .h are C++ standard or C-style or something like that (new headers) and
the ones with the .h are the old ones. You can use the new ones but if I
remember correctly (from this book I read) you are only meant to use them if
you are familiar with namespaces and use namespaces to access functions from
the header files.
Ramana
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Brandon
Sent: Tuesday, January 16, 2001 10:57 AM
To: dev...@li...
Subject: [Dev-C++] Problem with header files
Hey, I started messing with the syntax of header files and I found I can
use 'string' instead of a character array when I use "#include <string>"
instead of "#include <string.h>". Why is does this happen? What are the
advantages, besides 'string', of using any header file without the .h
extension?
Thanks.
Signed,
Brandon
|
|
From: Brandon <bor...@ho...> - 2001-01-16 00:07:10
|
Hey, I started messing with the syntax of header files and I found I =
can use 'string' instead of a character array when I use "#include =
<string>" instead of "#include <string.h>". Why is does this happen? =
What are the advantages, besides 'string', of using any header file =
without the .h extension?
Thanks.
Signed,
Brandon
|