This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (749 messages)
Chris, Give the BBS a call at 603-882-1599 (Type Listings at the Password: prompt).
#Unconventional Notation
Message #24430
Some time last year I ran accross an unusual naming convention for variables in C. Each name included an identifier for the type of variable. This seems like it would be useful for a project I am doing, where there is a significant chance of accidentally mixing up types during…
Gardner – I'm working on one right now – should be uploading it in a day or two. – Dale
The curses library comes with the Lattice C compiler. Lattice sells the source code to the library for $125.00. Al Stevens
Thanks for the response, jon. Much easier having it explained than figuring it out from the hex! Dave R.
#Library listings?
Message #24426
Hello, Are there summary files listing what files are available for downloading? I haven't been able to find any with the keywords SUMMARY, LIB or DES. – Gardner
Peter – I'm working on it – it should be ready in a day or two – Dale
Floating point numbers are not real 🙂 easy to work with but here goes: An IEEE 754 Double Precision (64 bit) number has 3 parts: Bit 63 (the MSB) is the sign of the number. Bits 62 – 51 (11 bits) are the biased exponent. Bits 51 – 0 (52…
#curses
Message #24423
My cousin is still eager for that real cheap curses package from Lattice that cost only $125.00 that you mentioned in the Febuary issue. Where did you find it?
Locating code listing
Message #24422
Sysop, I have been unable to locate the code listing on 3-D graphics and X-windows from the Feb. 1990 issue. Can you pleas direct me to them. William Pottinger 71061,1577
I would be glad to have an catalog in this forum. -Peter
#IEEE Floating Point
Message #24420
I am trying to decode a Lotus 1-2-3 file and I find real numbers stored in 64 bit IEEE floating point format. Can anyone tell me how that works? Thanks a lot
C printer drivers?
Message #24419
I could use some help. I would like to increase the utility of a C program by increasing the number of graphics printers it can use. It runs under dos on a P.C. type machine. I would like some recommendations on whether I am better off finding printer drivers in…
Jim, It seems to me that, to run MS-DOS or OS/2 on any non-80×86 processor, you would have to write, not only an emulator for the 80×86 processor but also provide a BIOS in either native or emulation mode. It also seems to me that any possible performance advantage would…
I can't seem to find FD.ARC anywhere. Can you help? Thanks Robert
Don Thanks for the info! It is working from the wrong direction, tho. I'm not about to write a program that searches the entire directory structure looking for JOINed subdirectories. An interesting DOS call tho….have any more you wanna tell me about? Better yet, is there a book somewhere that'll…
No, my book is not Zortech specific. It is a C programmer's C++ tutorial and is about C++ 2.0, and avoids anything "tricky" if I can help it. It has many compilable exercises, some of which do not work with Zortech 2.0, particularly the chapter on iostreams. I asked a…
Agreed, when viewed from the perspective of the compiler developer/purveyor such as yourself, the RM should be the guiding light. But from the perspective of the working programmer or the teacher of programmers, the way things work should prevail. You've got to use what's out there. Bjarne is a commanding…
#DHRYSTONEs in Modula2
Message #24413
I am trying to locate the Modula2 source code for the DHRYSTONE Benchmarks. Anybody help me locate? Thanks, Dan Nimtz
#Motorola RISC & DOS
Message #24412
I would be very interested in talking to anyone who is doing software development for the Motorola 88xxx RISC processor. I'm presently working on a project involving the 88100 + 88200 and am seeking information about running MS-DOS or OS/2 on this architecture. I'm using an OPUS 88xxx and Motorola…
Yea, ANSI drafts ahve been a wonderful boost to C programmers. My toolbox compiles under many brands, with only slight hanges in 1 header file. –John
I guess we're coming from two different worlds. I'm working on defining the language, and have studied the language long before I could actually compile it. I see the _bugs_ in the compiler then when I try to use them. So your book is specific to Zortech 1.06's implementation of…
yea, it is not easy to follow even if you do know assembly. But once you get the hang of it, you learn the kind of code the compiler generates. I used to debug Zortech with Periscope. I debugged the compiler as much as my own code! Good luck. –John
Hmm, if I may interject: Agreed we don't have a standard in the sense of ANSI C++ yet, however we do have three things at this date: an ANSI C standard, a reasonable C++ document, and Bjarne Stroustrup (and not necessarily in that order that puts us in a very…
In the absence of a standard, there are no bugs, only implementations. The bugs are in the eyes of the creator, not the user. What the user sees is how it works. Even with a moving target, you must teach beginners about the real world. Ivory tower stuff might be…
#Personal Workstation
Message #24406
Help. Can anyone tell me where I can find the code from Personal Workstation? The cover indicates that the code can be found here. I'm looking for the timed execution program for OS/2. Thanks. Chris
Jim, After typing the below description I came to the thought that this is working from the wrong position, tell me so if its true. But maybe it will help give you and idea anyway. I don't know if this will help but an undocumented DosCall with AH = 60h…
I'm gonna take a look at the disassembled code to see exactly what is going on. Actually, I already did this but, not being proficient at assembly language, I didn't give it a lot of time. I'll make an integer version of my code to keep the asm simple, and…
Which Cfront are you teaching? Your readers will have 2.1, a bug-fix version, pretty soon. So if you teach the bugs the compiler will not match any more. I prefer to say what is right, and then discuss various compiler's beefs with it. Such a feature is to be avoided…
The hidden parameter is used for normal functions. The static area (no hidden parameter) is used for variadic functions. No temps? You've got to put intermediate results _somewhere_. Consider c=a+b+c; the result from a+b has to be stored somewhere (won't fit in a register!) and that object then used as…
NETWORKING
Message #24401
I AM STARTING ON A PROJECT WHERE I NEED TO WRITE AN INTERFACE BETWEEN OUR NOVELL TOKEN RING NETWORK AND ULTIMATELY THE WORLD OF X.25. I HAVE THE X.25 SPEC AND AS I EXPECTED IT HAS A LOT OF DETAIL AND IS A GREAT REFERENCE BUT I AM ALSO INTERESTED…
Cristian, Here it it: /* ———– interupt.h ———— */ /* ——- the interrupt function registers ——– */ typedef struct { int bp,di,si,ds,es,dx,cx,bx,ax,ip,cs,fl; } IREGS; #define VIDEO 0x10 #define DOS 0x21 #define KYBRD 9 #define KEYBOARD 0x16 #define TIMER 8 #define KBDATA 0x60 #define KBCONTROL 0x61 #define KBSTATUS 0x64 #define ZEROFLAG…
John, The difference between "what does cfront do" and "what is right" is moot when you are teaching. Why teach what the RM says if the software doesn't work that way? New C++ programmers want to know what to expect when they code and run programs, not what some AT&T…
John, > The _TEMxx is the hidden parameter for the answer area. The caller > tells the function where to put the result. Is this "answer area" required when *not* using variadic functions? I have a vector class which looks (more or less) like this: class vector { int x,…
#Catalog of LIB's files
Message #24397
Jon and everybody else – Would anyone be interested in having such a catalog of the libraries here, updated each month? (similar to those in the IBM forums) I prepare such a catalog monthly for a few forums, and could easily add this one. Most of the work is done…
Yes…again I let the jargon get the best of me. I figured that out just a little after posting the my message. Thanks. -Bob
I keep wanting to review version control systems so I can use that line in an article. –John
The _TEMxx is the hidden parameter for the answer area. The caller tells the function where to put the result. Variadic functions will have a static buffer in them and the function returns a pointer to that buffer, which contains the result. The caller than immediatly copies it back out…
SHELL & /UTIL
Message #24392
Hey, hot stuff!!! Thanks, I'll give a shot!
I was playing with enum's and cfront 2.0 about 2 months ago and I'm pretty sure it do' d pretty sure it do'd what the DRM said (except that int assignments to enum objects gave warnings not errors I expect as a way of staying compatible with older C programs).
Yes, function overloading can be very powerful. Ditto for operator overloading but only within reason (it can be easily abused and lead to cryptic programs). And yes, your abs example deals with some aspects of all this. That is why I'm a C++ enthusiant now, having been a die-hard C…
A variadic function is one like printf, where the number and types of argument are not know till execution time of the program.. they're function declared with ellipsis notations 'type func(type arg1 etc, …);'
Interupt.h, Extend..
Message #24388
Las week a bought Turbo C Memory … and Extending Turbo C books. The programs in the second book need the header file "interupt.h", but the listin is not include{ in the book. I have written a file like this: #define KEYBOARD 0x16 #define TIMER 0x1a typedef struct { int…
I couldn't find "demangled" in Webster's Ninth, but it certainly sounds like something that ought to be done to a listing. Thanks for the quick reply, and I will assume that the job is in the works.
> Chances are the code from that issue doesn't work with Zortech 2.0. I > developed it with 1.7 back when I was first exploring C++, so it might not be > (probably isn't) 100% C++. Thanks for the response, though disappointing. Oh well, making modifications is often a good…
Hey– I like that void abs( unsigned ); bit you did! Continuing with C++ a little, the Zortech readme file states: > Variadic Pascal and C++ functions that return structures return them in a > static temporary rather than on the stack….. What? More nomenclature?!? What are "variadic" functions?? and…
the think I was looking for is code to add a disk drive to a microcontroller application. The 68HC11 is a primitive 8-bit computer. But the whole thing is on one chip, and it is cheap. –John
There is nothing special about using a member pointer in another class. A parameter is a parameter, a variable is a variable. Zortech does not yet support member pointers. They decided to release it before it was finished, figuring not many would notice. It will be available some day. The…
sorry, now I remember a thread dealing with navigational problems in the DRM. Just replace my previous detailed message with "RTFM". Just kidding… I'll remember that you have a manual, and just point you in the right direction. As for this question in particular, I just looked up "enumeration" in…
that is a big difference I expect in a C++ library. Just have _one_ function name! float abs (float&); double abs (double&); int abs (int); long abs (long); void abs (unsigned); //to trigger a compiler error etc. –John
Page 5 of 15