dev-cpp-users Mailing List for Dev-C++ (Page 610)
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: Daniel W. <d_w...@ho...> - 2002-03-24 20:34:17
|
Hello everybody! HI Patrick, what that weird message means is that you are compiling your = console project for windows, not as a console project :-?. Well, it can be the problem: In Options, goto Compiler options, and then = goto the label linker, there is a checked box at left of "Compile for = win32 (no console)", well, uncheck it.That can be the problem, i hope it = fixes. I suggest you to read the FAQS in the menu HELP, under "Help on = Dev-C++", cause the problem you suggest is explained there. Well, good = look! Daniel Wilches dwi...@ma... |
|
From: Napoleon A. <nah...@so...> - 2002-03-24 17:30:12
|
Hi folks, I have just downloded the beta version of dev c++ and i must say the new = look editor is quite pleasing to the eye. To the point now, I am = learning wxWindows with MingW.=20 For ease of use much more than anything, I use Context editor since it = allows me to use basically any of the free compilers as well as make. Also I find updating the compilers much easier since its just a matter = of downloading and installing. I however miss Dev C++ and Its ability to = enable me work project wise. I will like to know if I can use make to compile wxWindows programs = instead of its default parameters. Generally can I use make to compile = in Dev C++. Thanks. |
|
From: Daniel G. <sp...@ho...> - 2002-03-24 16:43:45
|
<html><div style='background-color:'><DIV> <P>well I know for a fact that there's going to be an aptitude test, so I could do with knowing from anyone who's been for a job interview what Qs they ask.</P> <P>But thanks ;)<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "christiaan scholtz" <CK...@IA...> <DIV></DIV>>To: <DEV...@LI...> <DIV></DIV>>Subject: Re: [Dev-C++] Interview Questions <DIV></DIV>>Date: Sun, 24 Mar 2002 18:12:16 +0200 <DIV></DIV>> <DIV></DIV>>I dont think you should worry if it is a junior position they are bound to help you out <DIV></DIV>> ----- Original Message ----- <DIV></DIV>> From: Daniel Glenfield <DIV></DIV>> To: dev...@li... <DIV></DIV>> Sent: Friday, March 22, 2002 4:13 PM <DIV></DIV>> Subject: [Dev-C++] Interview Questions <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> Hi all, <DIV></DIV>> I have an interview coming up, for a Junior Developer role in a company who specialise in printer drivers. Part of the job may well be writing automation programs to test their software's compatability with dozens of PCs and printers. <DIV></DIV>> <DIV></DIV>> Question 1) is what questions do you think they'll ask me, and <DIV></DIV>> Question 2) how on earth do you begin to write an automation program like this? Most of my coding has been towards games, so I'm not too sure on this! <DIV></DIV>> <DIV></DIV>> Daniel <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>------------------------------------------------------------------------------ <DIV></DIV>> MSN Photos is the easiest way to share and print your photos: Click Here <DIV></DIV>> _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <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: christiaan s. <ck...@ia...> - 2002-03-24 16:12:11
|
I dont think you should worry if it is a junior position they are bound = to help you out ----- Original Message -----=20 From: Daniel Glenfield=20 To: dev...@li...=20 Sent: Friday, March 22, 2002 4:13 PM Subject: [Dev-C++] Interview Questions Hi all, I have an interview coming up, for a Junior Developer role in a = company who specialise in printer drivers. Part of the job may well be = writing automation programs to test their software's compatability with = dozens of PCs and printers. Question 1) is what questions do you think they'll ask me, and Question 2) how on earth do you begin to write an automation program = like this? Most of my coding has been towards games, so I'm not too sure = on this! Daniel -------------------------------------------------------------------------= ----- MSN Photos is the easiest way to share and print your photos: Click = Here _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 |
|
From: Ioannis V. <no...@ho...> - 2002-03-24 10:06:47
|
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Jason
Hardman
Sent: Sunday, March 24, 2002 2:33 AM
To: Dev-C++; Daniel Glenfield
Subject: Re: [Dev-C++] Struct tag
On the other hand the Vector class (std::vector<type>) is a C++
container class that mimics much of what an array is, and most likely
(although not guaranteed) is internally represented as an array or group
of arrays. On top of that the class supports automatic resizing and
bounds checking and a whole host of other manipulation methods and
algorithmic functions. This extra functionality will incur an extra
overhead on a system, but in modern C++ standard library implementations
this cost will be negligible, and unlikely to be significant. As a C++
coder more often than not you would be recommended to use a vector
although basic arrays will still have their uses occasionally.
Maybe this is more information that you wanted to know, but it may be
valuable in future use.
Jason.
sorrry for sqeezing the mateer so much but... :) a vector doesn't incur
any addtional cost when one knows how to use it. For example:
vector<int>array(1000);
for(vector<int>::size_type i=0; i<array.size(); i++)
// some stuff
Here no range checking occurs, the vector<int>::size() is inlined and
the object clears itself automatically when the end of its scope is
reached or an exception is thrown ("resource aquisition is
initialization" technique. That's why proper C++ doesn't need garbage
collection). Also the code is bullet proof (the probability of our
mistakes is very low) and we can change the initial size of the array by
changing only the value of the constructor.
This should not incur more cost than int *array=new int[1000];
for(size_t i=0; i<1000; i++)
// some stuff
When we want to avoid the cost of continuous new & delete we define a
large size from the beginning. Also it is guaranteed that subsequent
push_back operations do not incur time cost for every one push_back.
In summary if we know what we need and what we are doing everything is
ok. :)
For an example of efficicency of C++ high level containers and low level
C-style equivallents check my
http://users.forthnet.gr/ath/jvr/c++faq.htm
Ioannis
* Ioannis Vranos
* Programming pages: <http://www.noicys.d2g.com/>
http://www.noicys.d2g.com
* Alternative URL: <http://run.to/noicys> http://run.to/noicys
|
|
From: Ioannis V. <no...@ho...> - 2002-03-24 09:53:49
|
Why don't you download the latest version of Dev-C++ 4.9.1.0., which has the latest version of MINGW32 and the problem is fixed? Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Daniel Wilches Sent: Sunday, March 24, 2002 1:45 AM To: dev...@li... Subject: [Dev-C++] One more time: getch() and getche(); Hello again, nop, nothing has fixed the problem, some people wrote codes that function in their computers, but not in the mine, i dont know but i think the problem is the Mingw version i have or simply that getch() is bad implemented, well... Somebody knows how to implement interruptions in assembly in Dev-c++ for me to be able to create a getch() and getche() in assembly?? i know how to do it but i need to know how to make an "INT 0x21" in Dev-c++, that's all. Please help (again) Thanxx to every people who have tried to help me :-) Im glad Daniel Wilches d_w...@ho... <mailto:dwi...@ho...> |
|
From: Ioannis V. <no...@ho...> - 2002-03-24 09:52:22
|
You haven't defined main() or winmain(). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of patrick.neff > Sent: Sunday, March 24, 2002 12:59 AM > To: dev...@li... > Subject: [Dev-C++] problem wih a project >=20 >=20 > Hello, i have a problem >=20 > I have copie a project form a book > When i have correct all my errors i run the project >=20 > it write my that i have no error but it don't run and it=20 > write: compiler and linker output > C:\DEV-C_~1\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined=20 > reference to `WinMain@16' >=20 > i don't understand that >=20 > do you can help me please? >=20 > my E-Mail is pat...@la... >=20 >=20 >=20 > "Acc=E9dez au courrier =E9lectronique de La Poste :=20 > www.laposte.net ; 3615 LAPOSTENET (0,13 =80/mn) ; t=E9l : 08 > 92=20 > 68 13 50 (0,34=80/mn)" >=20 >=20 >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: Daniel G. <sp...@ho...> - 2002-03-24 09:11:27
|
<html><div style='background-color:'><DIV> <P>I think you are missing a library. In project options you need to put in the library, they all end in .a but it's been so long since I used DEV that I can't remember which libraries go in there!</P> <P>Anyone?<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "patrick.neff" <PAT...@LA...> <DIV></DIV>>To: dev...@li... <DIV></DIV>>Subject: [Dev-C++] problem wih a project <DIV></DIV>>Date: Sat, 23 Mar 2002 23:59:02 +0100 <DIV></DIV>> <DIV></DIV>>Hello, i have a problem <DIV></DIV>> <DIV></DIV>>I have copie a project form a book <DIV></DIV>>When i have correct all my errors i run the project <DIV></DIV>> <DIV></DIV>>it write my that i have no error but it don't run and it write: <DIV></DIV>>compiler and linker output <DIV></DIV>>C:\DEV-C_~1\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined <DIV></DIV>>reference to `WinMain@16' <DIV></DIV>> <DIV></DIV>>i don't understand that <DIV></DIV>> <DIV></DIV>>do you can help me please? <DIV></DIV>> <DIV></DIV>>my E-Mail is pat...@la... <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>"Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn)" <DIV></DIV>> <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>Send and receive Hotmail on your mobile device: <a href='http://g.msn.com/1HM305301/13'>Click Here</a><br></html> |
|
From: David M. <ci...@ya...> - 2002-03-24 05:32:58
|
all you have to do is copy it to the include directory("wherever Dev-c++ is=
=20
installed\include") and put
#include <vfw.h>
some where in your source code(I suggest somewhere near the top)
As for the header I did a search on google and I am guessing you are doing=
=20
something with
graphics. I found a refrence to it in a openGL tutorial
http://nehe.gamedev.net/tutorials/lesson36.asp
I also have Visual C++ 6.0 Professional installed and sure enough it was=20
there. It is for video for windows
if you want me to send you the file just ask(it is over 100Kb I don't think=
=20
the other people on this list
would appreciate my sending it over the list). Also I pretty sure it relies=
=20
on some libraries that are visual
C++ specific.
At 07:17 PM 3/22/2002, you wrote:
>Hello,
>
>Within the Mingw library, I do not seem to be able to find the header file=
=20
>vfw.h. Does anyone know where I can obtain it? In addition, even if I do=20
>manage to get a hold of it, would Dev C++ be able to compile projects=20
>using the header file? Any suggestions would be appreciated, thanks.
>
>Fierytycoon
>
>
>
>Do You Yahoo!?
>Yahoo! Movies - coverage of the 74th Academy Awards=AE
|
|
From: Fierytycoon <fie...@ya...> - 2002-03-24 04:18:42
|
Hello, Does anyone happen to know whether SoftIce is compatible with the .exe files compiled by Dev C++? Any information would be appreciated, thanks. Fierytycoon --------------------------------- Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® |
|
From: Jason H. <jas...@bt...> - 2002-03-24 00:33:04
|
The struct tag is a remnant of C carried through and extended in C++. =
Structs in C carry data only and don't allow methods and such to added, =
but a struct in C++ is equivalent to a class but with it's member =
automatically declared public by default, whereas in a class the default =
is private.
The only reason I can think of for using it in C++ is if it lends a =
clearer meaning to the code you are writing and the way it is =
represented, and possibly in compatibility with C, i.e. porting old C =
code to C++. Another difference between the C struct and the C++ struct =
is that in C a struct is a tag for a set of data formatted in a specific =
manner, and in C++ a struct represents a type. Mainly meaning that in C =
each declaration of a struct required you to specify that it was a =
struct, i.e.
struct a_structure data; // creates an a_structure struct in data.
In C++ this is still valid but you could also say:
a_structure data; // same
"a_structure" can be any structure previously defined. A work around you =
will see often in things like Win32 API is the use of a typedef for a =
struct, i.e.:
typedef struct tagPOINT { // pt=20
LONG x;=20
LONG y;=20
} POINT;
Where POINT is a typedef of the tagPOINT struct, and means you can =
declare a POINT directly.
An array is a primitive data representation used in C and C++ as the =
basic structured container available. An array of 1000 bytes directly =
represents 1000 consecutive memory locations in the underlying system. =
AFAIK the underlying code is supported by direct assembly =
representations of arrays (CISC), but don't quote me on that. One of the =
drawbacks of the basic array is that it has no bounds checking built in =
to it, so you could create an array of 1000 bytes and then go on to =
access 2000 bytes (and most likely crash your system). These errors can =
often be hard to find and require an extra investment in checking of =
bounds in your code.
On the other hand the Vector class (std::vector<type>) is a C++ =
container class that mimics much of what an array is, and most likely =
(although not guaranteed) is internally represented as an array or group =
of arrays. On top of that the class supports automatic resizing and =
bounds checking and a whole host of other manipulation methods and =
algorithmic functions. This extra functionality will incur an extra =
overhead on a system, but in modern C++ standard library implementations =
this cost will be negligible, and unlikely to be significant. As a C++ =
coder more often than not you would be recommended to use a vector =
although basic arrays will still have their uses occasionally.
Maybe this is more information that you wanted to know, but it may be =
valuable in future use.
Jason.
----- Original Message -----=20
From: Daniel Glenfield=20
To: dev...@li...=20
Sent: Saturday, March 23, 2002 8:43 PM
Subject: [Dev-C++] Struct tag
Hi, just been going over my course notes and I've come across the =
Struct tag. An example is below.
Looking at it, how is this different to a class? And why use it?
Also, what's the difference between an array, and a vector, which I =
understand is its replacement but know little about them.
// A demonstration of the Employee structure
#include <iostream.h>
struct Employee // declaration of a structure type
{
int EmpID;
char EmpName[30];
char EmpAddr[40];
float Salary;
void GetData();
}EmpOne; // Optional declaration of a structure variable
void main()
{
}
-------------------------------------------------------------------------=
-----
Join the world's largest e-mail service with MSN Hotmail. Click Here
_______________________________________________ Dev-cpp-users mailing =
list Dev...@li... =
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Daniel W. <d_w...@ho...> - 2002-03-23 23:42:39
|
Hello again, nop, nothing has fixed the problem, some people wrote codes that = function in their computers, but not in the mine, i dont know but i = think the problem is the Mingw version i have or simply that getch() is = bad implemented, well... Somebody knows how to implement interruptions in assembly in Dev-c++ for = me to be able to create a getch() and getche() in assembly?? i know how = to do it but i need to know how to make an "INT 0x21" in Dev-c++, = that's all. Please help (again) Thanxx to every people who have tried to help me :-) Im glad Daniel Wilches d_w...@ho... |
|
From: patrick.neff <pat...@la...> - 2002-03-23 22:59:11
|
Hello, i have a problem I have copie a project form a book When i have correct all my errors i run the project it write my that i have no error but it don't run and it write: compiler and linker output C:\DEV-C_~1\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined reference to `WinMain@16' i don't understand that do you can help me please? my E-Mail is pat...@la... "Acc=E9dez au courrier =E9lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 =80/mn) ; t=E9l : 08 92 68 13 50 (0,34=80/mn)" |
|
From: Ioannis V. <no...@ho...> - 2002-03-23 22:05:45
|
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Daniel
Glenfield
Sent: Saturday, March 23, 2002 10:43 PM
To: dev...@li...
Subject: [Dev-C++] Struct tag
Hi, just been going over my course notes and I've come across the Struct
tag. An example is below.
Looking at it, how is this different to a class? And why use it?
In C++ a struct is a class with its members public by default.
Also, what's the difference between an array, and a vector, which I
understand is its replacement but know little about them.
A vector is a high level container written with templates with purpose
to provide the same functionality and efficiency while at the same time
providing safety and comfort.
// A demonstration of the Employee structure
#include <iostream.h>
#include <iostream>
struct Employee // declaration of a structure type
{
int EmpID;
char EmpName[30];
char EmpAddr[40];
float Salary;
void GetData();
}EmpOne; // Optional declaration of a structure variable
void main()
int main()
{
}
Ioannis
* Ioannis Vranos
* Programming pages: <http://www.noicys.d2g.com/>
http://www.noicys.d2g.com
* Alternative URL: <http://run.to/noicys> http://run.to/noicys
|
|
From: Ioannis V. <no...@ho...> - 2002-03-23 22:02:58
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Brian McCall > Sent: Saturday, March 23, 2002 5:01 PM > To: dev...@li... > Subject: Re: [Dev-C++] re: French diacritical marks > > There are two ways to display the character you want using > the ASCII code. cout << '\xA0'; and cout << char(160); cout<<char(160) will not print the correct value if char is signed in the particular system. > or char(<decimal code number>) to display a > special character. Not guaranteed to be portable. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys |
|
From: Daniel G. <sp...@ho...> - 2002-03-23 20:43:16
|
<html><div style='background-color:'><DIV>Hi, just been going over my course notes and I've come across the Struct tag. An example is below.</DIV>
<DIV>Looking at it, how is this different to a class? And why use it?</DIV>
<DIV> </DIV>
<DIV>Also, what's the difference between an array, and a vector, which I understand is its replacement but know little about them.</DIV>
<DIV> </DIV>
<DIV><FONT color=#ff0000>
<P>// A demonstration of the Employee structure</P>
<P>#include <iostream.h></P></FONT><FONT color=#800080>
<P>struct</FONT><FONT color=#ff0000> </FONT><FONT color=#008000>Employee</FONT><FONT color=#ff0000> // declaration of a structure type</P>
<P>{</P>
<P>int EmpID;</P>
<P>char EmpName[30];</P>
<P>char EmpAddr[40];</P>
<P>float Salary;</P>
<P>void GetData();</P>
<P>}EmpOne</FONT><FONT color=#0000ff>;</FONT><FONT color=#ff0000> // Optional declaration of a structure variable</P>
<P>void main()</P>
<P>{</P>
<P>}</P></FONT></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: Brian M. <str...@ho...> - 2002-03-23 15:01:22
|
>From: Keith Alexander <ka...@co...> >Reply-To: Keith Alexander <ka...@co...> >To: dev-cpp list <dev...@li...> >Subject: [Dev-C++] re: French diacritical marks >Date: Sat, 23 Mar 2002 00:31:59 -0500 > >Hi, > > My first posting to a list I've been "lurking" on for a while, and am >enjoying very much. > > Not positive how to print out a single character in C++, using its >ASCII code, but I'm pretty sure this is what you want (like the CHR$ >function in BASIC). I can't supply the correct C++ usage (it's probably >something disgustingly simple), but here are the characters and their >corresponding decimal and ASCII codes. For example, I inserted them in this >e-mail using the Alt key while punching in the decimal code on the number >pad. > >é = 130 dec. (82 Hexadecimal ) >à = 133 dec. (85H) >è = 138 dec. (8AH) >á = 160 dec. (A0H) >ç = 135 dec. (87H) >ê = 136 dec. (88H) >É = 144 dec. (90H) >î = 140 dec. (8CH) >ë = 137 dec. (89H) >â = 131 dec. (83H) >ô = 147 dec. (93H) >û = 150 dec. (96H) >í = 161 dec. (A1H) >ó = 162 dec. (A2H) > >Here are some others (not necessarily French): > >ü = 129 dec. 81H >ä = 132 dec. 84H >å = 134 dec. 86H >ï = 139 dec. 8BH >ì = 141 dec. 8DH >ö = 148 dec. 94H >Ü = 154 dec. 9AH >£ = 156 dec. 9CH >¥ = 157 dec. 9DH >½ = 171 dec. ABH >¼ = 172 dec. ACH There are two ways to display the character you want using the ASCII code. cout << '\xA0'; and cout << char(160); display the same thing, 'á'. cout << '\x9A'; and cout << char(154); display 'Ü', and so on. just use '\x<hexidecimal code number>' or char(<decimal code number>) to display a special character. If you want to store a string of characters, i would guess you need to do it character by character in a string. > > Hope this helps! > >Keith Alexander >Detroit, MI _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx |
|
From: Ioannis V. <no...@ho...> - 2002-03-23 08:48:05
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Werner Dang > Sent: Saturday, March 23, 2002 6:40 AM > To: dev...@li... > Subject: [Dev-C++] French diacritic caracters >=20 >=20 > Hello All, > How can I display French diacritic caracters in console mode=20 > like '=E9, =E0, =E8, ... with printf()? I am under Windows NT4.=20 > When I type this caracteres it's ok! Thanks for your help Werner If they are stored in extended ASCII mode then you will use unsigned char type and print character by character as an unisgned char. If French are not in extended ASCII you will use wchar_t type. wchar_t is defined in stdef.h . A normal string can be treated as a wchar_t type in the style: L"This is a wide character string".=20 But usually the western languages fit in the extended ASCII. Ioannis =20 * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys |
|
From: Keith A. <ka...@co...> - 2002-03-23 05:31:48
|
Hi,
My first posting to a list I've been "lurking" on for a while, and =
am enjoying very much.
Not positive how to print out a single character in C++, using its =
ASCII code, but I'm pretty sure this is what you want (like the CHR$ =
function in BASIC). I can't supply the correct C++ usage (it's probably =
something disgustingly simple), but here are the characters and their =
corresponding decimal and ASCII codes. For example, I inserted them in =
this e-mail using the Alt key while punching in the decimal code on the =
number pad.
=E9 =3D 130 dec. (82 Hexadecimal )
=E0 =3D 133 dec. (85H)
=E8 =3D 138 dec. (8AH)
=E1 =3D 160 dec. (A0H)
=E7 =3D 135 dec. (87H)
=EA =3D 136 dec. (88H)
=C9 =3D 144 dec. (90H)
=EE =3D 140 dec. (8CH)
=EB =3D 137 dec. (89H)
=E2 =3D 131 dec. (83H)
=F4 =3D 147 dec. (93H)
=FB =3D 150 dec. (96H)
=ED =3D 161 dec. (A1H)
=F3 =3D 162 dec. (A2H)
Here are some others (not necessarily French):
=FC =3D 129 dec. 81H
=E4 =3D 132 dec. 84H
=E5 =3D 134 dec. 86H
=EF =3D 139 dec. 8BH
=EC =3D 141 dec. 8DH
=F6 =3D 148 dec. 94H
=DC =3D 154 dec. 9AH
=A3 =3D 156 dec. 9CH
=A5 =3D 157 dec. 9DH
=BD =3D 171 dec. ABH
=BC =3D 172 dec. ACH
Hope this helps!
Keith Alexander
Detroit, MI
|
|
From: Werner D. <we...@ma...> - 2002-03-23 04:39:00
|
Hello All, How can I display French diacritic caracters in console mode like 'é, à, è, ... with printf()? I am under Windows NT4. When I type this caracteres it's ok! Thanks for your help Werner --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.338 / Virus Database: 189 - Release Date: 14/03/02 |
|
From: Yeoh H. <ye...@ya...> - 2002-03-23 01:07:38
|
Hello, Sometime ago, I was working on a video capture application based on a = sample application in the MSDN CD. The sample compiles and links without = any problems with Visual C++. In addition to vfw.h, other relevant header files are: mmreg.h and = mmsystem.h.=20 The required libs are: msacm32.lib vfw32.lib winmm.lib shell32.lib I haven't ported it to Dev-C++ though. Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ Author of "How to Create an eBook Using Visual C++" Free Downloads at http://www.yeohhs.com ICT eBooks by Yeoh HS ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ----- Original Message -----=20 From: Fierytycoon=20 To: dev...@li...=20 Sent: Saturday, March 23, 2002 8:17 AM Subject: [Dev-C++] Usability of vfw.h? Hello, Within the Mingw library, I do not seem to be able to find the header = file vfw.h. Does anyone know where I can obtain it? In addition, even if = I do manage to get a hold of it, would Dev C++ be able to compile = projects using the header file? Any suggestions would be appreciated, = thanks. Fierytycoon -------------------------------------------------------------------------= ----- Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards=AE |
|
From: <Dan...@ao...> - 2002-03-23 00:17:27
|
Has anyone tried cin as opposed to getch() and getche()? |
|
From: Fierytycoon <fie...@ya...> - 2002-03-23 00:17:21
|
Hello, Within the Mingw library, I do not seem to be able to find the header file vfw.h. Does anyone know where I can obtain it? In addition, even if I do manage to get a hold of it, would Dev C++ be able to compile projects using the header file? Any suggestions would be appreciated, thanks. Fierytycoon --------------------------------- Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® |
|
From: <Dan...@ao...> - 2002-03-23 00:11:46
|
In a message dated 3/22/2002 9:10:26 AM Central Standard Time, sp...@ho... writes: I saw a book on it, heard a bit about it, but what IS Turbo C++ ? How is it different to C++? Turbo C++ was Borland's first version of C++ it was an expansion of Turbo C. Later Borland started calling it Borland C++ which is now up to version 6. If you're interested you can download this program from Borland's home page at WWW.borland.com/museum. Keep in mind that any output generated by Turbo C++ will be in an eight (8) bit DOS and when using graphics could cause problems in any version of Windows 95 or Higher. Good Luck, Danny PS, 10 years ago I started using Turbo C and when Turbo C++ was released I switched to that with a better understanding of Object Oriented Programming (OOP). DEJ |
|
From: Brian M. <str...@ho...> - 2002-03-22 21:58:44
|
I have tried Ioannis's code and it works just fine.
This is the exact code I have in my source file, and it works:
#include <conio.h>
#include <iostream>
void main() {
std::cout << "Enter any key.";
getch();
}
It does not wait for a RETURN to capture a single keystroke. Like Ioannis
pointed out at the end of his email, you might need a specific version of
the MingW compiler (you'd have to check his email again if you haven't
already deleted it, because i deleted it and i can't remember). The
compiler i use works with it just fine. I use Microsoft Visual C++ 5.0
(yeah, yeah, i know, traitor to the cause...) and getch() works when used
this way.
>From: Ricardo López Ruiz <ri...@po...>
>To: dev...@li...
>Subject: [Dev-C++] Re: getch(), getche()
>Date: Fri, 22 Mar 2002 18:05:46 +0100
>
>strange,
>but Ioannis' code only works in my
>Dev-C++ installation if I change
>#include <conio.h> by
>#include <conio.c>, and finally,
>the functions getch() and getche()
>are waiting to strike RETURN to
>read the characters... (¿?),
>and I think this is the same problem
>thta Daniel was pointed out.
>
>some other help about this point ??.
>Ricardo.
>
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
|