From: Dr_I_Jones <Dr_...@ig...> - 2000-09-25 03:56:30
|
Hello people! I am Dr. Jones, from Brazil. I have programmed for +/- 1 year in QB4.5, one more year in VB5, and = since some time ago I try to begin programming in C/C++, Assembly or = Pascal. I think Assembly will have to wait until I got to learn one of = the other two, so C/C++ and Pascal remain. I have tried some Pascal compilers (like Turbo Pascal and Free Pascal), = but I have never got the compilers even to run a single "Hello, world!" = program. As for the C/C++ compilers, I have been more lucky. I have = tried Turbo C, Miracle C, Quincy (a nice C INTERPRETER, not a compiler), = and the great DJGPP, with RHIDE. I have got all them to work, and all = these are very good. (Although Turbo C was some strange to use, and = Miracle C seemed to be corrupted and did not work properly). And the = wonderful LCC-Win32 and V. But Dev-Cpp is the best and easiest to use = C/C++ compiler/IDE I've ever tried! Although I think DJGPP or Watcom (I = have never got this last, however) are more "powerful", or = "professional", and LCC-Win32 and V can (in my opinion) replace even = Microsoft Visual C, with its ability to create Windows GUI programs, no = one of them is easier to use than Dev-Cpp. As a new user to C/C++, this = is the best for me. And I see day by day that it is not just an "easy" = system to use, I feel more and more that I am going to use it = definitely. P. S.: Do you know of any tutor/sample program that can guide a VB = programmer into the great world of C/C++? I know up to now just the basic commands... |
From: J R <ray...@ya...> - 2000-10-02 20:35:07
|
i have a program that asks the user to enter some numbers, finds the answers and reports them. at the end i used the system("pause") function which asks the user to press a key and then it closes the program. Is there anyway to get the program to just keep returning to the beginning without having to restart it? Thanks --------------------------------- Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! |
From: Ioannis V. <jv...@at...> - 2000-10-02 22:24:07
|
int main() { while(1) { /* Your program */ } return 0; } Ioannis -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of J R Sent: Monday, October 02, 2000 10:35 PM To: dev...@li... Subject: [Dev-C++] (no subject) i have a program that asks the user to enter some numbers, finds the answers and reports them. at the end i used the system("pause") function which asks the user to press a key and then it closes the program. Is there anyway to get the program to just keep returning to the beginning without having to restart it? Thanks ---------------------------------------------------------------------------- -- Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! |
From: Mark P. <Mar...@bt...> - 2000-10-17 14:55:45
|
Hi, I have just started using devcpp4 and have successfully written some = basic programs. I am having a problem when executing programs. The = program runs but the window immediately closes after the program has = finished running and I cannot see the results of the program. Is there = anyway to keep the window open after the program has finished running. Thanks. |
From: Jason S. <jas...@at...> - 2000-10-17 19:12:00
|
Mark, At the end of the program under main, before return 0;, put in = getchar(). That'll require an input from the keyboard before any other = action will be taken, and in this case, shutting down the program. (Make sure to include iostream.h and stdlib.h) -Jason ----- Original Message -----=20 From: Mark Peers=20 To: dev...@li...=20 Sent: Tuesday, October 17, 2000 10:56 AM Subject: [Dev-C++] (no subject) Hi, I have just started using devcpp4 and have successfully written some = basic programs. I am having a problem when executing programs. The = program runs but the window immediately closes after the program has = finished running and I cannot see the results of the program. Is there = anyway to keep the window open after the program has finished running. Thanks. |
From: Saundra S. <Sch...@ho...> - 2000-10-17 23:44:14
|
As I've recently asked this question, I'll pass on the info I was = provided and which has worked for me.... quoted from Spiderman's response to my question: Include stdlib.h then at the end of your program write: = system("pause"); here is an example: #include <iostream.h> #include <stdlib.h> void main() { cout<<"Hello world!\n"; system("pause"); } ----- Original Message -----=20 From: Mark Peers=20 To: dev...@li...=20 Sent: Tuesday, October 17, 2000 7:56 AM Subject: [Dev-C++] (no subject) Hi, I have just started using devcpp4 and have successfully written some = basic programs. I am having a problem when executing programs. The = program runs but the window immediately closes after the program has = finished running and I cannot see the results of the program. Is there = anyway to keep the window open after the program has finished running. Thanks. |
From: <eri...@fr...> - 2000-10-26 12:25:11
|
Hi Has someone ever compiled the FOX toolkit library using the dev-c++ = environment ? The FOX web site said it could be done using the mingw32 = compiler, but I don't know if it could be done using the IDE. thanks Eric |
From: Shiva K. <sti...@ho...> - 2000-11-11 04:48:07
|
hi, i want to know how do i output to a text file thanx _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. |
From: lstar36 <ls...@fl...> - 2000-11-11 13:19:34
|
Here is a sample of one way towrite to a text file . There areseveral other ways. See your documentation. #include <stdio.h> #include <string.h> #include <stdlib.h> FILE *frw; void main(void); void main(void) { char save[51]; if ( (frw = fopen("fname.txt", "r")) == NULL){ puts("Can not open winning database"); exit(0); } strcpy(save, "Hello World"); fwrite(save, sizeof(save), 1, frw); } ----- Original Message ----- From: "Shiva Kissoon" <sti...@ho...> To: <dev...@li...> Sent: Friday, November 10, 2000 6:48 PM Subject: [Dev-C++] (no subject) > hi, > i want to know how do i output to a text file > thanx > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: lstar36 <ls...@fl...> - 2000-11-11 14:10:26
|
Corrected input: Sorry , in the first submission I forgot to put the "+" in the fopen statement. This allows both read & write. #include <stdio.h> #include <string.h> #include <stdlib.h> FILE *frw; void main(void); void main(void) { char save[51]; if ( (frw = fopen("fname.txt", "r+")) == NULL){ puts("Can not open winning database"); exit(0); } strcpy(save, "Hello World"); fwrite(save, sizeof(save), 1, frw); } ----- Original Message ----- From: "Shiva Kissoon" <sti...@ho...> To: <dev...@li...> Sent: Friday, November 10, 2000 6:48 PM Subject: [Dev-C++] (no subject) > hi, > i want to know how do i output to a text file > thanx > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: Ajay M. <aja...@ho...> - 2000-11-26 02:40:06
|
_____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |
From: Vany <va...@gl...> - 2000-11-26 21:04:53
|
Eu faco ou nao parte da lista???? |
From: ARI F. <ari...@ju...> - 2000-12-10 00:54:45
|
i keep on getting this error message C:\DEV-C_~1\BIN\ld.exe: cannot open crt2.o: No such file or directory |
From: Miguel N. da S. <mn...@ma...> - 2001-01-10 10:35:11
|
confirm 653397 |
From: venu g. v. n. M. <nag...@ho...> - 2001-01-10 12:38:21
|
confirm 736356 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |
From: Chris Y. <chr...@ya...> - 2001-01-11 15:29:02
|
Hi: I am trying to migrate a program written under Linux C, to compile & run = it under Windows. I am finding problems with the sockets libraries. (I = take it they are different). Can anybody tell me some about the socket = lib in dev C++.? Will the functions be different ? thanks chris |
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: 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: 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: ARI F. <ari...@ju...> - 2001-01-21 23:30:17
|
how can i cout 1 message and then another in the same place as the first? ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/tagj. |
From: Purohit P. J. <pra...@si...> - 2001-02-10 10:48:00
|
This is a request to all you folks please don't use HTML format e-mails since in the digest the tags remain as they are and reading becomes a problem and here we all discuss only programming problems so i don't think html formatting is at all required. thanks! |
From: Stein N. <tem...@of...> - 2001-03-01 11:58:37
|
Thanks for all your help, it's great! I've been reading toturials on MAX's site, and learned alot... but, what do I do if I want to make a cube that rotates like the earth? Like, around it self, and at the same time around some distant origin. Thanks a million! :) ------------- #define stone |
From: <Hun...@ao...> - 2001-03-02 20:08:50
|
confirm 968033 |
From: Matt M. <mcb...@ho...> - 2001-03-06 06:24:26
|
May I clarify my E-mail. I have tried to compile Sendmail-8.10.0 and Apache 1.3.19(Windows = version). Each time, Dev-C++ Complains It can't find the headers, even If I put = all headers in one directory or the \include dir in the root folder of = Dev-C++ |
From: Matt M. <mc...@ia...> - 2001-03-07 09:04:31
|
What this message is talking about is this earlyier message that I sent = below :I've been trying to compile Sendmail and Apache using Dev-:C++ and It's = been complaning that It can't find the headers. : How do I attach headers to Dev-C++ ----- Original Message -----=20 From: Matt McBride=20 To: dev...@li...=20 Sent: Wednesday, March 07, 2001 5:28 AM Subject: [Dev-C++] (no subject) May I clarify my E-mail. I have tried to compile Sendmail-8.10.0 and Apache 1.3.19(Windows = version). Each time, Dev-C++ Complains It can't find the headers, even If I put = all headers in one directory or the \include dir in the root folder of = Dev-C++ |