dev-cpp-users Mailing List for Dev-C++ (Page 400)
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: Ioannis V. <iv...@at...> - 2003-04-12 15:15:08
|
> -----Original Message-----
> From: Ioannis Vranos [mailto:iv...@at...]=20
> Sent: Saturday, April 12, 2003 6:10 PM
> To: 'Dev...@li...'
> Subject: RE: Re[2]: [Dev-C++] [q] Does C++ promote bad programming?
>=20
>=20
> > -----Original Message-----
> > From: dev...@li...=20
> > [mailto:dev...@li...] On=20
> Behalf Of Zodiaq
> > Sent: Saturday, April 12, 2003 5:36 PM
> > To: Dev...@li...
> > Subject: Re[2]: [Dev-C++] [q] Does C++ promote bad programming?
> >=20
> >=20
> > Hello Ioannis and all Dev-C++ users,
> >=20
> > Saturday, April 12, 2003, 4:07:54 PM, Ioannis wrote as follows:
> >=20
> > IV> So for example if you want to teach all the concepts of=20
> > Object Oriented
> > IV> programming, C++ is a perfect candidate.
> >=20
> > IMHO for such course better is Java - it has all benefits of OOP but
> > whithout pointers and with garbage collector and tables boundary
> > checking - which (for beginners) is very important... IMHO learning
> > C++ (as a faster language) should be done AFTER Java course...
>=20
>=20
> Java uses pointers although it is somewhat transparent to the user.
To bee more accurate, Java uses *only* pointers to objects on the free =
store
(without any special syntax). C++ can use both objects in the stack and =
in
the free store.
=20
> You are not forced to use pointers in C++. You use them if=20
> you want them.
Example:
#include <string>
#include <iostream>
int main()
{
using namespace std;
string something=3D"Coca Cola";
something+=3D" Pepsi Cola";
something=3Dsomething+" Sprite\n";
=20
cout<<something;
}=20
This is more convenient than Java where you have to call the operator =
new to
create the string, if I remember well (I do not like java so I do not
remember much of it).
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: iad929 <ia...@jo...> - 2003-04-12 15:12:16
|
> In the contrary. C++ supports 4 paradigms and each one *well* and with > optimal space/time efficiency. For What do you mean by 4 paradigms? Mohammed |
|
From: iad929 <ia...@jo...> - 2003-04-12 15:10:32
|
> IMHO for such course better is Java - it has all benefits of OOP but > whithout pointers and with garbage collector and tables boundary > checking - which (for beginners) is very important... IMHO learning > C++ (as a faster language) should be done AFTER Java course... > I little disagree with you here. C++ can be used for an introductory course with avoiding pointers. Java is simple but it is web directed. Mohammed |
|
From: Ioannis V. <iv...@at...> - 2003-04-12 15:09:45
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Zodiaq > Sent: Saturday, April 12, 2003 5:36 PM > To: Dev...@li... > Subject: Re[2]: [Dev-C++] [q] Does C++ promote bad programming? > > > Hello Ioannis and all Dev-C++ users, > > Saturday, April 12, 2003, 4:07:54 PM, Ioannis wrote as follows: > > IV> So for example if you want to teach all the concepts of > Object Oriented > IV> programming, C++ is a perfect candidate. > > IMHO for such course better is Java - it has all benefits of OOP but > whithout pointers and with garbage collector and tables boundary > checking - which (for beginners) is very important... IMHO learning > C++ (as a faster language) should be done AFTER Java course... Java uses pointers although it is somewhat transparent to the user. You are not forced to use pointers in C++. You use them if you want them. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Zodiaq <zo...@ac...> - 2003-04-12 14:36:43
|
Hello Ioannis and all Dev-C++ users, Saturday, April 12, 2003, 4:07:54 PM, Ioannis wrote as follows: IV> So for example if you want to teach all the concepts of Object Oriented IV> programming, C++ is a perfect candidate. IMHO for such course better is Java - it has all benefits of OOP but whithout pointers and with garbage collector and tables boundary checking - which (for beginners) is very important... IMHO learning C++ (as a faster language) should be done AFTER Java course... -- regards, Zodiaq |
|
From: Ioannis V. <iv...@at...> - 2003-04-12 14:08:03
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf Of nada
> Sent: Saturday, April 12, 2003 4:20 PM
> To: dev...@li...
> Subject: [Dev-C++] [q] Does C++ promote bad programming?
>
>
> I'm interested in the opinions of the group.
>
> Is there anything in the C++ language which you feel inherently can
> contribute to new programmers developing bad programming
> habits? Is C++ an
A programming language can't protect you from bad programming(!). For
example one may have the bad habbit to do:
template<class T>
T add(T a, T b)
{
T c1=a, T c2=b;
while(c1/a<2 && c2/b<2)
c1++, c2++;
return a+b;
}
int main()
{
int x=1, y=2;
int z=add(x,y);
}
> inappropriate language for an introductory course, a course that is
> designed to introduce learners to programming concepts, not
> necessarily
> prepare them for a programming career?
In the contrary. C++ supports 4 paradigms and each one *well* and with
optimal space/time efficiency. For example, in the OO paradigm it supports
multiple inheritance. Few other languages do that (personally I do not know
any other but I assume there is).
So for example if you want to teach all the concepts of Object Oriented
programming, C++ is a perfect candidate.
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: iad929 <ia...@jo...> - 2003-04-12 14:01:31
|
> Is there anything in the C++ language which you feel inherently can > contribute to new programmers developing bad programming habits? Is C++ an > inappropriate language for an introductory course, a course that is > designed to introduce learners to programming concepts, not necessarily > prepare them for a programming career? > C++ is an excellent language for such a topic. But students must know about OOP. Mohammed |
|
From: nada <na...@ca...> - 2003-04-12 13:19:53
|
I'm interested in the opinions of the group.
Is there anything in the C++ language which you feel inherently can
contribute to new programmers developing bad programming habits? Is C++ an
inappropriate language for an introductory course, a course that is
designed to introduce learners to programming concepts, not necessarily
prepare them for a programming career?
Thanks for your comments.
{rb}
|
|
From: iad929 <ia...@jo...> - 2003-04-12 12:28:05
|
> I'm just writing console programs at the moment, and was wondering if > there's a way of setting foreground and background colour of text? Is > this possible using standard C++ libraries? In standard C++ you can't do this. Standard C++ aims to portability and hence avoids dealing with console colors because this differs from computer to computer. You need to specify what type of computer you're using and which OS and which vcompiler you use. N.B. Your Reply-To is set. Please uncheck it. Mohammed |
|
From: Ioannis V. <iv...@at...> - 2003-04-12 11:18:36
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Per Westermark > Sent: Saturday, April 12, 2003 12:32 PM > To: Dany P. Wu > Cc: dev...@li... > Subject: Re: [Dev-C++] Setting text colour > > > No, it's not possible with 'standard' C++ libraries. > > To be able to set foreground and background colour, you must > first decide > what target system you are aiming for, and then locate some suitable > functions. > > While it is possible to use escape sequences for setting colour on > MSDos/Win32 command lines, most code either draws directly to the text > memory, or calls bios functions. > > On Unix machines in general, most programs usess escape > sequences, since > the program may not run on IBM PC-compatible hardware, > thereby not having > a PC bios or a PC-compatible text display. I remember ANSI graphics from the old times (we had to include ansi.sys for them to work). I am assuming ANSI graphics are not valid anymore in the Win2k/WinXP world but if someone has a DOS system he can do the job (or maybe even Win9x). They worked also with escape sequences even in a batch file. But he probavly would be satsfied with Allegro library. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Damien A. <g_...@ho...> - 2003-04-12 10:54:21
|
<html><div style='background-color:'><DIV> <P><BR><BR></P></DIV> <DIV></DIV><BR><BR>Take a look at the conio.h header file in the Dev-C++ include directory. There are functions in there for console text formatting. Make sure to include the conio.c as an additional command while calling the compiler or simple include it instead of conio.h.<BR> <DIV></DIV> <DIV></DIV> <P>Original G <IMG height=12 src="http://graphics.hotmail.com/emthup.gif" width=12> <IMG height=12 src="http://graphics.hotmail.com/emthup.gif" width=12></P> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>----Original Message Follows---- <DIV></DIV>From: "Dany P. Wu" <DA...@QU...> <DIV></DIV>To: <DEV...@LI...> <DIV></DIV>Subject: [Dev-C++] Setting text colour <DIV></DIV>Date: Sat, 12 Apr 2003 21:06:17 +1200 <DIV></DIV><mailto:dev...@li...?subject=help><mailto:dev...@li...><mailto:dev...@li...?subject=subscribe><mailto:dev...@li...?subject=unsubscribe> <DIV></DIV> <DIV></DIV>Hi everyone, <DIV></DIV> <DIV></DIV>I'm just writing console programs at the moment, and was wondering if <DIV></DIV>there's a way of setting foreground and background colour of text? Is <DIV></DIV>this possible using standard C++ libraries? <DIV></DIV> <DIV></DIV> <DIV></DIV>Cheers, <DIV></DIV>Dany. <DIV></DIV> <DIV></DIV>-- <DIV></DIV>This mail is a natural product. The slight variations in <DIV></DIV>spelling and grammar enhance its individual character and <DIV></DIV>beauty and in no way are to be considered flaws or defects. <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>------------------------------------------------------- <DIV></DIV>This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger <DIV></DIV>for complex code. Debugging C/C++ programs can leave you feeling lost and <DIV></DIV>disoriented. TotalView can help you find your way. Available on major UNIX <DIV></DIV>and Linux platforms. Try it free. www.etnus.com <DIV></DIV>_______________________________________________ <DIV></DIV>Dev-cpp-users mailing list <DIV></DIV>Dev...@li... <DIV></DIV>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm <DIV></DIV>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></mailto:dev...@li...?subject=unsubscribe></mailto:dev...@li...?subject=subscribe></mailto:dev...@li...></mailto:dev...@li...?subject=help></div><br clear=all><hr>The new <a href="http://g.msn.com/8HMZEN/2737">MSN 8:</a> smart spam protection and 2 months FREE* </html> |
|
From: Per W. <pw...@ia...> - 2003-04-12 09:33:43
|
No, it's not possible with 'standard' C++ libraries. To be able to set foreground and background colour, you must first decide what target system you are aiming for, and then locate some suitable functions. While it is possible to use escape sequences for setting colour on MSDos/Win32 command lines, most code either draws directly to the text memory, or calls bios functions. On Unix machines in general, most programs usess escape sequences, since the program may not run on IBM PC-compatible hardware, thereby not having a PC bios or a PC-compatible text display. /Per W On Sat, 12 Apr 2003, Dany P. Wu wrote: > Hi everyone, > > I'm just writing console programs at the moment, and was wondering if > there's a way of setting foreground and background colour of text? Is > this possible using standard C++ libraries? > > > Cheers, > Dany. > > -- > This mail is a natural product. The slight variations in > spelling and grammar enhance its individual character and > beauty and in no way are to be considered flaws or defects. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Dany P. W. <da...@qu...> - 2003-04-12 09:06:00
|
Hi everyone, I'm just writing console programs at the moment, and was wondering if there's a way of setting foreground and background colour of text? Is this possible using standard C++ libraries? Cheers, Dany. -- This mail is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects. |
|
From: Roberto R. <rob...@ar...> - 2003-04-12 03:25:04
|
Hi all,
Sorry was not here by the while. IM learn about C & C++ standares just
here, at dev-cpp list. Im not a expert programmer, using I64 I can
handle 64 bits hexa friendly. I use it to work with comunications
protocols, industrial controls, etc.
....
scanf ("%I64x",&Dato);
gotoxy(1,11);printf ("Dec0: %I64u\nDec1: %I64u\n\n", Dato, Dato1);
....
Will try to ask some friends about C99 books :)
Thanks Ioannis
Roberto
Ioannis Vranos wrote:
>Question about C99. That is a first! See below:
>
>
>
>
>
>>-----Original Message-----
>>From: dev...@li...
>>[mailto:dev...@li...] On Behalf
>>Of Roberto Ricardi
>>Sent: Sunday, April 06, 2003 2:11 AM
>>To: 'Dev-C++ -Users-List'
>>Subject: [Dev-C++] Can I handle 64 bits with unsigned long long int ?
>>
>>
>>Hi all,
>>
>>Can I handle 64 bits numbers with unsigned long long ?
>>
>>#include <stdio.h>
>>#include <stdlib.h>
>>#include <conio.h>
>>
>>unsigned long long int D0,D1 ;
>>
>>int main(int argc, char *argv[])
>>{
>> D0 = 0;
>> D1 = 0xffffffffffff; /* I put first unsigned long int, compiler
>>alerts about truncated number...) */
>> gotoxy(1,9);printf ("Num hexa : ");
>> scanf ("%x",&D0); /*can handle whatever up to 32 bits*/
>> gotoxy(1,11);printf ("Dec0: %lu\nDec1: %lu\n\n", D0, D1);
>>
>> getchar(); getchar();
>> return 0;
>>}
>>/*
>>Results:
>>
>>Dec0 : 4294967295 mean ok if I put just up to 0xffffffff 32bits
>>Dec1 : 0 ??
>>*/
>>
>>Why is ever truncated in 32 bits, how can handle long long to
>>get up to
>>64 bits numbers ?
>>
>>
>
>
>unsigned long long is not guaranteed to be 64-bit. If you want an unsigned
>integral type to be at least 64-bit, you have to do:
>
>
>#include <stdint.h>
>
>// ...
>
>uint_least64_t D0, D1;
>
> // ...
>
>
>
>which is a typedef of the closest to 64-bit type provided by platform
>(closest from above, that is if unsigned long is 32 bit and unsigned long
>long is 128 bit for example, the typedef will be of unsigned long long).
>
>
>I read it straight from the standard. I do not know whether MINGW has
>implemented it (and as far as I know these facilities are "optional", if the
>platform doesn't support >=64 bit, will not have the above type naturally).
>
>
>By the way, have you got any book regarding C99? If yes, can you please tell
>me which?
>
>
>
>
>Ioannis Vranos
>
>* Programming pages: http://www.noicys.freeurl.com
>* Alternative URL: http://run.to/noicys
>
>
>Anti-racism movement: http://www.positive-youthfoundation.org
>Iraq Peace Pledge: http://www.peacepledge.org
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: ValueWeb:
>Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
>No other company gives more support or power for your dedicated server
>http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|
|
From: Ioannis V. <iv...@at...> - 2003-04-12 00:21:53
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of nada > Sent: Saturday, April 12, 2003 2:27 AM > To: 'Dev-Cpp' > Subject: RE: [Dev-C++] Info on MS's upcoming OS? > > Thanks to replying. Great info and links. > > But I thought I read here something from a programmer's point > of view that > stated that this new version would not be compatible with any > previous > software....? Longhorn reportedly will only run .NET code (managed code). After all, all new SDKs are becoming available for .NET only. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: nada <na...@ca...> - 2003-04-11 23:26:52
|
>The upcoming Windows version is code named "Longhorn". "Palladium" is the
>code name of the upcoming OS secure architecture for application execution
>(probably will be included in Longhorn).
Thanks to replying. Great info and links.
But I thought I read here something from a programmer's point of view that
stated that this new version would not be compatible with any previous
software....?
{rb}
|
|
From: Ioannis V. <iv...@at...> - 2003-04-11 22:23:59
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of nada > Sent: Friday, April 11, 2003 11:50 PM > To: Dev-Cpp > Subject: [Dev-C++] Info on MS's upcoming OS? > > > Hello - > > Awhile ago, someone here posted a link to a review about MS's > upcoming OS, > "Paladion." This was info, it seemed, from a programmer's > perspective as > to the effects this OS would have on current and future programs. > > Does anyone have this? I would also appreciate any other > references you > may have about this upcoming OS. > > Thanks. The upcoming Windows version is code named "Longhorn". "Palladium" is the code name of the upcoming OS secure architecture for application execution (probably will be included in Longhorn). "Palladium" has already an official name Nextt Generation something (I do not recall it now) and the first demo/beta will be out this year. Longhorn reportedly will only run .NET code (managed code). After all, all new SDKs will be available for .NET. Longhron as it is known up to now, in summary will include: 3D Video GUI (with new managed APIs (=.NET APIs)) A database like system named WinFS and probably Palladium. You can check these: http://www.winsupersite.com/faq/longhorn.asp http://www.winsupersite.com/reviews/longhorn_4008.asp Longhorn is currently expected in 2005. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: nada <na...@ca...> - 2003-04-11 20:50:02
|
Hello -
Awhile ago, someone here posted a link to a review about MS's upcoming OS,
"Paladion." This was info, it seemed, from a programmer's perspective as
to the effects this OS would have on current and future programs.
Does anyone have this? I would also appreciate any other references you
may have about this upcoming OS.
Thanks.
{rb}
--
|
|
From: Ioannis V. <iv...@at...> - 2003-04-11 19:46:32
|
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Andr? Macario Barros
> Sent: Friday, April 11, 2003 10:09 PM
> To: Dev-Cpp-Users
> Subject: [Dev-C++] structs
>=20
>=20
> Please consider the following code:
>=20
> 1 -#include <stdio.h>
> 2 -#include <stdlib.h>
> 3 -
> 4 -struct car
> 5 -{
> 6 - int size;
> 7 - char name[10];
> 8 -};
> 9 -
> 10-int elevator(struct car);
> 11-
> 12-int main()
> 13-{
> 14- int floor;
> 15- struct car auto;
> 16-
> 17- printf("Enter car name-->");
> 18- gets(auto.name);
> 19- printf("Enter car size-->");
> 20- scanf("%d", &auto.size);
> 21- floor =3D elevator(auto);
> 22- printf("Please park your %s in the %d. floor\n",=20
> auto.name, floor);
> 23- system("PAUSE");
> 24- return 0;
> 25-}
> 26-
> 27-int elevator(struct car car_arg)
> 28-{
> 29- if(car_arg.size =3D=3D 1) return 1;
> 30- if(car_arg.size =3D=3D 2) return 2;
> 31- if(car_arg.size =3D=3D 3) return 3;
> 32-}
>=20
> 1-I know that I don=B4t need to pass all the struct. Only the=20
> size is enough;
> :-)))
> 2-I know I don=B4t need the int floor variable. I could=20
> directly call the
> elevator function as
> argument in line 22 printf; :-)))
> 3-I am calling the lines 4 until 8, as the "struct definition";
> 4-I am calling the line 15 and the argument function in line=20
> 27, as the
> "struct variable
> declarations";
>=20
> My Questions:
> A) My statement in 3 is correct?(y/n, comment)
Yes it is the definition of the struct type.
> B) My statement in 4 is correct?(y/n, comment)
These two are both definitions and declarations. The same way that a
function definition is also a declaration (for example you could have
defined the function at the place where you have the declaration
int elevator(struct car);
> C) Is there any way to rewrite this code to avoid a global "struct
> definition"? That is, how
> could I eliminate the lines 4 to 8, put them inside main and inside
> elevator functions?
You can't. However keep in mind that a type definition does not occupy
space. Its instances do. That is that only the "auto" object occupies =
space,
no the definition of struct car.
However the word "auto" is a reserved C keyword (it is the opposite of
keyword "static" for variables), so I do not think that the above would
compile.
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: Ioannis V. <iv...@at...> - 2003-04-11 19:44:01
|
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Andr? Macario Barros
> Sent: Friday, April 11, 2003 8:34 AM
> To: Dev-Cpp-Users
> Subject: [Dev-C++] scanf with gets
>=20
>=20
> Dear programmers,
>=20
> I=B4m having to use the fflush command in the following code:
>=20
> #include <stdio.h>
> #include <stdlib.h>
>=20
> int main()
> {
> char name[10];
> int a, b, c;
>=20
> printf("Enter a-->");
> scanf("%d", &a);
> printf("Enter some name-->");
> fflush(stdin);
The behaviour of the above is undefined (e.g. the airplane may crash).
fflush() is intended to be used on output streams.
You can simply do:
getchar();
> gets(name);
Extremelly Dangerous for buffer overflow (that is you must trust the =
user
very well, and he user must know the internals of your code). A better =
one:
fgets(name,10,stdin);
> printf("Enter com b-->");
> scanf("%d", &b);
> printf("The sum of %d with %d is %d\n", a, b, a+b);
> printf("And the name typed was %s\n", name);
> system("PAUSE");
> return 0;
> }
>=20
> The reason is that if I don=B4t put it, the program doesn=B4t=20
> wait for the name
> to be typed via keyboard. It passes directly to the other operator, b,
> indicating that the input buffer is loaded with something. I made some
> experiments with short int (hd), but nothing solved.
>=20
> 1-Can anyone explain what is happening?
scanf() leaves the '\n' on the stream. Then gets() was reading and
interpreting it as if you entered an empty string.
> 2-What is the solution for don=B4t use the fflush?
getchar(); or something. You can even do a function in the style:
void clean_stdin()
{
while(getchar()!=3D'\n')
;
}
And use it. If you are going to use it with stream redirection in the =
style
myprogram <whatever.txt
for example,
you have to get EOF into account.
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: Ioannis V. <iv...@at...> - 2003-04-11 19:43:34
|
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Andr? Macario Barros
> Sent: Friday, April 11, 2003 8:34 AM
> To: Dev-Cpp-Users
> Subject: [Dev-C++] scanf with gets
>=20
>=20
> Dear programmers,
>=20
> I=B4m having to use the fflush command in the following code:
>=20
> #include <stdio.h>
> #include <stdlib.h>
>=20
> int main()
> {
> char name[10];
> int a, b, c;
>=20
> printf("Enter a-->");
> scanf("%d", &a);
> printf("Enter some name-->");
> fflush(stdin);
The behaviour of the above is undefined (e.g. the airplane may crash).
fflush() is intended to be used on output streams.
You can simply do:
getchar();
> gets(name);
Extremelly Dangerous for buffer overflow (that is you must trust the =
user
very well, and he user must know the internals of your code). A better =
one:
fgets(name,10,stdin);
> printf("Enter com b-->");
> scanf("%d", &b);
> printf("The sum of %d with %d is %d\n", a, b, a+b);
> printf("And the name typed was %s\n", name);
> system("PAUSE");
> return 0;
> }
>=20
> The reason is that if I don=B4t put it, the program doesn=B4t=20
> wait for the name
> to be typed via keyboard. It passes directly to the other operator, b,
> indicating that the input buffer is loaded with something. I made some
> experiments with short int (hd), but nothing solved.
>=20
> 1-Can anyone explain what is happening?
scanf() leaves the '\n' on the stream. Then gets() was reading and
interpreting it as if you entered an empty string.
> 2-What is the solution for don=B4t use the fflush?
getchar(); or something. You can even do a function in the style:
void clean_stdin()
{
while(getchar()!=3D'\n')
;
}
And use it. If you are going to use it with stream redirection in the =
style
myprogram <whatever.txt
for example,
you have to get EOF into account.
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: Ioannis V. <iv...@at...> - 2003-04-11 19:40:56
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Andrι Macαrio Barros
> Sent: Friday, April 11, 2003 10:09 PM
> To: Dev-Cpp-Users
> Subject: [Dev-C++] structs
>
>
> Please consider the following code:
>
> 1 -#include <stdio.h>
> 2 -#include <stdlib.h>
> 3 -
> 4 -struct car
> 5 -{
> 6 - int size;
> 7 - char name[10];
> 8 -};
> 9 -
> 10-int elevator(struct car);
> 11-
> 12-int main()
> 13-{
> 14- int floor;
> 15- struct car auto;
> 16-
> 17- printf("Enter car name-->");
> 18- gets(auto.name);
> 19- printf("Enter car size-->");
> 20- scanf("%d", &auto.size);
> 21- floor = elevator(auto);
> 22- printf("Please park your %s in the %d. floor\n",
> auto.name, floor);
> 23- system("PAUSE");
> 24- return 0;
> 25-}
> 26-
> 27-int elevator(struct car car_arg)
> 28-{
> 29- if(car_arg.size == 1) return 1;
> 30- if(car_arg.size == 2) return 2;
> 31- if(car_arg.size == 3) return 3;
> 32-}
>
> 1-I know that I don´t need to pass all the struct. Only the
> size is enough;
> :-)))
> 2-I know I don´t need the int floor variable. I could
> directly call the
> elevator function as
> argument in line 22 printf; :-)))
> 3-I am calling the lines 4 until 8, as the "struct definition";
> 4-I am calling the line 15 and the argument function in line
> 27, as the
> "struct variable
> declarations";
>
> My Questions:
> A) My statement in 3 is correct?(y/n, comment)
Yes it is the definition of the struct type.
> B) My statement in 4 is correct?(y/n, comment)
These two are both definitions and declarations. The same way that a
function definition is also a declaration (for example you could have
defined the function at the place where you have the declaration
int elevator(struct car);
> C) Is there any way to rewrite this code to avoid a global "struct
> definition"? That is, how
> could I eliminate the lines 4 to 8, put them inside main and inside
> elevator functions?
You can't. However keep in mind that a type definition does not occupy
space. Its instances do. That is that only the "auto" object occupies space,
no the definition of struct car.
However the word "auto" is a reserved C keyword (it is the opposite of
keyword "static" for variables), so I do not think that the above would
compile.
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: <and...@su...> - 2003-04-11 19:18:37
|
Please! Foget the auto name!!!! It´s a keyword. Chage it for some like
hot_auto :-)))))
Andre
-----Mensagem original-----
De: André Macário Barros [mailto:and...@su...]
Enviada em: sexta-feira, 11 de abril de 2003 16:09
Para: Dev-Cpp-Users
Assunto: structs
Please consider the following code:
1 -#include <stdio.h>
2 -#include <stdlib.h>
3 -
4 -struct car
5 -{
6 - int size;
7 - char name[10];
8 -};
9 -
10-int elevator(struct car);
11-
12-int main()
13-{
14- int floor;
15- struct car auto;
16-
17- printf("Enter car name-->");
18- gets(auto.name);
19- printf("Enter car size-->");
20- scanf("%d", &auto.size);
21- floor = elevator(auto);
22- printf("Please park your %s in the %d. floor\n", auto.name, floor);
23- system("PAUSE");
24- return 0;
25-}
26-
27-int elevator(struct car car_arg)
28-{
29- if(car_arg.size == 1) return 1;
30- if(car_arg.size == 2) return 2;
31- if(car_arg.size == 3) return 3;
32-}
1-I know that I don´t need to pass all the struct. Only the size is enough;
:-)))
2-I know I don´t need the int floor variable. I could directly call the
elevator function as
argument in line 22 printf; :-)))
3-I am calling the lines 4 until 8, as the "struct definition";
4-I am calling the line 15 and the argument function in line 27, as the
"struct variable
declarations";
My Questions:
A) My statement in 3 is correct?(y/n, comment)
B) My statement in 4 is correct?(y/n, comment)
C) Is there any way to rewrite this code to avoid a global "struct
definition"? That is, how
could I eliminate the lines 4 to 8, put them inside main and inside
elevator functions?
Thank you again
Andre
|
|
From: <and...@su...> - 2003-04-11 19:09:32
|
Please consider the following code:
1 -#include <stdio.h>
2 -#include <stdlib.h>
3 -
4 -struct car
5 -{
6 - int size;
7 - char name[10];
8 -};
9 -
10-int elevator(struct car);
11-
12-int main()
13-{
14- int floor;
15- struct car auto;
16-
17- printf("Enter car name-->");
18- gets(auto.name);
19- printf("Enter car size-->");
20- scanf("%d", &auto.size);
21- floor = elevator(auto);
22- printf("Please park your %s in the %d. floor\n", auto.name, floor);
23- system("PAUSE");
24- return 0;
25-}
26-
27-int elevator(struct car car_arg)
28-{
29- if(car_arg.size == 1) return 1;
30- if(car_arg.size == 2) return 2;
31- if(car_arg.size == 3) return 3;
32-}
1-I know that I don´t need to pass all the struct. Only the size is enough;
:-)))
2-I know I don´t need the int floor variable. I could directly call the
elevator function as
argument in line 22 printf; :-)))
3-I am calling the lines 4 until 8, as the "struct definition";
4-I am calling the line 15 and the argument function in line 27, as the
"struct variable
declarations";
My Questions:
A) My statement in 3 is correct?(y/n, comment)
B) My statement in 4 is correct?(y/n, comment)
C) Is there any way to rewrite this code to avoid a global "struct
definition"? That is, how
could I eliminate the lines 4 to 8, put them inside main and inside
elevator functions?
Thank you again
Andre
|
|
From: <fla...@ya...> - 2003-04-11 18:56:27
|
Thanks you very much for your detailed answer. I will let you know the result. Regards, Flávio. --- "Daniel K. O." <dan...@ya...> escreveu: > > > > In the following web site > > http://www.gimp.org/~tml/gimp/win32/ > > I got many libs and files, I am completely lost! > > I need help and directions on which files I have > to > > download. > > > > You need the dev files for GTK+ 2.2.1; this one > requires glib, atk, pango, > zlib, libpng, libjpeg and libtiff (this is written > on that page), so you > also need to download them (the dev version, if > there's more than one). > Unzip everything on dev-cpp's directory (or under > MinGW's directory, if you > have it installed somewhere else); > > > > > > Then I step by step procedure on how to > integrate it. > > compiler flags, etc. > > > > Download the pkg-config too; if you use a unix-like > shell (like MSYS) you > can use it to compile your gtk programs, like on the > Gtk documentation: > > gcc program.c -o program.exe `pkg-config gtk+-2.0 > --libs --cflags` > > > If you don't want to use a shell to compile your > programs, you'll need to > copy/paste the output for: > > > C (or C++) Compiler Flags: > > pkg-config gtk+-2.0 --cflags > > (it will return something like: > -IC:/DEV-CPP/include/gtk-2.0 > -IC:/DEV-CPP/lib/gtk-2.0/include > -IC:/DEV-CPP/include/atk-1.0 > -IC:/DEV-CPP/include/pango-1.0 > -IC:/DEV-CPP/include/glib-2.0 > -IC:/DEV-CPP/lib/glib-2.0/include > ) > > > > Linker Options: > > pkg-config gtk+-2.0 --libs > > (will be something like: > -LC:/DEV-CPP/lib > -lgtk-win32-2.0 > -lgdk-win32-2.0 > -latk-1.0 > -lgdk_pixbuf-2.0 > -lpangowin32-1.0 > -lgdi32 > -lpango-1.0 > -lgobject-2.0 > -lgmodule-2.0 > -lglib-2.0 > -lintl > -liconv > ) > > > > So, you can copy/paste it on a GTK+ project on > Dev-Cpp. Oh, one more thing: > add the "-mms-bitfields" to the C/C++ flags. > > > Optionally, you can use this as your GTK+ Template > (I use this one): > > > > - 8< - 8< - 8< - 8< - 8< - 8< - 8< - 8< - 8< - 8< - > 8< - 8< - > > > > [Template] > ver=1 > Name=GTK > Icon=Gtk.ico > Description=Create a GUI using Gtk. > Catagory=GUI > > [Unit0] > C=Gtk.txt > Cpp=Gtk.txt > CName=main.c > CppName=main.cpp > > [Project] > UnitCount=1 > Type=0 > IsCpp=0 > Compiler=-mms-bitfields_@@_-I"<INCLUDE>\glib-2.0"_@@_-I"<INCLUDE>\atk-1.0"_@ > @_-I"<INCLUDE>\gtk-2.0"_@@_-I"<INCLUDE>\pango-1.0"_@@_-I"<LIB>\glib-2.0\incl > ude"_@@_-I"<LIB>\gtk-2.0\include" > CppCompiler=-mms-bitfields_@@_-I"<INCLUDE>\glib-2.0"_@@_-I"<INCLUDE>\atk-1.0 > "_@@_-I"<INCLUDE>\gtk-2.0"_@@_-I"<INCLUDE>\pango-1.0"_@@_-I"<LIB>\glib-2.0\i > nclude"_@@_-I"<LIB>\gtk-2.0\include" > Linker=-lgtk-win32-2.0_@@_-lgdk-win32-2.0_@@_-latk-1.0_@@_-lgdk_pixbuf-2.0_@ > @_-lpangowin32-1.0_@@_-lgdi32_@@_-lpango-1.0_@@_-lgobject-2.0_@@_-lgmodule-2 > .0_@@_-lglib-2.0_@@_-lintl_@@_-liconv > Name=GTK+ Project > ProjectIcon=Gtk.ico > > > > - >8 - >8 - >8 - >8 - >8 - >8 - >8 - >8 - >8 - >8 - > >8 - >8 - > > > The "Gtk.txt" file contains a small sample, that I > use for almost every GTK+ > program: > > ---- > #include <gtk/gtk.h> > > GtkWidget *win; > > int main(int argc, char *argv[]) > { > gtk_init(&argc, &argv); > > win = gtk_window_new(GTK_WINDOW_TOPLEVEL); > g_signal_connect(G_OBJECT(win), "destroy", > G_CALLBACK(gtk_main_quit), NULL); > gtk_widget_show(win); > > gtk_main(); > } > --- > > > > > > > > > > I tried to browse this list files, but I could > not get > > clear information ( at least to me ) on how to > do > > that. > > > > I answered this question a few times here, but I'll > forgive you, the search > engine on SourceForge is broken... :) > > > > > Daniel K. O. > > > Only ask questions with yes/no answers if you want > "yes" or "no" as the > answer. > http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-an > swers.html > > > > > > > ===== Flavio de Souza fla...@ya... Sertãozinho - SP - Brasil Yahoo! ID: flaviostz _______________________________________________________________________ Yahoo! Mail O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso POP3, filtro contra spam. http://br.mail.yahoo.com/ |