dev-cpp-users Mailing List for Dev-C++ (Page 607)
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: Jason H. <jas...@bt...> - 2002-04-03 12:55:36
|
The Itanium is also not very compatible with old 32bit software, i.e. it = can run it but at slower speeds than current 32 bit processors. I = personally am more interested in the forthcoming Athlon 4s (SledgeHammer = or whatever they're called), which will not only run 64 bit instructions = but the will be fully backward compatible with 32 bit OS's and currently = existing programs (running them faster too), which will be a much more = attractive (cheaper) migration path for many companies. The new athlons = will be released as desktop processors too, whereas I think that the = Itanium is currently mainly for network servers so far? Saying that though intel has a vested interest in bringing current = applications into the 64 bit world, so they will be doing a lot of work = to that end. There are 64 bit versions of Linux and Windows out there = along with other OS's (I imagine). BTW, it is RISC and not Risk. It means Reduced Instruction Set Computer, = as opposed to CISC - Complex Instruction Set Computer, which is the = current PC norm. Both types have benefits and costs. In modern CISC = chips the interal architecture is often based around a set of RISC cores = which are more easily optimised. Jason. ----- Original Message -----=20 From: Dan...@ao...=20 To: Dev-C++=20 Sent: Wednesday, April 03, 2002 1:43 AM Subject: Re: [Dev-C++] Windows Applications In a message dated 4/2/2002 1:19:51 PM Central Standard Time, = jas...@bt... writes:=20 I would suggest that there is still value in learning Win32 and the = related extensions to it. The=20 reason I say this is because .NET is currently only supported by = Windows XP and 2000 AFAICT. Many=20 people today still prefer to stick with the older OS's. I have to say = I'm more interested in what=20 Sun will come up with to rival .NET, as Java is supported on many OS's = and Sun, unlike Microsoft,=20 doesn't have a vested interest in any particular OS and system.=20 My best advise would be wait and see what the future has to offer and = hedge your bets, i.e. learn as=20 much as you can in any language/environment=20 This summer Intel is planing to release it's new Itanium platform = which is going to turn the world of networking around.=20 According to them, Intel, their new platform architecture will be six = times as fast as Risk.=20 This means that there will be a whole new market for software = including an OS which I feel Microsoft has covered already.=20 If things go the way as they have in the past eventually there will be = a new platform for the desktop users.=20 Itanium is a 64 bit platform.=20 For more info about Itanium goto www.intel.com were you can get the = information concerning this new platform better than I can provide.=20 Good Luck from,=20 Danny=20 |
|
From: John P. <jpa...@ya...> - 2002-04-03 12:27:05
|
Would anyone know where I can get a clone of .NET for free. I heard that Envelop was an exact clone. I don't want to spend the money if I am not going to like it. Would I also be able to use it on my current OS (Win 98) or do I have to upgrade my OS also to 2000. If I use it on 98 will I be able to make applications for 2000? |
|
From: Daniel W. <d_w...@ho...> - 2002-04-03 04:51:23
|
Hi, i had never find a tutorial in C++ for windows programming that = covers all of graphics, but this one should be enouh for begin, i will = send it to you by mail... Ahh, also you will need the complete reference to the WINAPIS, here is = the link to download the complete documentation, you should download = it... Bay. Daniel Wilches Maradei http://spiff.tripnet.se/~iczelion/files/win32api.zip |
|
From: Daniel W. <d_w...@ho...> - 2002-04-03 04:50:56
|
Hi!!
The code is like is below, but it doesnt interchange any values, only =
print a sum
What Ioannis says is truth it "should" work under the ANSI standard. The =
corrections he made are for that standard, for this code to work in =
Visual C++ 6 you should correct only one line (and the quotes):
Bye
Daniel Wilches
dwi...@ma...
=20
// This is a program to interchange two values by using function =
templates.
#include <iostream.h>
template<typename X>
int Temp1(X& A, X& B); // This is the line you should change in =
VC++, in ANSI compilers you can write "int Temp1(X& , X& );"
int main()
{
int Var;
int Var1 =3D 20;
int Var2 =3D 25;
cout << "The value in Var1 =3D " << Var1 << endl;
cout << "The value in Var2 =3D " << Var2 << endl;
Var =3D Temp1(Var1, Var2);
cout << "The sum is:" << Var << endl;
return 0;
}
template<typename X>
int Temp1(X& A, X& B)
{
X Var;
Var =3D A + B;
return Var;
}
|
|
From: <Dan...@ao...> - 2002-04-03 00:43:44
|
In a message dated 4/2/2002 1:19:51 PM Central Standard Time, jas...@bt... writes: I would suggest that there is still value in learning Win32 and the related extensions to it. The reason I say this is because .NET is currently only supported by Windows XP and 2000 AFAICT. Many people today still prefer to stick with the older OS's. I have to say I'm more interested in what Sun will come up with to rival .NET, as Java is supported on many OS's and Sun, unlike Microsoft, doesn't have a vested interest in any particular OS and system. My best advise would be wait and see what the future has to offer and hedge your bets, i.e. learn as much as you can in any language/environment This summer Intel is planing to release it's new Itanium platform which is going to turn the world of networking around. According to them, Intel, their new platform architecture will be six times as fast as Risk. This means that there will be a whole new market for software including an OS which I feel Microsoft has covered already. If things go the way as they have in the past eventually there will be a new platform for the desktop users. Itanium is a 64 bit platform. For more info about Itanium goto www.intel.com were you can get the information concerning this new platform better than I can provide. Good Luck from, Danny |
|
From: Ioannis V. <no...@ho...> - 2002-04-02 20:21:23
|
Well one thing is certain, .NET is the planned MS future. True Win32 API, MFC etc will be around for some time yet but if want to talk about what will be in demand on MS world from this year and later, it is .NET and not Win32 API etc.. Be careful that .NET is not an abstraction of Win32 API as MFC etc are but it an entirely new API. As for Java, it is not a standarised language and i do not like it. I consider it as another "Silver Bullet". To see what "silver bullets" are, i recommend you read: http://www.itworld.com/AppDev/710/lw-02-stroustrup/ This applies for VB etc too. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Jason Hardman > Sent: Tuesday, April 02, 2002 9:02 PM > To: Dev-C++ > Subject: Re: [Dev-C++] Windows Applications > > > I would suggest that there is still value in learning Win32 > and the related extensions to it. The > reason I say this is because .NET is currently only supported > by Windoze XP and 2000 AFAICT. Many > people today still prefer to stick with the older OS's. I > have to say I'm more interested in what > Sun will come up with to rival .NET, as Java is supported on > many OS's and Sun, unlike Microsoft, > doesn't have a vested interest in any particular OS and system. > > My best advise would be wait and see what the future has to > offer and hedge your bets, i.e. learn as > much as you can in any language/environment. > > Regards, Jason. |
|
From: Ioannis V. <no...@ho...> - 2002-04-02 19:10:28
|
Sometime ago there was someone from the list who asked (me or all, i can't recall) what compiler to buy and i had recommended him either Borland C++ Builder or to wait for the upcoming Visual C++ 7 .NET. But he didn't listen to me and he would buy the 5 years old(!) VC++ 6. I do not remember the person but if he was you well... Whether you are him or not, well there are 2 options: There is VC++ 7 Upgrade package (but the IDE of 7 sucks) and there is the *extremelly good* Intel C++ 5 compiler which works under the VC++ IDE and it is highly standard compliant and it has *crazy* speed/space optimizations. Very high state of the art. I haven't seen it personally but i have heared very good words from good programmers. Anyway the options can be summarized: Intel C++ 5 for VC++, Borland C++ Builder 6 and Visual C++ 7 Upgrade. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys -----Original Message----- From: Daniel Glenfield [mailto:sp...@ho...] Sent: Tuesday, April 02, 2002 2:06 PM To: no...@ho...; dev...@li... Subject: RE: [Dev-C++] Templates - course examples don't work! Oh this is wonderful news *sarcasm* So the code is ok but the compiler won't work? What can I do? It seems silly to revert back to DEV-C++ because my expensive microsoft compiler doesn't compile properly. Suggestions? |
|
From: Jason H. <jas...@bt...> - 2002-04-02 19:03:14
|
I would suggest that there is still value in learning Win32 and the related extensions to it. The reason I say this is because .NET is currently only supported by Windoze XP and 2000 AFAICT. Many people today still prefer to stick with the older OS's. I have to say I'm more interested in what Sun will come up with to rival .NET, as Java is supported on many OS's and Sun, unlike Microsoft, doesn't have a vested interest in any particular OS and system. My best advise would be wait and see what the future has to offer and hedge your bets, i.e. learn as much as you can in any language/environment. Regards, Jason. ----- Original Message ----- From: "Ioannis Vranos" <no...@ho...> To: "Dev-C++" <dev...@li...> Sent: Tuesday, April 02, 2002 1:42 PM Subject: RE: [Dev-C++] Windows Applications With the new .NET i would not recommend you lose your time learning legacy stuff (Win32, MFC, e.t.c.). So the API i recommend to learn is .NET . Now as for books/tutotrials check my links page at: http://www.noicys.cjb.net/links.htm Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of John Pallas > Sent: Tuesday, April 02, 2002 1:59 AM > To: dev...@li... > Subject: [Dev-C++] Windows Applications > > > I am new to C++ and I wanted to ask if there is anything > online that will > help me make real windows applications i.e. acually make a > window with my > program in it. If anyone knows can you please tell me either > of a site, > manual, or if you can just reply to me directly. > Thanks, > JP > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: <ste...@ge...> - 2002-04-02 18:21:17
|
Hi all... I'm using Dev-C++ 4 (excelent ide!) and I have a little problem with = libraries. I ussually go to projectoptions, and type stuff like; = "-lopengl32 -lglu32" and so on. Now, as far as I know I should be able = to type this in the beginning of my main file instead. Like this; #pragma comment(lib, "opengl32.lib") #pragma comment(lib, "glu32.lib") But it doesn't seem to work! Am I all wrong, or what's goin' on? Thanks! - stein |
|
From: Daniel G. <sp...@ho...> - 2002-04-02 12:06:11
|
<html><div style='background-color:'><DIV>
<P>Oh this is wonderful news *sarcasm* So the code is ok but the compiler won't work? What can I do?</P>
<P>It seems silly to revert back to DEV-C++ because my expensive microsoft compiler doesn't compile properly.</P>
<P>Suggestions?<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: "Ioannis Vranos" <NO...@HO...>
<DIV></DIV>>To: "Dev-C++" <DEV...@LI...>
<DIV></DIV>>Subject: RE: [Dev-C++] Templates - course examples don't work!
<DIV></DIV>>Date: Tue, 2 Apr 2002 14:39:54 +0200
<DIV></DIV>>
<DIV></DIV>>Do not use VC++ 6 to learn C++. It doesn't support the ANSI C++
<DIV></DIV>>standard and was mentioned as "the broken compiler". Of course it is
<DIV></DIV>>since it was created at the time of Windows 95! With VC++ 7 things are a
<DIV></DIV>>lot better of course.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>The only error that i found in your code is that you had forgotten some
<DIV></DIV>>quotes. Also iostream.h can be considered an error.
<DIV></DIV>>
<DIV></DIV>>Your code in better shape:
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>// This is a program to interchange two values by using function
<DIV></DIV>>templates.
<DIV></DIV>>
<DIV></DIV>>#include <IOSTREAM>
<DIV></DIV>>
<DIV></DIV>>template<TYPENAME X>
<DIV></DIV>>X Temp1(X &, X &);
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>int main()
<DIV></DIV>>{
<DIV></DIV>>
<DIV></DIV>>int Var;
<DIV></DIV>>
<DIV></DIV>>int Var1 = 20;
<DIV></DIV>>
<DIV></DIV>>int Var2 = 25;
<DIV></DIV>>
<DIV></DIV>>cout << "The value in Var1 = " << Var1 << endl;
<DIV></DIV>>
<DIV></DIV>>cout << "The value in Var2 = " << Var2 << endl;
<DIV></DIV>>
<DIV></DIV>>Var = Temp1(Var1, Var2);
<DIV></DIV>>
<DIV></DIV>>cout << "The sum is: "<< Var << endl;
<DIV></DIV>>
<DIV></DIV>>return 0;
<DIV></DIV>>}
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>template<TYPENAME X>
<DIV></DIV>>X Temp1(X &A, X &B)
<DIV></DIV>>
<DIV></DIV>>{
<DIV></DIV>>
<DIV></DIV>>X Var;
<DIV></DIV>>
<DIV></DIV>>Var = A + B;
<DIV></DIV>>
<DIV></DIV>>return Var;
<DIV></DIV>>
<DIV></DIV>>}
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Ioannis
<DIV></DIV>>
<DIV></DIV>>* Ioannis Vranos
<DIV></DIV>>* Programming pages: http://www.noicys.cjb.net
<DIV></DIV>><HTTP: www.noicys.cjb.net />
<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: Tuesday, April 02, 2002 12:43 PM
<DIV></DIV>>To: dev...@li...
<DIV></DIV>>Subject: [Dev-C++] Templates - course examples don't work!
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>I'm using VC++ and the examples from my course will not compile and I
<DIV></DIV>>know not why! It tells me A and B are not declared, but I think they
<DIV></DIV>>are! Help me out will you?
<DIV></DIV>>
<DIV></DIV>>// This is a program to interchange two values by using function
<DIV></DIV>>templates.
<DIV></DIV>>
<DIV></DIV>>#include <IOSTREAM.H>
<DIV></DIV>>
<DIV></DIV>>template<TYPENAME X>
<DIV></DIV>>
<DIV></DIV>>int Temp1(X &, X &);
<DIV></DIV>>
<DIV></DIV>>int main()
<DIV></DIV>>
<DIV></DIV>>{
<DIV></DIV>>
<DIV></DIV>>int Var;
<DIV></DIV>>
<DIV></DIV>>int Var1 = 20;
<DIV></DIV>>
<DIV></DIV>>int Var2 = 25;
<DIV></DIV>>
<DIV></DIV>>cout << "The value in Var1 = " << Var1 << endl;
<DIV></DIV>>
<DIV></DIV>>cout << "The value in Var2 = " << Var2 << endl;
<DIV></DIV>>
<DIV></DIV>>Var = Temp1(Var1, Var2);
<DIV></DIV>>
<DIV></DIV>>cout << "The sum is: << Var << endl;
<DIV></DIV>>
<DIV></DIV>>return 0;
<DIV></DIV>>
<DIV></DIV>>}
<DIV></DIV>>
<DIV></DIV>>template<TYPENAME X>
<DIV></DIV>>
<DIV></DIV>>int Temp1(X &A, X &B)
<DIV></DIV>>
<DIV></DIV>>{
<DIV></DIV>>
<DIV></DIV>>X Var;
<DIV></DIV>>
<DIV></DIV>>Var = A + B;
<DIV></DIV>>
<DIV></DIV>>return Var;
<DIV></DIV>>
<DIV></DIV>>}
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>> _____
<DIV></DIV>>
<DIV></DIV>>Send and receive Hotmail on your mobile device: Click
<DIV></DIV>><HTTP: 13 g.msn.com 1HM305301> Here
<DIV></DIV>>_______________________________________________ Dev-cpp-users mailing
<DIV></DIV>>list Dev...@li...
<DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
<DIV></DIV>>
<DIV></DIV></div><br clear=all><hr>Chat with friends online, try MSN Messenger: <a href='http://g.msn.com/1HM305301/11'>Click Here</a><br></html>
|
|
From: Ioannis V. <no...@ho...> - 2002-04-02 11:43:03
|
With the new .NET i would not recommend you lose your time learning legacy stuff (Win32, MFC, e.t.c.). So the API i recommend to learn is .NET . Now as for books/tutotrials check my links page at: http://www.noicys.cjb.net/links.htm Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of John Pallas > Sent: Tuesday, April 02, 2002 1:59 AM > To: dev...@li... > Subject: [Dev-C++] Windows Applications > > > I am new to C++ and I wanted to ask if there is anything > online that will > help me make real windows applications i.e. acually make a > window with my > program in it. If anyone knows can you please tell me either > of a site, > manual, or if you can just reply to me directly. > Thanks, > JP > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Ioannis V. <no...@ho...> - 2002-04-02 11:40:39
|
Do not use VC++ 6 to learn C++. It doesn't support the ANSI C++
standard and was mentioned as "the broken compiler". Of course it is
since it was created at the time of Windows 95! With VC++ 7 things are a
lot better of course.
The only error that i found in your code is that you had forgotten some
quotes. Also iostream.h can be considered an error.
Your code in better shape:
// This is a program to interchange two values by using function
templates.
#include <iostream>
template<typename X>
X Temp1(X &, X &);
int main()
{
int Var;
int Var1 = 20;
int Var2 = 25;
cout << "The value in Var1 = " << Var1 << endl;
cout << "The value in Var2 = " << Var2 << endl;
Var = Temp1(Var1, Var2);
cout << "The sum is: "<< Var << endl;
return 0;
}
template<typename X>
X Temp1(X &A, X &B)
{
X Var;
Var = A + B;
return Var;
}
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
<http://www.noicys.cjb.net/>
* Alternative URL: http://run.to/noicys
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Daniel
Glenfield
Sent: Tuesday, April 02, 2002 12:43 PM
To: dev...@li...
Subject: [Dev-C++] Templates - course examples don't work!
I'm using VC++ and the examples from my course will not compile and I
know not why! It tells me A and B are not declared, but I think they
are! Help me out will you?
// This is a program to interchange two values by using function
templates.
#include <iostream.h>
template<typename X>
int Temp1(X &, X &);
int main()
{
int Var;
int Var1 = 20;
int Var2 = 25;
cout << "The value in Var1 = " << Var1 << endl;
cout << "The value in Var2 = " << Var2 << endl;
Var = Temp1(Var1, Var2);
cout << "The sum is: << Var << endl;
return 0;
}
template<typename X>
int Temp1(X &A, X &B)
{
X Var;
Var = A + B;
return Var;
}
_____
Send and receive Hotmail on your mobile device: Click
<http://g.msn.com/1HM305301/13> Here
_______________________________________________ Dev-cpp-users mailing
list Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Daniel G. <sp...@ho...> - 2002-04-02 10:42:59
|
<html><div style='background-color:'><DIV>I'm using VC++ and the examples from my course will not compile and I know not why! It tells me A and B are not declared, but I think they are! Help me out will you?</DIV>
<DIV> </DIV>
<DIV><I><FONT color=#ff0000>
<P>// This is a program to interchange two values by using function templates.</P>
<P>#include <iostream.h></P>
<P>template<typename X></P>
<P>int Temp1(X &, X &);</P>
<P>int main()</P>
<P>{</P>
<P>int Var;</P>
<P></FONT><FONT color=#008080>int</FONT><FONT color=#ff0000> Var1 = 20;</P>
<P></FONT><FONT color=#008080>int</FONT><FONT color=#ff0000> Var2 = 25;</P>
<P>cout << "The value in Var1 = " << Var1 << endl;</P>
<P>cout << "The value in Var2 = " << Var2 << endl;</P>
<P>Var = Temp1(Var1, Var2);</P>
<P>cout << "The sum is: << Var << endl;</P>
<P>return 0;</P>
<P>}</P>
<P>template<typename X></P>
<P>int Temp1(</FONT><FONT color=#0000ff>X</FONT><FONT color=#ff0000> &A, </FONT><FONT color=#0000ff>X</FONT><FONT color=#ff0000> &B)</P>
<P>{</P>
<P></FONT><FONT color=#008000>X</FONT><FONT color=#ff0000> </FONT><FONT color=#800000>Var</FONT><FONT color=#ff0000>;</P>
<P>Var = A + B;</P>
<P>return Var;</P>
<P>}</P></I></FONT></DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a href='http://g.msn.com/1HM305301/13'>Click Here</a><br></html>
|
|
From: Christian W. <Chr...@vo...> - 2002-04-02 09:06:42
|
Hi List, can someone explain me how to write a DLL ??? (I have tryed some HowTo's but i want to undertand the difference between WORD / LPCSTR... anbd how to call them (and get a return ...) Thanx Chris |
|
From: <ste...@ge...> - 2002-04-02 02:11:21
|
Hi all... I'm using Dev-C++ 4 (excelent ide!) and I have a little problem with = libraries. I ussually go to projectoptions, and type stuff like; = "-lopengl32 -lglu32" and so on. Now, as far as I know I should be able = to type this in the beginning of my main file instead. Like this; #pragma comment(lib, "opengl32.lib") #pragma comment(lib, "glu32.lib") But it doesn't seem to work! Am I all wrong, or what's goin' on? Thanks! - stein |
|
From: John P. <jpa...@ya...> - 2002-04-01 22:53:37
|
I am new to C++ and I wanted to ask if there is anything online that will help me make real windows applications i.e. acually make a window with my program in it. If anyone knows can you please tell me either of a site, manual, or if you can just reply to me directly. Thanks, JP _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: Bob W. <bo...@ph...> - 2002-04-01 19:37:14
|
I am not sure this is the place to seek this information, but I can not =
find a specific site for Bloodshed.=20
I have down loaded the wxWindows programs and source files, but I am =
getting an consistant error in compilation which I assume is either =
related to the Bloodsheed compiler which is:
Bloodsheed Deve=3DC++ Ver 4.01
mingw complier 2.95-1 MSVCRT + updated headers & libraries
The compiler finds all of the various include files that are either =
source or library, but during the preprocessor or precompile phase it =
produces three fatal errors. They are:
In file included from =
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\debug.h:17,
from =
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\defs.h:468,
from =
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\wxprec.h:13,
from =
f:\dev-c_~1\downlo~1\wxwind~1\wx2\demos\life\life.cpp:21:
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\wxchar.h:429: #error =
"Please define string case-insensitive compare for your OS/compiler"
In file included from =
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\memory.h:20,
from =
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\object.h:20,
from =
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\wx.h:16,
from =
f:\dev-c_~1\downlo~1\wxwind~1\wx2\demos\life\life.cpp:28:
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\string.h:170: #error =
"Please define string case-insensitive compare for your OS/compiler"
In file included from =
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\cmndata.h:21,
from =
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\wx.h:48,
from =
f:\dev-c_~1\downlo~1\wxwind~1\wx2\demos\life\life.cpp:28:
F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\fontutil.h:65: #error =
"Unsupported toolkit"
It appears that either the compiler is not providing the proper =
identification, is a mismatch despite of its mingw roots, or that I need =
to modify the source code to specify the proper option for each of the =
three unidentified definitions during the
#if ( . . . )
#endif
#ifdef . . .=20
#endif
option identification phases. I could flail around and eventually either =
figures it out or arrive at a serendipitous solution (more likely), but =
I am sure I am not the first to run into this problem. FYI operating =
system is stock Windows98.=20
I love learning and becoming proficient in a new language. It always =
makes you feel like a real mental midget.=20
Regards,
Bob
|
|
From: MiGa <MiG...@gm...> - 2002-04-01 19:11:30
|
Hi, got the following compiler error when trying to compile this: WSAIoctl(s, SIO_RCVALL, &val, sizeof(val), NULL, 0, &len, NULL, NULL); undefined reference to `WSAIoctl@36'. I looked into the FAQ and linked the -lwsock32 but this error still appears. Any hint? --- Michael |
|
From: <jug...@md...> - 2002-04-01 13:59:51
|
1. The compile option does not create the executable .exe file. 2. To install the GTK+ development package, the Package manager does not give me the "Install" option. The runtime libraries install niceley. I have scanned thru the archives of this list and I am unable to find anything helpful. I hope to get some advice from knowledgable and experienced users on this list. TIA -- Jagannath ------------------------------------------------------------------------------ ----------- This message was sent by Visual Mail 2.0(2.015) Copyright © 1997-2001 JPSoft DK Get your own copy of Visual Mail at http://www.jpsoft.dk ------------------------------------------------------------------------------ ----------- |
|
From: Daniel G. <sp...@ho...> - 2002-04-01 11:06:13
|
<html><div style='background-color:'><DIV> <P>Hey thanks, looks interesting!<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "christiaan scholtz" <CK...@IA...> <DIV></DIV>>To: <DEV...@LI...> <DIV></DIV>>Subject: [Dev-C++] system wide hooks <DIV></DIV>>Date: Fri, 29 Mar 2002 19:53:57 +0200 <DIV></DIV>> <DIV></DIV>>I found a great refrence and i just thought id share it with you. A system wide hook is a great little thing that allows you to take controll of all applications in windows! So you can add an extra button to every window (next to the minimize button for example- there is a demo of this in one of the links on the page). You can also hack progs with it! I once downloaded a program that listens for the time event in minesweeper giving you a perfect score! <DIV></DIV>> <DIV></DIV>>http://www.cpp.atfreeweb.com/Hooks.html <DIV></DIV></div><br clear=all><hr>Join the worlds largest e-mail service with MSN Hotmail. <a href='http://g.msn.com/1HM305301/15'>Click Here</a><br></html> |
|
From: Patrick D. <bs2...@sk...> - 2002-04-01 09:10:53
|
Hi, Where can I find documentation about adapting bcc32 from Borland to Devcpp? I'd like to use bcc32 with the new beta version of the devcpp Ide. Detollenaere Patrick Kerrestraat 6 Oosteeklo Belgium bs2...@sk... |
|
From: Ioannis V. <no...@ho...> - 2002-03-31 23:10:57
|
Non-english email encoding? Also choose MIME. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Kirktoun .....The Clark Family Sent: Monday, April 01, 2002 1:02 AM To: dev...@li... Subject: [Dev-C++] re five floating numbers hello I just noticed my email seem to have added a few = signs at the end of lines and the characters 3D after the =sign in the for loops of the code i posted , i don't know why it does this, does anyone know? |
|
From: Kirktoun .....T. C. F. <kir...@bt...> - 2002-03-31 23:01:57
|
hello I just noticed my email seem to have added a few =3D signs at the end = of lines and the characters 3D after the =3Dsign in the for loops of the = code i posted , i don't know why it does this, does anyone know? =20 |
|
From: Kirktoun .....T. C. F. <kir...@bt...> - 2002-03-31 16:34:55
|
Hi there,
Here is a program to input 5 floats and output them to the screen, using =
loops. oh i am using the bloodshed compiler.
#include <iostream>
#include <iomanip>
#include <conio.h>
using std::cout;
using std::cin;
using std::endl;
#define MAX 5
int main()
{
float number[MAX];
int x;
cout << " A program to enter and display 5 floating point numbers " << =
endl << endl;
for (x=3D0;x<MAX; x++)
{
cout << " Enter number:" << x+1 << endl;
cin >> number[x];
}
cout <<"Press any key to show your numbers" << endl << endl << endl;
getche();
x=3D0;
for (x=3D0;x<MAX;x++)
{
cout <<"float number:"<< x+1 <<" is";
cout.width(10);
cout << setprecision(2) << setiosflags(ios::fixed | =
ios::showpoint);
cout << number[x];
cout << endl << endl << endl;
}
cout <<"Press any key to Exit The Program" << endl;
getche();
return(0);
}
|
|
From: Kirktoun .....T. C. F. <kir...@bt...> - 2002-03-31 13:16:15
|
Hello there,=20
The following code based on yours outputs the five floats, column width =
can be any integer number you want. I also initialised the variables, =
one of the reasons you had no output was that you did not tell the print =
statement to output the variable number1 etc. although i think an =
earlier correspondent noticed this. The numbers line up ok, although the =
text"number1" and the actual value of the variable number1 are on =
different lines, there are ways round this but not without changing the =
code considerably. You would be better off looping this program anyway =
both for input and output.
#include <iostream>
#include <iomanip>
#include <conio.h>
using std::cout;
using std::cin;
using std::endl;
float number;
int main()
{
float number1=3D0, number2=3D0, number3=3D0, number4=3D0, number5=3D0;
cout << " Enter 5 floating point numbers " << endl;
cin >> number1 ;
cin >> number2 ;
cin >> number3 ;
cin >> number4 ;
cin >> number5 ;
cout << " The floating point numbers you entered are " << endl;
cout << " number 1 is " <<endl;
cout.width(30);
cout << setprecision(2) << setiosflags(ios::fixed | ios::showpoint)<< =
number1 <<endl;
cout << " number 2 is " <<endl;
cout.width(30);
cout << setprecision(2) << setiosflags(ios::fixed | ios::showpoint)<< =
number2 <<endl;
cout << " number 3 is "<<endl;
cout.width(30);
cout << setprecision(2) << setiosflags(ios::fixed | ios::showpoint)<< =
number3 <<endl;
cout << " number 4 is "<<endl;
cout.width(30);
cout << setprecision(2) << setiosflags(ios::fixed | ios::showpoint)<< =
number4 <<endl;
cout << " number 5 is "<<endl;
cout.width(30);
cout << setprecision(2) << setiosflags(ios::fixed | ios::showpoint)<< =
number5 <<endl;
cout << "Here are the five floats you wanted" <<endl;
cout <<endl <<endl <<endl;
cout << "Strike any key to exit program" <<endl;
getche();
return 0;
}
=20
|