dev-cpp-users Mailing List for Dev-C++ (Page 321)
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: David M. <ci...@ya...> - 2003-09-05 14:39:04
|
chdir is #included from where?
Does it return a value?
If it does what value does it return and for what reason?
----- Original Message -----
From: Dondolo Mpho
To: 'dev...@li...'
Sent: Friday, September 05, 2003 9:48 AM
Subject: [Dev-C++] (no subject)
Can somebody help me with this code. asks you to enter a folder name and users chdir() to check if the folder does exist.
I am trying to get it to device names and tell me if the device exist.....eg.
my computer name is AN1490812... so I would like to find out if the divice name C:\\ does exit on my computer.
Can anybody help?
struct _finddata_t file;
char name[64];
int main(void)
{
cout<<"Enter a folder name :";
cin>>name;
chdir("C:\\");
long flag=0;
if((flag=_findfirst(name,&file))==-1L)
{
cout<<"No matching files\n";
}
else if(file.attrib &_A_SUBDIR)
{
cout<<"\\found \n";
}
system("PAUSE");
return 0;
}
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software |
|
From: Janos M. <ma...@fr...> - 2003-09-05 14:21:43
|
Hello everyone, I`m working on a project (developing with dev-cpp) what measures voltage. Values must update every 100 milliseconds. Thats my problem. When I update the static controls like LTEXT and CTEXT, it flickers. Updating with SetDialogItemText and SetWindowText produce the same result. If I double buffer the static control, create a memory bitmap and a DC, and do a TextOut inside the control, and BitBlt it, it works fine, doesn`t flicker. My problem is, I didn`t found any solution to use SetDialogItemText correctly. I don`t think double buffer and TextOut is the best way to avoid flicker on static controls, because in this case the control is unneeded, but I would like to use some design stuff which static controls has, and don`t want to rewrite it. Any ideas? Ps.: Sorry for my english. |
|
From: Dondolo M. <MDo...@OL...> - 2003-09-05 13:50:04
|
Can somebody help me with this code. asks you to enter a folder name and
users chdir() to check if the folder does exist.
I am trying to get it to device names and tell me if the device
exist.....eg.
my computer name is AN1490812... so I would like to find out if the divice
name C:\\ does exit on my computer.
Can anybody help?
struct _finddata_t file;
char name[64];
int main(void)
{
cout<<"Enter a folder name :";
cin>>name;
chdir("C:\\");
long flag=0;
if((flag=_findfirst(name,&file))==-1L)
{
cout<<"No matching files\n";
}
else if(file.attrib &_A_SUBDIR)
{
cout<<"\\found \n";
}
system("PAUSE");
return 0;
}
|
|
From: Edson T. M. M. <ta...@li...> - 2003-09-05 08:16:57
|
I think a feature greatly missed from Dev-C++ is a context-sensitive
help function, that is, when the user press F1 and the mouse is over a
function call from the standard libraries, it should open a help window
on that function, with the parameters it expect and descriptions (same
thing for types, or for #included headers -- should open a help on that
header, with all classes and methods it implements). It improves coding
speed a lot! Often I remember a function name that I must use, but I
forget the parameter order, or some detail about it.
This documentation, at least for the C language, is freely available
from the gnu texinfo (e.g., on the glibc texinfo). I don't know if there
is something similar for C++.
Is there some plugin out there that implements this feature on Dev-C++?
If not, at least, is there some kind of browser for the C and C++
standard libraries, that can be used along Dev-C++ ?
Thanks in advance,
Edson
|
|
From: w.y. <yok...@ve...> - 2003-09-05 06:55:47
|
Matthews wrote: > > For non-portable, use <io.h>, and _findfirst(), _findnext() and > _findclose(). It's not hard to figure out, just save the find handle from > _findfirst() in an int to use with _findclose(). Well, there isn't really a portable way to do it since there is no concept of "directories" etc. in standard C and C++ unfortunately. Even if you use the 'boost' libraries it wouldn't work unless someone implemented the platform specific code on your target machine. This is one of the annoying omissions of the standard I wish they would add. |
|
From: Matthews <dem...@uw...> - 2003-09-05 03:03:38
|
For non-portable, use <io.h>, and _findfirst(), _findnext() and _findclose(). It's not hard to figure out, just save the find handle from _findfirst() in an int to use with _findclose(). At 01:50 PM 04/09/2003 +0200, P.D. van Zelst wrote: >You're probably best off using the Win32 API functions FindFirstFile, >FindNextFile and FindClose... if you don't need portable code >(cross-platform code). Those functions will give you information about >the files matching a certain mask (*.txt for example) in the directory >you specify. You can then use this information to open the files if you >like. If you only need standard information, like the filesize for >example, you don't need to do anything else -- FindFirstFile and >FindNextFile already supply this information (using the WIN32_FIND_DATA >struct). |
|
From: Torlach R. <tor...@ho...> - 2003-09-04 18:58:04
|
After upgrading from 4.9.6.0 to 4.9.8.1 using vUpdate I see a number of additional menu items with the following text <ERR: xxx>, for example under File and immediately under Save As I see <ERR: 139>. Am I missing a resource file of something like that? Thanks, Torlach _________________________________________________________________ Express yourself with MSN Messenger 6.0 -- download now! http://www.msnmessenger-download.com/tracking/reach_general |
|
From: Muhammad F. <fa...@cy...> - 2003-09-04 12:59:26
|
Hi, Can anyone guide me about accessing Parallel Port directly (i mean without any drivers) in windows xp. Thanks Regards, Farhan |
|
From: P.D. v. Z. <pa...@my...> - 2003-09-04 11:50:04
|
You're probably best off using the Win32 API functions FindFirstFile,
FindNextFile and FindClose... if you don't need portable code
(cross-platform code). Those functions will give you information about
the files matching a certain mask (*.txt for example) in the directory
you specify. You can then use this information to open the files if you
like. If you only need standard information, like the filesize for
example, you don't need to do anything else -- FindFirstFile and
FindNextFile already supply this information (using the WIN32_FIND_DATA
struct).
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of
at...@su...
Sent: Thursday, September 04, 2003 1:29 PM
To: dev...@li...
Subject: [Dev-C++] Access to filesystem
just doing c++ exercises, while learning, and need to read? or open? all
files of a directory, but got no idea who to manage it.
while searching the libary, I found the following hits for "filesystem"
regstr.h:
- REGSTR_PATH_FILESYSTEM
TEXT("System\\CurrentControlSet\\Control\\FileSystem")
- REGSTR_PATH_FILESYSTEM_NOVOLTRACK
TEXT("System\\CurrentControlSet\\Control\\FileSystem\\NoVolTrack")
- REGSTR_PATH_CDFS
TEXT("System\\CurrentControlSet\\Control\\FileSystem\\CDFS")
- REGSTR_PATH_CDFS
TEXT("System\\CurrentControlSet\\Control\\FileSystem\\CDFS")REGSTR_VAL_W
IN31FILESYSTEM TEXT("Win31FileSystem")
shlobj.h:
- #define SFGAO_FILESYSTEM 0x40000000L
winnt.h:
- #pragma pack(pop)
typedef enum _CM_SERVICE_NODE_TYPE {
DriverType=SERVICE_KERNEL_DRIVER,
FileSystemType=SERVICE_FILE_SYSTEM_DRIVER,
Win32ServiceOwnProcess=SERVICE_WIN32_OWN_PROCESS,
Win32ServiceShareProcess=SERVICE_WIN32_SHARE_PROCESS,
AdapterType=SERVICE_ADAPTER,
RecognizerType=SERVICE_RECOGNIZER_DRIVER
} SERVICE_NODE_TYPE;
and some more in deeper files.
Is this the right way, and if, where will I get informations how to
handle?
even http://cplus.about.com/library/blcplustut.htm got no hits.
thanx
regards
Achim
|
|
From: <at...@su...> - 2003-09-04 11:27:48
|
just doing c++ exercises, while learning, and need to read? or open? all =
files of a directory, but got no idea who to manage it.
while searching the libary, I found the following hits for "filesystem"
regstr.h:
- REGSTR_PATH_FILESYSTEM =
TEXT("System\\CurrentControlSet\\Control\\FileSystem")
- REGSTR_PATH_FILESYSTEM_NOVOLTRACK =
TEXT("System\\CurrentControlSet\\Control\\FileSystem\\NoVolTrack")
- REGSTR_PATH_CDFS =
TEXT("System\\CurrentControlSet\\Control\\FileSystem\\CDFS")
- REGSTR_PATH_CDFS =
TEXT("System\\CurrentControlSet\\Control\\FileSystem\\CDFS")REGSTR_VAL_WI=
N31FILESYSTEM TEXT("Win31FileSystem")
shlobj.h:
- #define SFGAO_FILESYSTEM 0x40000000L
winnt.h:
- #pragma pack(pop)
typedef enum _CM_SERVICE_NODE_TYPE {
DriverType=3DSERVICE_KERNEL_DRIVER,
FileSystemType=3DSERVICE_FILE_SYSTEM_DRIVER,
Win32ServiceOwnProcess=3DSERVICE_WIN32_OWN_PROCESS,
Win32ServiceShareProcess=3DSERVICE_WIN32_SHARE_PROCESS,
AdapterType=3DSERVICE_ADAPTER,
RecognizerType=3DSERVICE_RECOGNIZER_DRIVER
} SERVICE_NODE_TYPE;
and some more in deeper files.
Is this the right way, and if, where will I get informations how to =
handle?
even http://cplus.about.com/library/blcplustut.htm got no hits.
thanx
regards
Achim
|
|
From: <age...@co...> - 2003-09-04 00:08:16
|
One of you might have SoBig.F. Please check, I have been getting lots if virus e-mails. -- ~~Scott Simontis~~ Programmer |
|
From: Per W. <pw...@ia...> - 2003-09-03 17:03:05
|
Double-precision numbers, at least the normal 8-byte IEEE-compliant type
have about 15 valid digits. Since you emit 15 digits after the decimal
point, the last digits will be wrong as soon as the number gets larger
than 1. For single precision float, you have about 8 valid digits.
If you adjust number of decimals so that total number of digits are <=3D 15=
,
the output will be correctly rounded.
If you don't need a fixed number of decimals, but just want to emit a
floating-point number, you might look into %g instead. It will
automatically adjust number of decimals emitted.
If you need an integer, don't just try (int)fp since that will truncate
the number. If the value was expected to be 3.0 but was 2.9999999999999
the integer will be set to 2. Instead do my_int =3D (int)(fp + 0.5) to
correctly round 2.49999 -> 2, 2.500001 -> 3. If you really want to
truncate, you should still do my_int =3D (int)(fp + EPS) where EPS is a
small number compared to expected range of fp, i.e. if fp is 0-100, set
EPS =3D 1E-10 or something. Note that fp / EPS must be smaller than 1E15
(should preferably be 1E10 - 1E13 or therearound) or fp + EPS will be
identical to fp because of cancellation, i.e. EPS will be so much smaller
than fp that during the add, EPS will be rounded to zero.
/Per W
On Wed, 3 Sep 2003, Lu=EDs Br=E1s wrote:
> When I try to compile this program:
>
> ********************************************
> #include <stdio.h> // printf
> #include <stdlib.h> // system
>
> int main(int argc, char *argv[])
> {
> double a;
> a =3D 0.3333;
> printf( " a =3D %15.15f\n", a );
> a *=3D 10;
> printf( " a =3D %15.15f\n", a );
> a *=3D 10;
> printf( " a =3D %15.15f\n", a );
> a *=3D 10;
> printf( " a =3D %15.15f\n", a );
> a *=3D 10;
> printf( " a =3D %15.15f\n", a );
> system("PAUSE");
> return 0;
> }
> ********************************************
>
> I get this output:
>
> ********************************************
> a =3D 0.333300000000000
> a =3D 3.333000000000000
> a =3D 33.329999999999998
> a =3D 333.299999999999950
> a =3D 3332.999999999999500
> ********************************************
>
> How to avoid this error?
> Thank in advance for any response.
>
>
> =3D=3D=3D=3D=3D
> +=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=
=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D
> Lu=EDs Filipe Delgado Br=E1s
> Eng.=BA Civil
> Porto - Portugal
> email: lf...@ya...
> http://www.fotopt.net/autor.asp?autor=3D2637
> +=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=
=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: <ten...@ne...> - 2003-09-03 16:11:28
|
The binary representation for floating point numbers cannot be perfectly accurate, so that imprecissions. With double variables you get better precission that simple float. But if you want more precission, then, as said by w.y., there shall be special libraries. w.y. wrote: >"Luís Brás" wrote: > > >> a = 0.333300000000000 >> a = 3.333000000000000 >> a = 33.329999999999998 >> a = 333.299999999999950 >> a = 3332.999999999999500 >> >> > > > >>How to avoid this error? >> >> > >You have to design your own floating point format type, or find a >library that does it... >If you need _exact_ FP calculations, the built in types can't do it. > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |
|
From: w.y. <yok...@ve...> - 2003-09-03 10:45:32
|
Winston Ewert wrote: > > Is it possible to use COM interfaces from Mingw? If so, can somebody point > me in the correct direction? I have used them through DirectX, so I think it should be possible to use other COM interfaces. |
|
From: w.y. <yok...@ve...> - 2003-09-03 10:42:34
|
"Luís Brás" wrote: > > a = 0.333300000000000 > a = 3.333000000000000 > a = 33.329999999999998 > a = 333.299999999999950 > a = 3332.999999999999500 > How to avoid this error? You have to design your own floating point format type, or find a library that does it... If you need _exact_ FP calculations, the built in types can't do it. |
|
From: Luís B. <lf...@ya...> - 2003-09-03 10:30:07
|
--- Neszt Tibor <ne...@ss...> wrote: > Instead of: > > > printf( " a = %15.15f\n", a ); > > Try: > printf( " a = %15.10f\n", a ); > > :-) > > Tibor > It's not a question of output. Numerically the error is still there: ********************************* printf( "(int)a = %d\n", (int)a); ********************************* output -> 3332 ===== +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Luís Filipe Delgado Brás Eng.º Civil Porto - Portugal email: lf...@ya... http://www.fotopt.net/autor.asp?autor=2637 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
|
From: Neszt T. <ne...@ss...> - 2003-09-03 08:45:34
|
Instead of:
> printf( " a = %15.15f\n", a );
Try:
printf( " a = %15.10f\n", a );
:-)
Tibor
|
|
From: Neszt T. <ne...@ss...> - 2003-09-03 08:38:12
|
> ******************************************** > a = 0.333300000000000 > a = 3.333000000000000 > a = 33.329999999999998 > a = 333.299999999999950 > a = 3332.999999999999500 > ******************************************** > > How to avoid this error? It is error? Hmm.. I guess, It is intelligence :-)))) Tibor |
|
From: Luís B. <lf...@ya...> - 2003-09-03 08:17:05
|
When I try to compile this program:
********************************************
#include <stdio.h> // printf
#include <stdlib.h> // system
int main(int argc, char *argv[])
{
double a;
a = 0.3333;
printf( " a = %15.15f\n", a );
a *= 10;
printf( " a = %15.15f\n", a );
a *= 10;
printf( " a = %15.15f\n", a );
a *= 10;
printf( " a = %15.15f\n", a );
a *= 10;
printf( " a = %15.15f\n", a );
system("PAUSE");
return 0;
}
********************************************
I get this output:
********************************************
a = 0.333300000000000
a = 3.333000000000000
a = 33.329999999999998
a = 333.299999999999950
a = 3332.999999999999500
********************************************
How to avoid this error?
Thank in advance for any response.
=====
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Luís Filipe Delgado Brás
Eng.º Civil
Porto - Portugal
email: lf...@ya...
http://www.fotopt.net/autor.asp?autor=2637
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
|
|
From: Kit <seo...@st...> - 2003-09-03 05:49:47
|
Try this: http://cplus.about.com/library/blcplustut.htm Charles *Unknown* wrote: > How do I read the tutorials? I don't understand any of them and I > downloaded ALOT of tutorials > > _________________________________________________________________ > MSN 8: Get 6 months for $9.95/month http://join.msn.com/?page=dept/dialup > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > - -- Kiti |
|
From: Ioannis V. <iv...@em...> - 2003-09-03 05:16:56
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Zodiaq > Sent: Tuesday, September 02, 2003 10:38 PM > To: Dev...@li... > Subject: Re: [Dev-C++] Bits Bytes megabytes help needed > > > Hello Eric and all Dev-C++ users, > > Tuesday, September 2, 2003, 9:03:03 PM, Eric wrote as follows: > > EC> Bit bytes megabytes > > EC> Can you tell me how to convert theses by hand? > > First, and very important: if we are talking about binary (computer > based) system we do not use k, M or G... these are used in physics, > not in computers... only hard driver makers use these to cheat (yeah, > I call it cheating!) customers... with computers use: > 2^10 - Ki - kilo binary... so we have KiB (kibibytes) and Kib Those Kibi-stuff are not recognised worldwide. The established stuff are 1 Kilobyte=1024 bytes and so on. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: Ioannis V. <iv...@em...> - 2003-09-03 05:16:56
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Eric Churches > Sent: Tuesday, September 02, 2003 10:03 PM > To: dev...@li... > Subject: [Dev-C++] Bits Bytes megabytes help needed > > > Bit bytes megabytes > > Can you tell me how to convert theses by hand? > > How many kilobytes in a megabyte? > > 1024 how would get this answer 1 KB=1024 bytes 1 MB=1024 KB 1 GB=1024 MB HDD manufacturers usually cheat by using 1000 MB for a GB (and so on) but all Oses tell the truth so far. :-) > > 20 to the power of 2? If this is right how do you work it out > or is there another way. Computers store data in binary form so everything is in power of 2. > > I know there is 8 bits to a byte That's not required. In most systems it is though. To be portable check CHAR_BIT in <limits.h> in C and numeric_limits<char>::digits in <limits> in C++. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: Winston E. <wet...@ho...> - 2003-09-02 20:44:05
|
Is it possible to use COM interfaces from Mingw? If so, can somebody point me in the correct direction? Thanks, Winston Ewert _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail |
|
From: Zodiaq <zo...@ac...> - 2003-09-02 19:38:34
|
Hello Eric and all Dev-C++ users, Tuesday, September 2, 2003, 9:03:03 PM, Eric wrote as follows: EC> Bit bytes megabytes EC> Can you tell me how to convert theses by hand? First, and very important: if we are talking about binary (computer based) system we do not use k, M or G... these are used in physics, not in computers... only hard driver makers use these to cheat (yeah, I call it cheating!) customers... with computers use: 2^10 - Ki - kilo binary... so we have KiB (kibibytes) and Kib (kibibytes) 2^20 - Mi - mega binary... 2^30 - Gi - giga binary... EC> How many kilobytes in a megabyte? huh, lol... there are 1024 Bytes in KiB and there 1024 KiB in MiB but there are 8192 bits in KiB... EC> 1024 how would get this answer EC> 20 to the power of 2? If this is right how do you work it out EC> or is there another way. EC> I know there is 8 bits to a byte EC> Can anyone help without using a calulator it is not hard... just remember power of 2 till 1048576 bacuse you will need it in many ocasions in study... so if anyone asks you: 2^8 ? you say without a hesitation 256... and so on - have phun... and more about Kis and others: http://physics.nist.gov/cuu/Units/binary.html one off-topic: I have a good connection to internet, 64KiB/s is more than enough for me... but when I see what I waste of place these mails make it makes me so angry! Have you people looked at space they take?? For example mail I'm responding to is over 4KiB size, but text inside is only 500 bytes! remaing 3.5 is trash!!! trash! trash! lots of "received from", some anti-spam feature info from SF and then some list infos - which NOBODY looks at as recently few people shown us trying unsubscribe by sending info to list! trash... I'm programming in WinAPI using mingw to get smallest possible programs, and when I see this waste of space in these mails... ehhh... where is my calming-down pill!? -- regards, Zodiaq |
|
From: Eric C. <ec...@ih...> - 2003-09-02 19:03:13
|
Bit bytes megabytes Can you tell me how to convert theses by hand? How many kilobytes in a megabyte? 1024 how would get this answer 20 to the power of 2? If this is right how do you work it out or is there another way. I know there is 8 bits to a byte Can anyone help without using a calulator Thanks Eric --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003 |