dev-cpp-users Mailing List for Dev-C++ (Page 2)
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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
(6) |
2
(8) |
3
(7) |
4
(1) |
5
(5) |
6
|
7
(7) |
8
(5) |
9
(6) |
10
(11) |
11
(5) |
12
(12) |
13
(17) |
14
(3) |
15
(1) |
16
(6) |
17
(12) |
18
(7) |
19
(12) |
20
(12) |
21
(15) |
22
(19) |
23
(10) |
24
(15) |
25
(9) |
26
(16) |
27
(17) |
28
(16) |
|
|
|
From: Stein N. <tem...@of...> - 2001-02-27 18:34:06
|
Hey! How do I choose between OpenGL and Direct3D? I'd like to make cool looking 3D-games, which I can run on my PII 400mhz (32mb nVidia Graphics)! Thanks ------------- #define stone |
From: Jack D. <ja...@am...> - 2001-02-27 18:16:19
|
Add the line: system("PAUSE"); just before the return 0 and the program will pause so you can see what is going on. ----- Original Message -----=20 From: Gatis Zvejnieks=20 To: dev...@li...=20 Sent: Wednesday, December 27, 2000 9:18 AM Subject: [Dev-C++] help Hi, I have a big problem with Dev-c++. When I run programms Dev-c++ = minimazes and maximizes. The program is OK but I don't see anything. For = e4xample this program should print on screen "Hello World!" but it runs = and ends this program and it is sad that that the programm has 0 errors. = This is Windows application. What schould change some settings in = Dev-c++.=20 #include <iostream.h> int main() { cout << "Hello World!\n"; return 0; }=20 Gatis. |
From: Schedler, K. <Kur...@hi...> - 2001-02-27 18:11:35
|
The problem is that your program executes and ends so quickly that you probably just don't see it. try this: #include <iostream.h> #include <stdio.h> int main() { cout << "Hello" << endl; getchar(); return 0; } The call to getchar will make your program wait until you hit Enter before it terminates. -----Original Message----- From: Gatis Zvejnieks [mailto:gat...@ya...] Sent: Wednesday, December 27, 2000 8:19 AM To: dev...@li... Subject: [Dev-C++] help Hi, I have a big problem with Dev-c++. When I run programms Dev-c++ minimazes and maximizes. The program is OK but I don't see anything. For e4xample this program should print on screen "Hello World!" but it runs and ends this program and it is sad that that the programm has 0 errors. This is Windows application. What schould change some settings in Dev-c++. #include <iostream.h> int main() { cout << "Hello World!\n"; return 0; } Gatis. "The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. The sender's employer is not liable for any loss or damage arising in any way from this message or its attachments." |
From: Gatis Z. <gat...@ya...> - 2001-02-27 18:07:26
|
Hi, I have a big problem with Dev-c++. When I run programms Dev-c++ = minimazes and maximizes. The program is OK but I don't see anything. For = e4xample this program should print on screen "Hello World!" but it runs = and ends this program and it is sad that that the programm has 0 errors. = This is Windows application. What schould change some settings in = Dev-c++.=20 #include <iostream.h> int main() { cout << "Hello World!\n"; return 0; }=20 Gatis. |
From: Dyskolos <dys...@li...> - 2001-02-27 18:05:25
|
Hi all! I would like to know how to send a string or an entire file to the printer in C++ language. Could anyone help me? Dyskolos |
From: Purohit P. J. <pra...@si...> - 2001-02-27 04:10:46
|
Hi Friends I came to know about threads from your mails but Will some one please let me know how to create threads in C/C++ Pograms.. ----- Original Message ----- From: "Shaddow" <Sh...@ti...> To: <dev...@li...> Sent: 27 February, 2001 05:40 AM Subject: Re: [Dev-C++] threads > Simon R Hillman wrote: > > > Hi > > > > Can anyone please explain to me what C threads are? > > > > Cheers > > > > ---------------------- > > Simon R Hillman > > sim...@kc... > > Hiya Simon, > > Threads are essentially separate sequences of execution within a program > that (at least at a high level conceptually) can be operating at the > same time. In a more "traditional" program, for example, if you wanted > to read information to a file and display something else on the screen, > you had to do them one after the other. Either you read from the file > and then do the screen display or the other way around. This is because > a "traditional" kind of programming paradigm had a single "thread of > execution" in the program... Only one thing can happen at a time. > > With a multi-threaded application however, your program can do (again, > at least at a high level conceptually since a single processor can only > do one thing at a time) several things at the same time. You can, in > essence, start one thread and tell it to do the file manipulation while > another thread does the screen display. Think of this as the > application level equivalent of an operating system that permits > multiple users work at the same time. > > What multi-threading tricky is that the individual threads in a given > application all operate on the same process space... meaning that they > all share a significant resources. Thus, each thread has equal access > to global variables, static class members etc... > > Brian > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Shaddow <Sh...@ti...> - 2001-02-27 00:07:32
|
Simon R Hillman wrote: > Hi > > Can anyone please explain to me what C threads are? > > Cheers > > ---------------------- > Simon R Hillman > sim...@kc... Hiya Simon, Threads are essentially separate sequences of execution within a program that (at least at a high level conceptually) can be operating at the same time. In a more "traditional" program, for example, if you wanted to read information to a file and display something else on the screen, you had to do them one after the other. Either you read from the file and then do the screen display or the other way around. This is because a "traditional" kind of programming paradigm had a single "thread of execution" in the program... Only one thing can happen at a time. With a multi-threaded application however, your program can do (again, at least at a high level conceptually since a single processor can only do one thing at a time) several things at the same time. You can, in essence, start one thread and tell it to do the file manipulation while another thread does the screen display. Think of this as the application level equivalent of an operating system that permits multiple users work at the same time. What multi-threading tricky is that the individual threads in a given application all operate on the same process space... meaning that they all share a significant resources. Thus, each thread has equal access to global variables, static class members etc... Brian |
From: Stein N. <tem...@of...> - 2001-02-27 00:03:27
|
Hi! I've made a scene with a big box, in which you can walk around. On my friends machine (with a nVidia TNT2 Ultra 32mb AGP) it runs perfect in 1024x768 32bit with fog, and everything. But, on my machine (same CPU, but with a nVidia VANTA 32mb PCI) it runs REALLY slooow. Like, 5fps or so in 640x480 16bit NO fog and NO blending!! :( What's wrong?? Dosn't my graphics-card support OpenGL, or am I missing some drivers or what?? Thanks!! ------------- #define stone |
From: Schedler, K. <Kur...@hi...> - 2001-02-26 20:45:40
|
Why does the IDE sometimes name my resource file "rsrc.rc_" causing link errors because the linker is looking for "rsrc.rc"? krs. "The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. The sender's employer is not liable for any loss or damage arising in any way from this message or its attachments." |
From: Vassili <v.v...@bt...> - 2001-02-26 20:25:40
|
On my windows 98 I used, Settings>Control panel>Add/Remove Programs ----- Original Message ----- From: "palm tree nz" <pal...@ya...> To: <dev...@li...> Sent: Monday, February 26, 2001 2:52 PM Subject: [Dev-C++] How to Uninstall Dev-Cpp ? and mail suggestion > > Hey Guys, > > I am a beginner in C++ and have a question not related > to programming : > > 1)I recently upgraded to WinME and have errors with > Dev-Cpp, I am going to download it again but how do I > uninstall it first ? > > 2)this is more like a suggestion -- would it be > possible to edit these mailgroup messages a bit? I > would like to keep them for reference but some of the > messages have huge amounts of html formatting > information > > Thanks, > > Brett Richards > > __________________________________________________ > 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 > |
From: Vassili <v.v...@bt...> - 2001-02-26 20:21:25
|
I'm just finishing a course on 'C' before I move onto 'C++' and I've found that collecting functions into a library helps me stop repeating the same functions over and over again. As an example, lets say you create a function to uppercase the letters of a string, you really don't want to keep writing the same function over and over again in different programs. Not only that, it's easier to debug and read your code, changing things in the main() could cause other errors, but change the code in a function and you only affect the code in that function. So I would say listen to your friend, he's come across these problems like I have and is talking from experiance. ----- Original Message ----- From: "Jared Eckersley" <ja...@vo...> To: <dev...@li...> Sent: Sunday, February 25, 2001 11:03 PM Subject: Re: [Dev-C++] Programming Form/Style > Your friend is steering you in the right direction. You do not need to go > overboard and have everything in functions. As the programmer, it is up to > you to decide if a function can better suit the situation. The overall > concept to think about is code reuse. For example, think about a function > that adds 2 numbers. You could declare this function as a void and just > have it cout the result, or you could declare the function as an int and > have it return the result and do the necessary cout in the main. > - Jared > > At 03:10 PM 2/25/2001 -0700, you wrote: > >Hi, > > > > I am new to this list and very new to C++ and programming in > > general, and I am wondering: > > > > My friend, who is also learning C++, told me that it is bad > > programming form to declare class variables and functions public, which I > > can understand for the sake of reusability and simplicity. However, he also > >told me it was bad form to let Main() do too much work and that you should > >send as many tasks as you can to different functions... Is this > >so? Why? I can see why for more complex functions, but what about really > >simple things. For example, should I even write simple output functions > >to keep any "cout" lines out of main()? > > > > > > Thanks for any help, > > Trevor Cook > > > > > >_______________________________________________ > >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 > |
From: Robert D B. <lon...@ju...> - 2001-02-26 19:58:15
|
Very hard to establish what the problem might be given only "snippets". However, I see one error : printf ("enter your choice: \n); // no closing " before new line. I would think the compiler would flag this as a parse error. If you will attach your code we will be happy to check it. regards lonestar36 On Mon, 26 Feb 2001 14:32:58 -0500 "Mitchell, Tamra (HNA)" <Tam...@hj...> writes: I believe this answer has circulated once but will someone respond again. My mailbox fills up quickly so I had to delete the inquiry. When I compile and run my program I get what seems to be an error message that indicates undefined references to instructions. Here are snippets of my code that refer to instructions (only) void instructions(void); /* prototype for instructions */ instructions(); /* display the menu */ printf("? "); scanf("%d", &choice); switch(choice) default: printf("Invalid choice. \n"); instructions(); break; /* Print instructions */ void instructions (void) { printf ("enter your choice: \n); } I can't see the error can any one help? Thanks Tamra Y. Mitchell Heinz North America Operating Systems Analyst (412) 237-5232 Work (412) 996-9078 Cell Phone |
From: Robert D B. <lon...@ju...> - 2001-02-26 19:52:27
|
Very hard to establish what the problem might be given only "snippets". However, I see one error : printf ("enter your choice: \n); // no closing " before new line. I would think the compiler would flag this as a parse error. If you will attach your code On Mon, 26 Feb 2001 14:32:58 -0500 "Mitchell, Tamra (HNA)" <Tam...@hj...> writes: I believe this answer has circulated once but will someone respond again. My mailbox fills up quickly so I had to delete the inquiry. When I compile and run my program I get what seems to be an error message that indicates undefined references to instructions. Here are snippets of my code that refer to instructions (only) void instructions(void); /* prototype for instructions */ instructions(); /* display the menu */ printf("? "); scanf("%d", &choice); switch(choice) default: printf("Invalid choice. \n"); instructions(); break; /* Print instructions */ void instructions (void) { printf ("enter your choice: \n); } I can't see the error can any one help? Thanks Tamra Y. Mitchell Heinz North America Operating Systems Analyst (412) 237-5232 Work (412) 996-9078 Cell Phone |
From: Stein N. <tem...@of...> - 2001-02-26 19:48:13
|
Hi there! I'm working with some OpenGL, as some of you might know. I really would like to make some kind of a Doom-like engine. But, how do I make cameras? I've heard that cameras in OpenGL is slow, and that you therefor should rotate and move the entire scene. Can that be true?? Is it possible to rotate an entire Matrix? Like, glMatrix(); Thanks alot! :) ------------- #define stone |
From: Mitchell, T. (HNA) <Tam...@hj...> - 2001-02-26 19:38:58
|
I believe this answer has circulated once but will someone respond again. My mailbox fills up quickly so I had to delete the inquiry. When I compile and run my program I get what seems to be an error message that indicates undefined references to instructions. Here are snippets of my code that refer to instructions (only) void instructions(void); /* prototype for instructions */ instructions(); /* display the menu */ printf("? "); scanf("%d", &choice); switch(choice) default: printf("Invalid choice. \n"); instructions(); break; /* Print instructions */ void instructions (void) { printf ("enter your choice: \n); } I can't see the error can any one help? Thanks Tamra Y. Mitchell Heinz North America Operating Systems Analyst (412) 237-5232 Work (412) 996-9078 Cell Phone |
From: Schedler, K. <Kur...@hi...> - 2001-02-26 17:30:55
|
I can't get any GLUT tutorials to compile in Dev-C++. I've tried downloading libraries and dlls and headers and putting them in all the right places. I specify -lglut32 in the Project Options dialog, and I've even tried creating glut32.def files following instructions from various places I've found using Google. No matter what I try, I keep getting "undefined reference to glutMainLoop@0" , etc , etc , etc... But if I copy the code over to my cygwin installation, I can compile from the command line there and everything works fine. Any tips? -----Original Message----- From: Max [mailto:ma...@va...] Sent: Saturday, February 24, 2001 11:34 AM To: dev...@li... Subject: Re: [Dev-C++] Glaux.dll? > I'm (also) trying to make some nice texturing in OpenGL, but when i compiles, > and try to run my program windows says "Missing *.dll; Glaux.dll not found!". > Where do I get that? > > PS: I'm using a Voodoo 2 Graphics Card... if that's to any use :) That's CERTAINLY NOT OF ANY USE!!! ;) First of all, it's not so simple to get HW accel. under VooDoo1/2. VooDoo cards have their standalone OGL drivers, so glaux doesn't work with them. You need your own texture loading routine. I'm just working on a texturing tutorial, so check it out in few days at www.vault13.cjb.net Max _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users "The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. The sender's employer is not liable for any loss or damage arising in any way from this message or its attachments." |
From: Robert D B. <lon...@ju...> - 2001-02-26 15:41:52
|
If you divide time up into small piece's like threads in a piece of cloth you will understand threads concept. A program runs along a time line. (thread) The OS controls the scanning of the threads. You can set threads in c++ to describe how your time line should run. Not a very good explanation . Hope it helps. lonestar36 On Mon, 26 Feb 2001 15:32:38 +0000 Simon R Hillman <sim...@kc...> writes: > Hi > > Can anyone please explain to me what C threads are? > > Cheers > > ---------------------- > Simon R Hillman > sim...@kc... > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Simon R H. <sim...@kc...> - 2001-02-26 15:31:44
|
Hi Can anyone please explain to me what C threads are? Cheers ---------------------- Simon R Hillman sim...@kc... |
From: palm t. nz <pal...@ya...> - 2001-02-26 14:51:07
|
Hey Guys, I am a beginner in C++ and have a question not related to programming : 1)I recently upgraded to WinME and have errors with Dev-Cpp, I am going to download it again but how do I uninstall it first ? 2)this is more like a suggestion -- would it be possible to edit these mailgroup messages a bit? I would like to keep them for reference but some of the messages have huge amounts of html formatting information Thanks, Brett Richards __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
From: Robert D B. <lon...@ju...> - 2001-02-26 14:30:57
|
Hay works great. Thanks On Mon, 26 Feb 2001 14:34:55 +0100 Bolek =?iso-8859-1?Q?Vran=FD?= <vr...@pa...> writes: > Hi, > > I have never used the Dev-CPP debugger or debugging facilities so I > am > sorry if this is a nonsense. However, it might be the compiler uses > registers for i and f. Try to get addresses of these variables, for > example > > #include <stdio.h> > #include <stdlib.h> > #include <string.h> > #include <conio.h> > > int main(int argc, char *argv[]) > { > float f; > char string[34], ch; > int i; > > scanf( "%lf %d", &f, &i); /* ADD THIS LINE */ > f = 2653.1456; > itoa((long)f,string,10); > i = strlen(string); > printf("Decimal point is %d places", i); > i = i*10; > f = f/i; > > return 0; > } > > This should force the compiler to create them in memory. > -- > ============================================================ > Ing. Boleslav Vrany > Stanice techniku DDM hl. m. Prahy > Pod Juliskou 2a > Praha 6 - Dejvice > 16000 > Czech Republic > > tel. (420 2) 243 10 240 > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Schedler, K. <Kur...@hi...> - 2001-02-26 14:11:15
|
I tried this and the application totally hosed Windows 95 and I had to reboot. Is this common? All the OpenGL tutorials I've used off the web work ok in windowed mode, but fullscreen messes everything up. Well, they almost always work ok, sometimes closing an OpenGL program causes Explorer to crash and everything in my system tray disappears. -----Original Message----- From: EID...@ao... [mailto:EID...@ao...] Sent: Friday, February 23, 2001 5:33 PM To: dev...@li... Subject: Re: [Dev-C++] OpenGL in fullscreen-mode? Change CDS_FULLSCREEN to 4. "The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. The sender's employer is not liable for any loss or damage arising in any way from this message or its attachments." |
From: Bolek <vr...@pa...> - 2001-02-26 13:33:19
|
Hi, I have never used the Dev-CPP debugger or debugging facilities so I am sorry if this is a nonsense. However, it might be the compiler uses registers for i and f. Try to get addresses of these variables, for example #include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> int main(int argc, char *argv[]) { float f; char string[34], ch; int i; scanf( "%lf %d", &f, &i); /* ADD THIS LINE */ f = 2653.1456; itoa((long)f,string,10); i = strlen(string); printf("Decimal point is %d places", i); i = i*10; f = f/i; return 0; } This should force the compiler to create them in memory. -- ============================================================ Ing. Boleslav Vrany Stanice techniku DDM hl. m. Prahy Pod Juliskou 2a Praha 6 - Dejvice 16000 Czech Republic tel. (420 2) 243 10 240 |
From: Zimoro <Zi...@ya...> - 2001-02-26 12:04:13
|
hello, ASM is abbreviation for Assembly language the most low level language. I = want to use assembly language in c++ code like the code source i had = attached. bye, Zimoro (sorry, i don't speak english very well :o( ----- Original Message -----=20 From: Ramana Kumar=20 To: dev...@li...=20 Sent: Monday, February 26, 2001 8:15 AM Subject: RE: [Dev-C++] asm with dev-c++ ?? Je parle un peu francais. Je ne sais pas le asm. Tu parles anglais? Qu'est le asm ? -----Original Message----- From: dev...@li... = [mailto:dev...@li...]On Behalf Of Nicolas = Salles Sent: Monday, 26 February 2001 9:01 AM To: Dev-Cpp Subject: [Dev-C++] asm with dev-c++ ?? =20 salut, kk'un aurait d=E9j=E0 utilis=E9 de l'asm dans du code ? j'ai trouv=E9 un site sur la prog graphique qui a du code en c pour = que =E7a soit bien structur=E9 et sinon c l'asm qui domine. Mais je ne parviens pas =E0 utiliser l'asm ;o(( Quelqu'un pourrait-il me donner des infos ou sources, ou m'indiquer = une url pour plus d'infos. Merci, =20 Zimoro =20 exemple: =20 void Mode13h() { asm { mov ah, 00h mov al, 13h int 10h } } tir=E9 de: http://www.multimania.com/codearena/13h.htm |
From: Ramana K. <ra...@my...> - 2001-02-26 07:11:53
|
Je parle un peu francais. Je ne sais pas le asm. Tu parles anglais? Quest le asm ? -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Nicolas Salles Sent: Monday, 26 February 2001 9:01 AM To: Dev-Cpp Subject: [Dev-C++] asm with dev-c++ ?? salut, kk'un aurait déjà utilisé de l'asm dans du code ? j'ai trouvé un site sur la prog graphique qui a du code en c pour que ça soit bien structuré et sinon c l'asm qui domine. Mais je ne parviens pas à utiliser l'asm ;o(( Quelqu'un pourrait-il me donner des infos ou sources, ou m'indiquer une url pour plus d'infos. Merci, Zimoro exemple: void Mode13h() { asm { mov ah, 00h mov al, 13h int 10h } } tiré de: http://www.multimania.com/codearena/13h.htm |
From: Jared E. <ja...@vo...> - 2001-02-25 23:05:12
|
Your friend is steering you in the right direction. You do not need to go overboard and have everything in functions. As the programmer, it is up to you to decide if a function can better suit the situation. The overall concept to think about is code reuse. For example, think about a function that adds 2 numbers. You could declare this function as a void and just have it cout the result, or you could declare the function as an int and have it return the result and do the necessary cout in the main. - Jared At 03:10 PM 2/25/2001 -0700, you wrote: >Hi, > > I am new to this list and very new to C++ and programming in > general, and I am wondering: > > My friend, who is also learning C++, told me that it is bad > programming form to declare class variables and functions public, which I > can understand for the sake of reusability and simplicity. However, he also >told me it was bad form to let Main() do too much work and that you should >send as many tasks as you can to different functions... Is this >so? Why? I can see why for more complex functions, but what about really >simple things. For example, should I even write simple output functions >to keep any "cout" lines out of main()? > > > Thanks for any help, > Trevor Cook > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |