C-SIG - C++ LANGUAGE, SPECIAL INTEREST GROUP ACGNJ - AMETEUR COMPUTER GROUP OF N.J. Chairman - B.Arnold (908)735-7898 Vice Chairman - R. Winter MEETINGS - 3rd Tuesday, Scotch Plains Rescue Squad, 7:30 PM approx. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Searching ZIP: CSIG9701.ZIP // Object: To create a backup of the config.sys and autoexec.bat // files in a special directory, C:\root\ // // The utility may also be placed in the autoexec.bat file // to run whenever the computer starts. // // The system files will be copied and renamed with the // extension 001, 002, etc. Use this program just before // making any changes. There's no need to worry about // names because the files will be given unique numerated // names and will still have their original dates. // // In addition, the program checks first to determine if any // changes were made since the last time it was run. If no // changes have occurred, it simply exits without making a // redundant copy. Length Method Size Ratio Date Time CRC-32 Attr Name ------ ------ ----- ----- ---- ---- -------- ---- ---- 4362 DeflatN 1603 64% 01-24-97 07:06 e06e3b94 --w- AUTOBAK.CPP 15536 DeflatN 9287 41% 01-24-97 07:06 275b0d98 --w- AUTOBAK.EXE ------ ------ --- ------- 19898 10890 46% 2 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Searching ZIP: CSIG9702.ZIP * OBJECT: To HEX-DUMP a data file like this: 0000000 4A 6F 68 6E 20 51 2E 20 50 75 62 6C 69 63 20 20 John Q. Public 0000010 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 . 0000020 41 6E 79 20 54 6F 77 6E 2C 20 55 2E 53 2E 41 2E Any Town, U.S.A. 0000030 20 31 30 30 30 30 20 20 20 20 20 20 20 20 20 00 10000 . 0000040 23 00 CD 4C 34 43 AE 47 E1 7A 0C 24 FE 40 #..L4C.G.z.$.@ * OBJECT: The output is the same for DUMPS.CPP * NOTE: This program is like "DUMP.C" except it uses IOSTREAMS. Length Method Size Ratio Date Time CRC-32 Attr Name ------ ------ ----- ----- ---- ---- -------- ---- ---- 2010 DeflatN 890 56% 02-15-97 21:27 dc4490a3 --w- DUMP.C 13588 DeflatN 8224 40% 02-15-97 21:27 989c1152 --w- DUMP.EXE 2293 DeflatN 1003 57% 02-16-97 11:11 8171fda9 --w- DUMPS.CPP 24592 DeflatN 11859 52% 02-16-97 11:11 718fdc65 --w- DUMPS.EXE ------ ------ --- ------- 42483 21976 49% 4 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Searching ZIP: CSIG9703.ZIP // STARSAVE.CPP - A simple screen saver program // // Object: To blank the screen and then draw random stars. The stars vary in // size, color, x and y position on the screen. 20 stars are drawn // and then stars are erased and redraw forever. Length Method Size Ratio Date Time CRC-32 Attr Name ------ ------ ----- ----- ---- ---- -------- ---- ---- 96 DeflatN 90 7% 02-03-97 11:08 7c1a999d --w- GOWIN.BAT 766 DeflatN 139 82% 03-15-97 12:04 49108683 --w- STAR.ICO 1481 DeflatN 642 57% 01-31-96 20:49 a07cdffa --w- STARS.CPP 12254 DeflatN 7891 36% 01-31-96 20:49 e040f887 --w- STARS.EXE 10167 DeflatN 3571 65% 03-15-97 23:47 ff3f6bf7 --w- STARSAVE.CPP 551 DeflatN 301 46% 03-19-97 20:00 58a25956 --w- STARSAVE.DEF 104 DeflatN 76 27% 03-15-97 16:28 82092066 --w- STARSAVE.H 123 DeflatN 61 51% 03-15-97 23:51 91535076 --w- STARSAVE.PK 724 DeflatN 391 46% 03-15-97 17:05 182a88d8 --w- STARSAVE.RC 20992 DeflatN 9426 56% 03-19-97 20:00 5bcec740 --w- STARSAVE.SCR ------ ------ --- ------- 47258 22588 53% 10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Searching ZIP: CSIG9704.ZIP /* Function to check and convert a "packed" gregorian date (1/1/83) */ /* into its "expanded" form (01/01/83). Will return a 0 if success- */ /* ful or a -1 if unable to convert gregorian date received. */ Length Method Size Ratio Date Time CRC-32 Attr Name ------ ------ ----- ----- ---- ---- -------- ---- ---- 2304 DeflatN 646 72% 08-11-95 21:04 79a7b95e --r- CVTDATE.C 2048 DeflatN 765 63% 08-11-95 21:04 9fd438cf --r- GTOJ.C 6630 DeflatN 2545 62% 04-14-97 14:30 2f2d9269 --w- JDN_L.C 13625 DeflatN 7326 47% 04-15-97 18:01 c9be07a6 --w- JDN_L.EXE 2688 DeflatN 942 65% 08-11-95 21:04 0a7c6d05 --r- JTOG.C 1920 DeflatN 720 63% 08-11-95 21:04 2a958eb5 --r- JTOJ.C 1920 DeflatN 614 69% 08-11-95 21:04 f2eb3999 --r- WEEKDAY.C 8887 DeflatN 2247 75% 04-15-97 18:21 47df2d04 --w- WHAT_DAY.C 18739 DeflatN 10344 45% 04-15-97 18:24 478fe0c8 --w- WHAT_DAY.EXE 3045 DeflatN 2041 33% 04-14-97 14:18 a448cc90 --w- WHAT_DAY.OBJ ------ ------ --- ------- 61806 28190 55% 10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Searching ZIP: CSIG9705.ZIP // SIEVEw.C // // An implementation of the "Sieve of Eratosthenes" for windows // // Purpose: // 1. Finds all prime numbers up to 16381 // 2. Very CPU intensive and generally suitable for a benchmark. // 3. This implimentation is a graphic demo and NOT a benchmark. Length Method Size Ratio Date Time CRC-32 Attr Name ------ ------ ----- ----- ---- ---- -------- ---- ---- 5208 DeflatN 5035 4% 05-18-97 11:33 6aab0ccd --w- CSIG9705.GIF 111 DeflatN 69 38% 05-18-97 14:45 addbf3b1 --w- FILES 159 DeflatN 147 8% 05-18-97 14:39 5f1d96a6 --w- GOWIN.BAT 2173 DeflatN 1096 50% 05-18-97 14:52 e37fbc79 --w- SIEVE.C 35912 DeflatN 17945 51% 05-18-97 14:53 cea4f812 --w- SIEVE.EXE 10719 DeflatN 3717 66% 05-18-97 14:40 3e2a3aff --w- SIEVEW.CPP 303 DeflatN 202 34% 05-15-97 22:49 4607fe24 --w- SIEVEW.DEF 49152 DeflatN 6986 86% 05-18-97 14:40 d486ce9e --w- SIEVEW.EXE 766 DeflatN 118 85% 05-17-97 17:20 001d5b01 --w- SIEVEW.ICO 28 Stored 28 0% 05-18-97 14:26 47d60b35 --w- SIEVEW.RC ------ ------ --- ------- 104531 35343 67% 10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Searching ZIP: CSIG9706.ZIP // Object: To "walk" down a directory tree and calculate the following. // 1. The total size of each directory taking into // account the cluster size on the storage device. // 2. The date of the Oldest file in each directory. // 3. The date of the Newest file in each directory. // 4. The total space used and the remaining space. /* ************************ SAMPLE OUTPUT ******************************* ; D:\BC45\INCLUDE ; 06/14/97 ; 20:28:21 8 INCLUDE ................................... 08-29-95 ... 08-29-95 1 --+ CLASSLIB ................................ 08-29-95 ... 08-29-95 1 --+--+ OBSOLETE ............................. 08-29-95 ... 08-29-95 1 --+ GL ................................ 08-29-95 ... 08-29-95 1 --+ OCF ................................ 08-29-95 ... 08-29-95 1 --+ OSL ................................ 08-29-95 ... 08-29-95 3 --+ OWL ................................ 08-29-95 ... 12-12-96 1 --+ OWLCVT ................................ 08-29-95 ... 08-29-95 1 --+ SYS ................................ 08-29-95 ... 08-29-95 13 MB used 121 MB avail ************************************************************************* */ Length Method Size Ratio Date Time CRC-32 Attr Name ------ ------ ----- ----- ---- ---- -------- ---- ---- 41466 DeflatN 20600 51% 06-14-97 21:35 5342115c --w- SIZEDATE.EXE 9808 DeflatN 3330 67% 06-14-97 21:35 cf028a37 --w- SIZEDATE.C 3853 DeflatN 1252 68% 06-16-97 22:11 33f9c06d --w- SORT1.C 10232 DeflatN 5572 46% 06-16-97 22:16 65727b86 --w- SORT1.EXE ------ ------ --- ------- 65359 30754 53% 4 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Searching ZIP: CSIG9708.ZIP // splash.cpp // // Object: // to use Microsoft MFC library to create a simple // splash screen. Except for the windows size and position functions, // this program parallels the "getwin.c" program that was written using // the Windows API functions. // // This program may be used to compare (at a very simple level) the // differences between API programming and MFC programming. // (Microsoft Foundation Classes) Length Method Size Ratio Date Time CRC-32 Attr Name ------ ------ ----- ----- ---- ---- -------- ---- ---- 17010 DeflatN 805 96% 08-16-97 12:36 0816bc75 --w- ACGNJ.BMP 119808 DeflatN 50272 59% 08-18-97 22:56 74fa97ec --w- AUGUST.EXE 7151 DeflatN 1571 79% 08-16-97 16:33 1936c3fb --w- AUGUST.MAK 7761 DeflatN 2698 66% 11-19-95 12:20 da6d7c1d --w- GETWIN.C 303 DeflatN 204 33% 11-18-95 21:21 d5bb56e5 --w- GETWIN.DEF 28672 DeflatN 5615 81% 11-19-95 12:20 08b5ebe0 --w- GETWIN.EXE 766 DeflatN 181 77% 11-18-95 21:57 8e2be31d --w- GETWIN.ICO 59 Stored 59 0% 11-19-95 10:40 dd41c81b --w- GETWIN.RC 111 DeflatN 97 13% 11-19-95 00:16 666955d3 --w- GETWIN0.BAT 500 DeflatN 268 47% 08-16-97 15:07 49f67665 --w- RESOURCE.H 46680 DeflatN 8432 82% 08-16-97 15:07 9f9f1b28 --w- SPLASH.APS 243 DeflatN 182 26% 08-16-97 14:55 bd47fcb6 --w- SPLASH.CLW 4138 DeflatN 1607 62% 08-18-97 22:49 45d29e20 --w- SPLASH.CPP 1603 DeflatN 441 73% 08-16-97 15:07 58df0eb7 --w- SPLASH.RC 499 DeflatN 281 44% 08-13-97 22:35 1b65e392 --w- STDAFX.H 35328 DeflatN 2257 94% 08-16-97 16:33 1e37e49a --w- AUGUST.MDP ------ ------ --- ------- 270632 74970 73% 16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Searching ZIP: CSIG9709.ZIP CSV2TXT.C OBJECT: To convert a "CSV" or "comma separated values" file into a fixed block text file. This program uses a 'STATE DIAGRAM' method to correctly parse the input data. Length Method Size Ratio Date Time CRC-32 Attr Name ------ ------ ----- ----- ---- ---- -------- ---- ---- 3198 DeflatN 1215 63% 09-14-97 14:36 86d1210e --w- CSV2TXT.C 38042 DeflatN 18928 51% 09-14-97 14:36 749f2c64 --w- CSV2TXT.EXE 1315 DeflatN 700 47% 09-14-97 14:13 30fd0c29 --w- CSVTEST.C 37452 DeflatN 18533 51% 09-14-97 14:36 5d9c8aca --w- CSVTEST.EXE 92 DeflatN 61 34% 09-14-97 15:14 53bf091a --w- SAM.CSV 7409 DeflatN 1472 81% 09-14-97 13:51 51da2e64 --w- MSG.CSV 16188 Stored 16188 0% 09-28-97 15:53 6f83b0e9 --w- STATE1.GIF ------ ------ --- ------- 103696 57097 45% 7