dev-cpp-users Mailing List for Dev-C++ (Page 732)
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: Alan T. <ala...@3n...> - 2001-01-17 23:28:35
|
I have a program that can run either in user entry mode (prompts
user) or in automatic mode ( no user entries --- I just schedule it with
Windows Task Scheduler). It runs in automatic mode when given a command
line parameter of "auto."
Question: Is there some simple way to have it use the console in
user entry mode but have it not use the console (run in background) when it
is running in automatic mode?
Thanks, Alan
|
|
From: Frazell T. <fr...@fl...> - 2001-01-17 23:21:24
|
I was referred to use this instead of if / else statements Im trying to understand how to use it I have read the article on MSDN I ask can someone write a small program that will get the variable from the keyboard and a small action for instance if you enter 1 it says the number 1 detected or Z would say the letter z detected as when I see this in use I can fully understand how to use it thanks :O) |
|
From: A. Jans-B. <jan...@wx...> - 2001-01-17 21:48:05
|
sushmita upadhaya 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?
In many cases you would like to use "normal" variables like:
Example:
int x;
However, in practice it is often difficult to predict the number of
variables you will have to proces. How many lines will there be in a
book that you scan? How many record are there in an email addreslist?
In such cases you may want to work with "dynamic" memory. Then you need
those pointers to be able to find and retreive the data in/from the
computers memory.
Another advantage of pointers:
In stead of moving huge amounts of data in function calls it is often
faster to use a pointer to the data.
Example:
int x[100000];
int main() { my_function(x); } // Huge memory and time needed.
int main() { my_function(&x); } // Very fast and efficient
Hope this helps
|
|
From: A. Jans-B. <jan...@wx...> - 2001-01-17 21:33:26
|
I want to create a 3D modeller in C++ and I am looking for existing material to setup 3D classes (objects like spheres, planes, torusses, etc.) and 3D scenes (with camera's, lights, etc). Any "links" available? |
|
From: <Joh...@ao...> - 2001-01-17 21:00:50
|
can any one help me i'm just starting learing about c/c++ en use the compiler dev c++ and I'm getting error stdprn undeclared!!!!!!!! |
|
From: tayo o. <ta...@ya...> - 2001-01-17 20:28:22
|
Please can some one help me: Who knows an excellent text book for Data structures via C++, or a good web site that i can use to learn data structures via C++. Thanks. tayo odesanya. __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
|
From: Matt H. <wm...@ne...> - 2001-01-17 18:02:24
|
Hi Devik,
I copied and pasted your code below and compiled it using Dev-C++ and =
there were no errors found. It compiled fine but I could not run it =
successfully (which must be a problem with my compiler - as all my =
programs have compiled fine but refuse to run). Best of luck!=20
----- Original Message -----=20
From: Devik=20
To: dev...@li...=20
Sent: Wednesday, January 17, 2001 10:56 AM
Subject: [Dev-C++] (no subject)
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<iostream.h>
void main()
{
int c,a=3D1,b=3D1,newno,n;
cout<<"Enter the value of n ";
cin>>n;
cout<<"\nThe N Fibonacci Numbers are \n";
cout<<a<<" "<<b<<" ";
for(c=3D2;c<=3Dn;c++)
{
newno=3Da+b;
a=3Db;
b=3Dnewno;
cout<<newno<<" "; }
}
|
|
From: Ian W. <lak...@ho...> - 2001-01-17 18:02:15
|
hi there, i've got two questions if someone could answer them for me. does anyone know: 1) how to do a function that only gives a limited time for you to answer a question? 2) how to produce a tone through the pc's internal speaker? it would be much appreciated if anyone could shed some light on this. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |
|
From: Whitfield, E. <Edw...@na...> - 2001-01-17 17:26:40
|
I have been trying to use a dll (QCard32.DLL) to create a simple card program with Dev-C++ 4.1. I have added the qcard32.lib file to the Project Options -- and included the qcard32.h header file in the main.cpp file. I have added a menu item to try and show one card -- including two function calls: one to initialize the deck and the other to deal one card. Everything compiles and links just fine -- the dll is located with the executable and in the //windows/system directory. But when I try to execute the program, I get the following dialog box messages: "The cardtest.exe file is linked to missing export QCARD32.DLL:." and "cardtest.exe A device attached to the system is not functioning." I know that the DLL and LIB files are okay. I have used them in a VB5 application and with XBasic. Does anyone have any suggestions or advice on what I am doing wrong? You help is appreciated. |
|
From: Devik <dev...@ya...> - 2001-01-17 17:04:35
|
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<iostream.h>
void main()
{
int c,a=3D1,b=3D1,newno,n;
cout<<"Enter the value of n ";
cin>>n;
cout<<"\nThe N Fibonacci Numbers are \n";
cout<<a<<" "<<b<<" ";
for(c=3D2;c<=3Dn;c++)
{
newno=3Da+b;
a=3Db;
b=3Dnewno;
cout<<newno<<" "; }
}
|
|
From: Roosevelt B. <ult...@ho...> - 2001-01-17 16:56:00
|
I have recently purchased a c++ book...and it asked to do the following program: A perfect number is a positive integer such that the sum of the proper divisors equals to the number. Thus, 28=1+2+4+7+14 is a perfect number. If the sum of the divisors is less than the number, it is deficient. If the sum exceeds the number, it's abundant. a) Write an interactive program that allows the user to enter a positive integer and then displays the result, indicating whether the number entered is perfect, deficient, or abundant. b) Wrtie another interactive program that allows the user to enter a positive integer N and then displays all perfect numbers less than or equal to N. *Program should allows the user the option of continuing or quitting* Any help would be appreciated...thanks! _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com |
|
From: Matt H. <wm...@ne...> - 2001-01-17 14:08:48
|
1. Click on "New" 2. Click on "Windows App." "C++ Project" 3. Click on "Save" <Project Name> as Dev-C++ project file (*.dev) 4. Receive Error Message as follows: Error - Could not create Code Completion list file. 5. Click "OK" 6. Receive Error Message as follows: Error - Could create default code file. Please help - Thank you. |
|
From: <jos...@ya...> - 2001-01-17 13:40:50
|
> --- Ramana Kumar wrote: > > I have the book, this n with a ~ above it is a typo, > > it doesn't mean > > anything (in the context of the exercise). I beg your pardon! "this n with a ~ above it" is the 25th letter of the Spanish alphabet, and means to me exactly the same as any other letter of the alphabet could. Has the code any relation with Spanish? I mean, is there a list of names or something like that? If not may be they used it for other purposes. > > >From: "Garling G Beard III" > > > > >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. Just type ALT+164 and you'll get the character 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-17 12:07:25
|
You didn't post to me, you posted to the Dev-C++ list, of which I am a member. Regards, James. -----Original Message----- From: sushmita upadhaya [mailto:sus...@ya...] Sent: Wednesday, January 17, 2001 6:06 AM To: dev...@li... Subject: RE: [Dev-C++] problem calling functions thank u for the instructions.I will always remember it but i don't remember whthr i have ever psted such problem to u .any way thanks --- James Gordon <Jam...@Cl...> wrote: > 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 > > > _______________________________________________ > 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: sushmita u. <sus...@ya...> - 2001-01-17 06:05:46
|
thank u for the instructions.I will always remember it but i don't remember whthr i have ever psted such problem to u .any way thanks --- James Gordon <Jam...@Cl...> wrote: > 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 > > > _______________________________________________ > 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: 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: sushmita u. <sus...@ya...> - 2001-01-17 05:25:43
|
this error occurs when one tries to increment the initial address of an array.this comes under addressingexeption. --- Alan Thomas <ala...@3n...> wrote: > Does anyone else ever get an error message "Access > violation at address > 004E52EA in module 'DEVCPP.EXE.' Read of address > 012DC063." when > compiling? When I get this error, sometimes I have > to exit Dev-C++ and then > start it up again. I am using version 4.01. > > > Thanks, Alan > > > > > > > > > _______________________________________________ > 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: sushmita u. <sus...@ya...> - 2001-01-17 05:05:18
|
data structure through c++ by tanenbaum. --- tayo odesanya <ta...@ya...> wrote: > Please can some one help me: Who knows an > excellent > text book for Data structures via C++, or a good > web > site that i can use to learn data structures via > C++. > Thanks. > tayo odesanya. > > > > > > > --- Ioannis Vranos <no...@ya...> wrote: > > > -----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 > > > > > > > _______________________________________________ > > 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 __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
|
From: sushmita u. <sus...@ya...> - 2001-01-17 05:02:40
|
you can refer c++ book by lafore,thinking in c++ by bruce ekel,c++ book by stroustroup,complete reference c++ by herbert shield. --- Ramana Kumar <ra...@my...> wrote: > I have the book, this n with a ~ above it is a typo, > it doesn't mean > anything (in the context of the exercise). > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On > Behalf Of timeridder > Sent: Wednesday, January 17, 2001 5:54 AM > To: ala...@3n...; > dev...@li... > Subject: [Dev-C++] RE: Regarding weird characters - > for Garland > > 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. > > > > > > > _______________________________________________ > 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 __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
|
From: Alan T. <ala...@3n...> - 2001-01-17 02:33:57
|
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 =3D (anc) with ~ above the n. What does it mean, and how do =
you put the ~ above the n.=20
|
|
From: Alan T. <ala...@3n...> - 2001-01-17 02:33:40
|
Does anyone else ever get an error message "Access violation at address 004E52EA in module 'DEVCPP.EXE.' Read of address 012DC063." when compiling? When I get this error, sometimes I have to exit Dev-C++ and then start it up again. I am using version 4.01. Thanks, Alan |
|
From: Alan T. <ala...@3n...> - 2001-01-17 02:29:03
|
Jag,
I think you need "()" when you call your function, even if the
parameter is a void. Better yet, why don`t you pass your variables to your
functions? It is best to avoid global variables whenever possible.
Better naming of things (functions, variables, etc.) would make your
program more readable. There are also better styles for checking the
validity of input. For example, how about the following rewrite of your
program....
#include <stdio.h>
#include <iostream.h>
#include <stdlib.h>
void function_1 (int int_in);
void function_2 (int int_in);
int main(int argc, char *argv[])
{
int input;
int Validated_Input = false;
while (!(Validated_Input))
{
cout <<"monkey type (1) for function 1 or (2) for function 2: ";
cin >> input;
if ((input == 1) || (input == 2))
Validated_Input = true;
else
{
Validated_Input = false;
cout << endl << " Invalid entry. Try again." << endl;
}
}
if (input == 1)
function_1(input);
else if (input == 2)
function_2(input);
system("PAUSE");
return 0;
}
void function_1 (int int_in)
{
cout <<"calling function "<<int_in << endl;
}
void function_2 (int int_in)
{
cout <<"calling function "<<int_in << endl;
}
> From: "jag" <won...@th...>
> Date: Tue, 16 Jan 2001 11:32:47 -0000
> Subject: [Dev-C++] problem calling functions
>
> 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.
|
|
From: Alan T. <ala...@3n...> - 2001-01-17 02:28:54
|
You probably added at literally at the end. Add it just before the closing bracket (}). From: "Frazell Thomas" <fr...@fl...> Subject: RE: [Dev-C++] (no subject) Date: Tue, 16 Jan 2001 08:49:42 -0500 Also adding the return 0; gave me another error parse error before return |
|
From: Ramana K. <ra...@my...> - 2001-01-17 02:25:53
|
I have the book, this n with a ~ above it is a typo, it doesn't mean anything (in the context of the exercise). -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of timeridder Sent: Wednesday, January 17, 2001 5:54 AM To: ala...@3n...; dev...@li... Subject: [Dev-C++] RE: Regarding weird characters - for Garland 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. > > _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: tayo o. <ta...@ya...> - 2001-01-17 02:22:50
|
Please can some one help me: Who knows an excellent text book for Data structures via C++, or a good web site that i can use to learn data structures via C++. Thanks. tayo odesanya. --- Ioannis Vranos <no...@ya...> wrote: > > -----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 > > > > _______________________________________________ > 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/ |