dev-cpp-users Mailing List for Dev-C++ (Page 648)
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: I.Ali <ial...@ya...> - 2001-11-12 00:24:41
|
Hi All, I am new to programming and decided that I would either learn Java or C++, I went with C++ as this is in greater demand and is a more powerful and popoular langauge than Java, (and pays more too!). Have I done the right thing in beginning to learn C++? Also can anyone recommend the best way to learn C++? Thanks all! Ali __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com |
|
From: Jason H. <jas...@bt...> - 2001-11-12 00:12:27
|
I assume that add_back() adds a node to the end of the list. Yes?
The following function (untested) should do the trick, but first here's the
sequence of events you need to go through to do it. It's best to write out
in plain english what you want to happen before writing any code. It helps
prevent errors and makes you sure of what you are doing.
1. Create new node.
2. Make new node an end node (by making next NULL in your case)
3. Put data into new node.
4. Get the list (in your case the list pointer to the first node in the
list)
5. If no list exists then make new node the first one and goto 8 (exit).
(in other words make sure list isn't NULL)
6. Find the end of the list (you didn't do that in your version)
7. Link new node onto end of list.
8. Return new node (optional, but nice), or NULL for failure.
Most of that is pretty basic, except for number 6, which needs a little more
detail.
1. Get start node in the list and make it the current one.
2. If there is no next node in current, goto 5.
3. Get the next node and make it currant.
4. Goto 2.
5. The current node is the end node.
These two numberd lists are known as Algorithms (you probably already know
this), which is a description of a sequence of events. From these you can
draw a couple of flowcharts showing the sequence of events graphically. You
can then take them and convert them to some form of pseudo code, where you
add known structures to the code i.e. if-then-else, for-next, while-do, and
repeat-until (do-while in C/C++) loops, and such. I'll skip all that. Also
note that when you get a case of expanding out a statement in one algorithm
into another algorithm, then that new algorithm is a candidate for being
made into a function of it's own. I'm sorry if this is all old stuff to you,
but I felt you needed to understand algorithms and linked-lists better. What
you are doing shows that you aren't quite certain of what is supposed to
take place.
The code I'd make from that is as follows:
node* add_back(node *&list, int info)
// note that I'm returning a pointer
{
node *end = new node;
/* if new fails it should throw an exception and exit the program
but that depends upon how up to date the compiler is
older compilers will make the pointer NULL */
if(end == NULL)
return NULL; // failure
// Initialise end
end->next = NULL;
end->data = info;
node *skip = list; // get start point
if(skip != NULL)
{
// find current end of list
while(skip->next != NULL)
skip = skip->next; // number 6
skip->next = end; // add new end node
}
else
{
// no nodes so make list the new node
list = end;
}
// All done, just return end.
return end;
}
I hope that helps. The main thing you forgot was that you needed to find the
end of the list. I recomend that you learn more about how a linked list
works. The usual examples involve diagrams with boxes and arrows.
Jason.
PS: Yet again I've written an essay when I didn't need to. I hope all you
people apreciate how much free time I have on my hands at the moment :-D
----- Original Message -----
From: "chromatonus 712" <chr...@ho...>
To: <dev...@li...>
Sent: Sunday, November 11, 2001 9:54 PM
Subject: [Dev-C++] adding nodes to the end of linked list
> hi, my add_back function only adds one number to the list, it has to add
> nodes until i display the list (not included) , problem with the else
> section and probably more,
>
> thanks!!
>
> struct node
> {
> int data;
> node *next;
> };
>
> node add_back(node *&list, int info)
> {
> node *skip = new node;
> node *tail = new node;
> if (list == NULL)
> {
> tail -> data = info;
> tail -> next = NULL;
> list = tail;
> skip = tail;
> delete tail; // probably wrong...
> }
> else
> {
> tail -> data = info;
> tail -> next = NULL;
> skip -> next = tail;
> skip = tail;
> delete tail;
> }
> }
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: chromatonus 7. <chr...@ho...> - 2001-11-11 21:56:27
|
please help...the project option in the toolbar is disabled and i don't know how to use those functions even after i included conio.h in the headers...thanks! _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: chromatonus 7. <chr...@ho...> - 2001-11-11 21:54:41
|
hi, my add_back function only adds one number to the list, it has to add
nodes until i display the list (not included) , problem with the else
section and probably more,
thanks!!
struct node
{
int data;
node *next;
};
node add_back(node *&list, int info)
{
node *skip = new node;
node *tail = new node;
if (list == NULL)
{
tail -> data = info;
tail -> next = NULL;
list = tail;
skip = tail;
delete tail; // probably wrong...
}
else
{
tail -> data = info;
tail -> next = NULL;
skip -> next = tail;
skip = tail;
delete tail;
}
}
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
|
|
From: Ioannis V. <no...@ya...> - 2001-11-11 21:33:09
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf=20
> Of Mihkel Pajusalu
> Sent: Sunday, November 11, 2001 8:43 PM
> To: dev...@li...
> Subject: [Dev-C++] Math error
>=20
>=20
> Hello,
>=20
> I wrote a very simple programme to test function
> sin():
>=20
> #include <stdio.h>
> #include <math.h>
>=20
> void main()
> {
> float f=3D1.0f;
> printf("The sine for %f is %f",f,sin(f));
> =20
> }
> , but it printed on the screen
> "The sine for 1.00000 is 0.841471".
> Then I tried to calculate sine for 1.0000 on a
> calculator and I found that sine for 1 is 0.017452...
>=20
> What am I doing wrong?
> (I'm sorry for the spelling mistakes)
Yeah, now you said it struck strange to me too. Then i discovered that
the argument is in rads... Now i just saw that it writes this fact in my
K&R too (last sentence).
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
|
|
From: Ioannis V. <no...@ya...> - 2001-11-11 21:31:26
|
http://shop.borland.com There is also a trial version of the C++ Builder 5 IDE at: http://www.borland.com/bcppbuilder/trial5/trialdownload.html See the light! :) Also there is a free download of the C++ Builder 5 compiler only, which is somewhat boring to setup manually. Prefer the trial download. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of chromatonus 712 > Sent: Sunday, November 11, 2001 11:20 PM > To: dev...@li... > Subject: [Dev-C++] how much is Borland C++ builder? (newest version) >=20 >=20 >=20 >=20 > _________________________________________________________________ > Get your FREE download of MSN Explorer at=20 > http://explorer.msn.com/intl.asp >=20 >=20 >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: chromatonus 7. <chr...@ho...> - 2001-11-11 21:19:57
|
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Brian C. B. <bcb...@ya...> - 2001-11-11 20:32:56
|
Hi,
The sin(x) function in math.h expects a number in Radian Measurement as a
parameter. I believe you are giving sin(x) a number in Degree Measurement
instead. So you need to convert your number from Degree Measurement to
Radian Measurement before passing it to sin(x).
Radian Measurement is the idea of measuring in PI. There are 360 Degrees
in a circle, but only 2 * PI (or 6.28) radians in a circle. So 1 radian =
180/PI. To convert from Radian Measurement to Degree Measurement, multiply
the number in Radian Measurement by 180/PI. To convert from Degree
Measurement to Radian Measurement, multiply the number in Degree Measurement
by PI/180.
Therefore, 1 in Degree Measurement is really 1 * PI/180 in Radian
Measurement. So try:
//--Start
#include <stdio.h>
#include <math.h>
#define PI 3.1415926535897932384626433832795
void main()
{
float f=1.0f;
printf("The sine for %f is %f",f,sin(f * PI / 180.0));
}
//--End
For more info, see http://www.cplusplus.com/ref/cmath/sin.html. Or see a
good trig tutorial that includes examples of how the Radian and Degree
measurements work. I Hope this did not thoroughly confuse you and you can
some use of this.
Sincerely,
Brian Becker
Shall we accept good from God, and not trouble?
---
Outgoing mail is certified Virus Free by AVG
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 9/25/2001
----------------------------------------------------
Sign Up for NetZero Platinum Today
Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97
|
|
From: Daniel G. <sp...@ho...> - 2001-11-11 19:04:06
|
<html><div style='background-color:'><DIV>
<P>Don't you have to use the sin() function on a different line? like</P>
<P>x = sin(f);</P>
<P>printf("The sine for f is f",%f, %x); ? </P></DIV>
<DIV></DIV>
<DIV></DIV>>From: Mihkel Pajusalu <MI...@YA...>
<DIV></DIV>>To: dev...@li...
<DIV></DIV>>Subject: [Dev-C++] Math error
<DIV></DIV>>Date: Sun, 11 Nov 2001 10:43:13 -0800 (PST)
<DIV></DIV>>
<DIV></DIV>> Hello,
<DIV></DIV>>
<DIV></DIV>> I wrote a very simple programme to test function
<DIV></DIV>>sin():
<DIV></DIV>>
<DIV></DIV>>#include <STDIO.H>
<DIV></DIV>>#include <MATH.H>
<DIV></DIV>>
<DIV></DIV>>void main()
<DIV></DIV>>{
<DIV></DIV>> float f=1.0f;
<DIV></DIV>> printf("The sine for %f is %f",f,sin(f));
<DIV></DIV>>
<DIV></DIV>>}
<DIV></DIV>>, but it printed on the screen
<DIV></DIV>>"The sine for 1.00000 is 0.841471".
<DIV></DIV>>Then I tried to calculate sine for 1.0000 on a
<DIV></DIV>>calculator and I found that sine for 1 is 0.017452...
<DIV></DIV>>
<DIV></DIV>>What am I doing wrong?
<DIV></DIV>>(I'm sorry for the spelling mistakes)
<DIV></DIV>>
<DIV></DIV>>__________________________________________________
<DIV></DIV>>Do You Yahoo!?
<DIV></DIV>>Find a job, post your resume.
<DIV></DIV>>http://careers.yahoo.com
<DIV></DIV>>
<DIV></DIV>>_______________________________________________
<DIV></DIV>>Dev-cpp-users mailing list
<DIV></DIV>>Dev...@li...
<DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
<DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html>
|
|
From: Ioannis V. <no...@ya...> - 2001-11-11 18:57:48
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf=20
> Of Mihkel Pajusalu
> Sent: Sunday, November 11, 2001 8:43 PM
> To: dev...@li...
> Subject: [Dev-C++] Math error
>=20
>=20
> Hello,
>=20
> I wrote a very simple programme to test function
> sin():
>=20
> #include <stdio.h>
> #include <math.h>
>=20
> void main()
> {
> float f=3D1.0f;
> printf("The sine for %f is %f",f,sin(f));
> =20
> }
> , but it printed on the screen
> "The sine for 1.00000 is 0.841471".
> Then I tried to calculate sine for 1.0000 on a
> calculator and I found that sine for 1 is 0.017452...
>=20
> What am I doing wrong?
> (I'm sorry for the spelling mistakes)
Yeah, now you said it struck strange to me too. Then i discovered that
the argument is in rads... Now i just saw that it writes this fact in my
K&R too (last sentence).
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
|
|
From: Mihkel P. <mi...@ya...> - 2001-11-11 18:43:16
|
Hello,
I wrote a very simple programme to test function
sin():
#include <stdio.h>
#include <math.h>
void main()
{
float f=1.0f;
printf("The sine for %f is %f",f,sin(f));
}
, but it printed on the screen
"The sine for 1.00000 is 0.841471".
Then I tried to calculate sine for 1.0000 on a
calculator and I found that sine for 1 is 0.017452...
What am I doing wrong?
(I'm sorry for the spelling mistakes)
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
|
|
From: kazim s. <kaz...@ho...> - 2001-11-11 18:21:54
|
how can I use MFC (microsoft foundation classes) in Dev-C++....is afxwin.h builtin in Dev-C++....do I have to set some parameters for it.....I m using Dev-C++ version 4. regards, khawar _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: chromatonus 7. <chr...@ho...> - 2001-11-11 17:58:00
|
without spending $... thanks! _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: chromatonus 7. <chr...@ho...> - 2001-11-11 17:56:16
|
hi, this is part of my code and i have to use struct... but my add_back
crashes after i input the second new node. (in the else section) i don't
understand what's wrong.
thanks for helping
struct node
{
int data;
node *next;
};
node add_back(node *&list, int info)
{
node *skip;
if (list == NULL)
{
node *tail = new node;
tail -> data = info;
tail -> next = NULL;
list = tail;
skip = tail;
}
else
{
node *tail = new node;
tail -> data = info;
tail -> next = NULL;
skip -> next = tail;
skip = skip -> next;
}
}
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
|
|
From: Ioannis V. <no...@ya...> - 2001-11-11 16:27:29
|
In ANSI C++ cout is defined in the std namespace, which you can declare there by using namespace std; declaration and use cout alone. But even those for loops will not compile in VC++ 6. The compiler is *broken*. It doesn't support almost at all templates, not the proper ANSI C++ header files, e.t.c.. =20 The code that i sent you is ANSI C++, is not using any Borland C++ specific extensions. =20 =20 Ioannis =20 * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com <http://www.noicys.f2s.com/>=20 * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Daniel Glenfield Sent: Sunday, November 11, 2001 4:52 PM To: dev...@li... Subject: RE: [Dev-C++] how do you install Borland free compiler? But why would I bother with std::cout ? Why not just cout<< ? I always see Borland-specific bits in books and tutorials, telling the reader to do something different if they're using borland. Surely there can't be too much difference between the compilers. >From: "Ioannis Vranos"=20 >To: "Dev-C++"=20 >Subject: RE: [Dev-C++] how do you install Borland free compiler?=20 >Date: Sun, 11 Nov 2001 16:25:35 +0200=20 >=20 >Ok i wish it does. I do not want to make you feel bad, but this is the=20 >summary of what is going on. BC++ Builder has a RAD like that of VB only=20 >that it is 1000 times better, because it has components for anything.=20 >Also its compiler is highly ANSI C++ compliant. In contrary VC++ IDE is >ancient, it has no RAD. Also VC++'s compiler is broken for ANSI C++. For=20 >example the following code i think it will not compile:=20 >=20 >#include=20 >=20 >int main()=20 >{=20 > for(int i=3D0; i<5; i++)=20 > std::cout<>=20 > std::cout<>=20 > for(int i=3D0; i<5; i++)=20 > std::cout<<"It doesn't compile!\n";=20 >}=20 >=20 >=20 >That's my last email on this issue.=20 >=20 >=20 >Ioannis=20 >=20 >* Ioannis Vranos=20 >* Programming pages: http://www.noicys.f2s.com=20 >=20 >* Alternative URL: http://run.to/noicys=20 >=20 >=20 >-----Original Message-----=20 >From: dev...@li...=20 >[mailto:dev...@li...] On Behalf Of Daniel=20 >Glenfield=20 >Sent: Sunday, November 11, 2001 11:53 AM=20 >To: dev...@li...=20 >Subject: RE: [Dev-C++] how do you install Borland free compiler?=20 >=20 >=20 >=20 >Bollocks I say lol ;)=20 >=20 >If Borland had wanted me to buy their version (which I was going to do) >they shouldn't have had that free command line tools as their trial=20 >download. It reflected bad on them, so I went and got VC++ just to spite=20 >them lol.=20 >=20 >And I've not regretted it - It does what I need it to do, and it does it=20 >well.=20 >=20 >=20 >=20 >Sorted.=20 >=20 >=20 >Daniel=20 >=20 >=20 >=20 >=20 _____ =20 Get your FREE download of MSN Explorer at http://explorer.msn.com <http://go.msn.com/bql/hmtag_itl_EN.asp>=20 _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 |
|
From: Daniel G. <sp...@ho...> - 2001-11-11 14:52:34
|
<html><div style='background-color:'><DIV>
<P>But why would I bother with std::cout ? Why not just cout<< ?</P>
<P>I always see Borland-specific bits in books and tutorials, telling the reader to do something different if they're using borland. Surely there can't be too much difference between the compilers.<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: "Ioannis Vranos" <NO...@YA...>
<DIV></DIV>>To: "Dev-C++" <DEV...@LI...>
<DIV></DIV>>Subject: RE: [Dev-C++] how do you install Borland free compiler?
<DIV></DIV>>Date: Sun, 11 Nov 2001 16:25:35 +0200
<DIV></DIV>>
<DIV></DIV>>Ok i wish it does. I do not want to make you feel bad, but this is the
<DIV></DIV>>summary of what is going on. BC++ Builder has a RAD like that of VB only
<DIV></DIV>>that it is 1000 times better, because it has components for anything.
<DIV></DIV>>Also its compiler is highly ANSI C++ compliant. In contrary VC++ IDE is
<DIV></DIV>>ancient, it has no RAD. Also VC++'s compiler is broken for ANSI C++. For
<DIV></DIV>>example the following code i think it will not compile:
<DIV></DIV>>
<DIV></DIV>>#include <IOSTREAM>
<DIV></DIV>>
<DIV></DIV>>int main()
<DIV></DIV>>{
<DIV></DIV>> for(int i=0; i<5; i++)
<DIV></DIV>> std::cout<<I; DIV <>>
<DIV></DIV>> std::cout<<std::endl; DIV <>>
<DIV></DIV>> for(int i=0; i<5; i++)
<DIV></DIV>> std::cout<<"It doesn't compile!\n";
<DIV></DIV>>}
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>That's my last email on this issue.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Ioannis
<DIV></DIV>>
<DIV></DIV>>* Ioannis Vranos
<DIV></DIV>>* Programming pages: http://www.noicys.f2s.com
<DIV></DIV>><HTTP: www.noicys.f2s.com />
<DIV></DIV>>* Alternative URL: http://run.to/noicys
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>-----Original Message-----
<DIV></DIV>>From: dev...@li...
<DIV></DIV>>[mailto:dev...@li...] On Behalf Of Daniel
<DIV></DIV>>Glenfield
<DIV></DIV>>Sent: Sunday, November 11, 2001 11:53 AM
<DIV></DIV>>To: dev...@li...
<DIV></DIV>>Subject: RE: [Dev-C++] how do you install Borland free compiler?
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Bollocks I say lol ;)
<DIV></DIV>>
<DIV></DIV>>If Borland had wanted me to buy their version (which I was going to do)
<DIV></DIV>>they shouldn't have had that free command line tools as their trial
<DIV></DIV>>download. It reflected bad on them, so I went and got VC++ just to spite
<DIV></DIV>>them lol.
<DIV></DIV>>
<DIV></DIV>>And I've not regretted it - It does what I need it to do, and it does it
<DIV></DIV>>well.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Sorted.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Daniel
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV></std::endl;></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html>
|
|
From: Ioannis V. <no...@ya...> - 2001-11-11 14:25:43
|
Ok i wish it does. I do not want to make you feel bad, but this is the
summary of what is going on. BC++ Builder has a RAD like that of VB only
that it is 1000 times better, because it has components for anything.
Also its compiler is highly ANSI C++ compliant. In contrary VC++ IDE is
ancient, it has no RAD. Also VC++'s compiler is broken for ANSI C++. For
example the following code i think it will not compile:
=20
#include <iostream>
=20
int main()
{
for(int i=3D0; i<5; i++)
std::cout<<i;
=20
std::cout<<std::endl;
=20
for(int i=3D0; i<5; i++)
std::cout<<"It doesn't compile!\n";
}
=20
=20
That's my last email on this issue.
=20
=20
Ioannis
=20
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
<http://www.noicys.f2s.com/>=20
* Alternative URL: http://run.to/noicys
=20
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Daniel
Glenfield
Sent: Sunday, November 11, 2001 11:53 AM
To: dev...@li...
Subject: RE: [Dev-C++] how do you install Borland free compiler?
Bollocks I say lol ;)
If Borland had wanted me to buy their version (which I was going to do)
they shouldn't have had that free command line tools as their trial
download. It reflected bad on them, so I went and got VC++ just to spite
them lol.
And I've not regretted it - It does what I need it to do, and it does it
well.
=20
Sorted.
Daniel
=20
|
|
From: Luigi S. <gi...@li...> - 2001-11-11 14:21:35
|
Hello, I've rearranged your code a bit (it is attached to this post), it should be safe as far as memory leakage is concerned. At 22.44 09/11/01 +0000, you wrote: >hi, if you'd like to help, ... gisan gi...@li... |
|
From: Luigi S. <gi...@li...> - 2001-11-11 14:21:31
|
Hi
AFAIK it is common practice to use pointers instead of references when a
functions needs to change some of its parameters, the reason is the one
pointed out by Jason:
when a routine requires a reference parameter, the user may not think that
it will be modified, on the other hand passing a pointer (of course non
const) stresses the fact that the parameter will be changed.
To make it clearer, one should use: "void swap(int *pa, int *pb);"
instead of "void swap (int &a, int &b);"
Of course there are cases when you are forced to use references:
overloading the stream insertion operator (">>")is one of these; more
often, for efficiency reasons, one finds some parameter passed as a const
referece: this is safe because of the const.
At 02.25 10/11/01 +0000, Jason Hardman wrote:
>The main reason was to avoid the use of *&, I personally believe that
>using reference to a pointer, in main(), is a bad way of doing things. ...
>
--
gisan
gi...@li...
|
|
From: Daniel G. <sp...@ho...> - 2001-11-11 09:53:15
|
<html><div style='background-color:'><DIV> <P>Bollocks I say lol ;)</P> <P>If Borland had wanted me to buy their version (which I was going to do) they shouldn't have had that free command line tools as their trial download. It reflected bad on them, so I went and got VC++ just to spite them lol.</P> <P>And I've not regretted it - It does what I need it to do, and it does it well.</P> <P> </P> <P>Sorted.<BR></P> <P>Daniel<BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "Ioannis Vranos" <NO...@YA...> <DIV></DIV>>To: "Dev-C++" <DEV...@LI...> <DIV></DIV>>Subject: RE: [Dev-C++] how do you install Borland free compiler? <DIV></DIV>>Date: Sun, 11 Nov 2001 02:21:59 +0200 <DIV></DIV>> <DIV></DIV>>Poor friend... There is no comparison between Visual C++ 6 IDE and <DIV></DIV>>Borland C++ 5 Builder. The second is th best, the first is a shame. :) <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Ioannis <DIV></DIV>> <DIV></DIV>>* Ioannis Vranos <DIV></DIV>>* Programming pages: http://www.noicys.f2s.com <DIV></DIV>><HTTP: www.noicys.f2s.com /> <DIV></DIV>>* Alternative URL: http://run.to/noicys <DIV></DIV>> <DIV></DIV>>-----Original Message----- <DIV></DIV>>From: dev...@li... <DIV></DIV>>[mailto:dev...@li...] On Behalf Of Daniel <DIV></DIV>>Glenfield <DIV></DIV>>Sent: Sunday, November 11, 2001 1:53 AM <DIV></DIV>>To: dev...@li... <DIV></DIV>>Subject: Re: [Dev-C++] how do you install Borland free compiler? <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>I got really annoyed with Borland's "freebie" that I changed my mind and <DIV></DIV>>went and bought microsoft's visual C++ compiler. That'll teach them!!! <DIV></DIV>> <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: Jason H. <jas...@bt...> - 2001-11-11 00:47:22
|
IMHO you should have bought Borland C++ Builder. That way you don't have = to deal the command line. AFAIK the Borland compiler is the most = standards compliant compiler available. Micro$oft!!!! boooo... sssss! Jason. ----- Original Message -----=20 From: Daniel Glenfield=20 To: dev...@li...=20 Sent: Saturday, November 10, 2001 11:52 PM Subject: Re: [Dev-C++] how do you install Borland free compiler? I got really annoyed with Borland's "freebie" that I changed my mind = and went and bought microsoft's visual C++ compiler. That'll teach = them!!! >From: "chromatonus 712"=20 >To: dev...@li...=20 >Subject: [Dev-C++] how do you install Borland free compiler?=20 >Date: Sat, 10 Nov 2001 23:45:07 +0000=20 >=20 >hi, i couldn't make of these procedures after i opened=20 >freecommandlinetools.exe=20 >downloaded from CNET=20 >please help, thanks=20 >=20 >=20 >2. From the bin directory of your installation:=20 > a. Add "c:\Borland\Bcc55"=20 > to the existing path=20 > b. Create a bcc32.cfg file which will set=20 > the compiler options for the Include=20 > and Lib paths (-I and -L switches to=20 > compiler) by adding these lines:=20 > -I"c:\Borland\Bcc55\include"=20 > -L"c:\Borland\Bcc55\lib"=20 > c. Create an ilink32.cfg file which will set=20 > the linker option for the Lib path by=20 > adding this line:=20 > -L"c:\Borland\Bcc55\lib"=20 >=20 >=20 >_________________________________________________________________=20 >Get your FREE download of MSN Explorer at=20 >http://explorer.msn.com/intl.asp=20 >=20 >=20 >_______________________________________________=20 >Dev-cpp-users mailing list=20 >Dev...@li...=20 >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 -------------------------------------------------------------------------= ----- Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Ioannis V. <no...@ya...> - 2001-11-11 00:22:11
|
Poor friend... There is no comparison between Visual C++ 6 IDE and Borland C++ 5 Builder. The second is th best, the first is a shame. :) =20 =20 Ioannis =20 * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com <http://www.noicys.f2s.com/>=20 * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Daniel Glenfield Sent: Sunday, November 11, 2001 1:53 AM To: dev...@li... Subject: Re: [Dev-C++] how do you install Borland free compiler? I got really annoyed with Borland's "freebie" that I changed my mind and went and bought microsoft's visual C++ compiler. That'll teach them!!! |
|
From: Daniel G. <sp...@ho...> - 2001-11-10 23:52:49
|
<html><div style='background-color:'><DIV> <P>I got really annoyed with Borland's "freebie" that I changed my mind and went and bought microsoft's visual C++ compiler. That'll teach them!!!<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "chromatonus 712" <CHR...@HO...> <DIV></DIV>>To: dev...@li... <DIV></DIV>>Subject: [Dev-C++] how do you install Borland free compiler? <DIV></DIV>>Date: Sat, 10 Nov 2001 23:45:07 +0000 <DIV></DIV>> <DIV></DIV>>hi, i couldn't make of these procedures after i opened <DIV></DIV>>freecommandlinetools.exe <DIV></DIV>>downloaded from CNET <DIV></DIV>>please help, thanks <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>2. From the bin directory of your installation: <DIV></DIV>> a. Add "c:\Borland\Bcc55" <DIV></DIV>> to the existing path <DIV></DIV>> b. Create a bcc32.cfg file which will set <DIV></DIV>> the compiler options for the Include <DIV></DIV>> and Lib paths (-I and -L switches to <DIV></DIV>> compiler) by adding these lines: <DIV></DIV>> -I"c:\Borland\Bcc55\include" <DIV></DIV>> -L"c:\Borland\Bcc55\lib" <DIV></DIV>> c. Create an ilink32.cfg file which will set <DIV></DIV>> the linker option for the Lib path by <DIV></DIV>> adding this line: <DIV></DIV>> -L"c:\Borland\Bcc55\lib" <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>_________________________________________________________________ <DIV></DIV>>Get your FREE download of MSN Explorer at <DIV></DIV>>http://explorer.msn.com/intl.asp <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>_______________________________________________ <DIV></DIV>>Dev-cpp-users mailing list <DIV></DIV>>Dev...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: chromatonus 7. <chr...@ho...> - 2001-11-10 23:45:21
|
hi, i couldn't make of these procedures after i opened
freecommandlinetools.exe
downloaded from CNET
please help, thanks
2. From the bin directory of your installation:
a. Add "c:\Borland\Bcc55"
to the existing path
b. Create a bcc32.cfg file which will set
the compiler options for the Include
and Lib paths (-I and -L switches to
compiler) by adding these lines:
-I"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib"
c. Create an ilink32.cfg file which will set
the linker option for the Lib path by
adding this line:
-L"c:\Borland\Bcc55\lib"
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
|
|
From: Jason H. <jas...@bt...> - 2001-11-10 21:15:19
|
No offence, but I'm having trouble working through your english. From what I
can gather you have a file which you need to read through and re-output in a
different format.
If you could provide an example of a valid input file (3 or 4 lines) and the
output file that it would convert to. You don't have to provide actual data,
just make it up if it's confidential. Maybe then we could work up something
that might work.
I don't know of any standard functions that determine for you whether
something is a float, int or string of somesort. It is assumed you would
know the file format or be able to work it out for yourself. It depends upon
how you choose to represent your data in the end.
I am currently working on a program that takes in a file and outputs
something else depending upon the contents of the input file. So all that
needs to be different is the code that deciphers the input and produces the
output.
Also Dev-C++ is just an environment for developing programs, the standard
compiler is MinGW, which isn't totally standards compliant but works well
enough.
Jason.
----- Original Message -----
From: "carlos GARCÍA DEL MONTE" <cg...@wo...>
To: <dev...@li...>
Sent: Saturday, November 10, 2001 6:00 PM
Subject: [Dev-C++] [Dec-C++]eof() function and type variable from file input
> Hi again:
>
> I am writing a program for make a two weeks work in one minute, and it
> will take me two months...
> I have a .txt archive with various tables of diferent amount of rows,
> and always five columns; I need a program which the first five data are
> sent to a char * variable; the next 5*n values to a float [5] and write
> them in other archive as I need them, after one data which is char *,
> made by letters and numbers, being the first a letter.
>
> Well: I try it writing what I must write but:
> a) If I use while(!inputFile.eof()){
> the body of all the instructions needed
> }
> When I run the program, immediately,
> when it's the moment of reading the inputFile **the program has
> generated an error log and it wwill be closed by windows**
> b) If I try something like for(as many times as tables it must
> pass) I find that it doesn't recognize the type of the data:
> The first is a while(inputFile >> charvariable); what i want do with
> them; while(inputFile >> floatvariable); what I want do with them, with
> the correspondent variable arrays with the suscripts and counters, etc;
> and inputFile >> thelastcharofthetable);what I want do; Then I found the
> program:
> b.1) ***generated error.log bla bla guauau****
> b.2) It considered all data as char, and soit did for every data of
> the txt file the same, what I want for the first five words.
>
> Are there any function hich lets the program know if the data from input
> file is float or char or int and once known use that data for the
> correct instruction? Or it is best to do it by hand, killing the
> computer and suiciding myself?
>
> I hope this is a problem for be console program, so I will be able to
> write the program I think i will need write in the future. But I think,
> that although the main are the windows programs, the console ones would
> be good to have a good work.
> Now I don't need that hard program and it would be very, very useful can
> program some little consoles. And if I can write the program five
> minutes and do what I need in three seconds (I don't worry very much now
> about efficiency, I write for myself) and avoid do it by hand in weeks
> of giant boring waste of time.
>
> Thanks to anybody who can help.
> Thanks to everybody who will find this message occupying memory, for
> their patience.
> Thanks if Dev-C++ 5 solve this problems(if it is really a problem of the
> progran and not my inexperience) (And thanks either if not).
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|