⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 http:^^www.cs.wisc.edu^~gid^oop.html

📁 This data set contains WWW-pages collected from computer science departments of various universities
💻 HTML
字号:
Date: Tue, 05 Nov 1996 21:56:46 GMTServer: NCSA/1.5Content-type: text/htmlLast-modified: Mon, 05 Aug 1996 04:34:02 GMTContent-length: 1684<HTML><HEAD><TITLE>OO C stuff</TITLE></HEAD><BODY><H2>Object Oriented Programming in C</H2><p> Here is a small collection of possibly-interesting tidbits relating toobject-oriented programming in C.  Some of these are written by me,others I've pulled off the net.  <p>The idea is to use function pointers to implement dynamic bindingin order to write easily-extensible code as well as to effect data andcode abstraction through well-defined interfaces (in this case, function signatures).  (Follow all that??) This method is similar to using virtualfunctions and subtyping in C++, but it's more flexible: there's nodifference between member functions and non-member functions, and thesubtyping mechanism does not depend on the language's builtin dynamicmemory allocation mechanism (i.e., operator new).  And, of course, itdoesn't require C++, so you don't need to pay for what you don't want.<p>Here are some links.<p><LI><!WA0><!WA0><!WA0><!WA0><A HREF="http://www.lysator.liu.se/c/pikestyle.html"><EM>Notes on Programming in C</EM></A> by Rob Pike <LI><!WA1><!WA1><!WA1><!WA1><A HREF="http://www.cs.wisc.edu/~gid/rgb.c">rgb.c</A>: a simple example program<LI><!WA2><!WA2><!WA2><!WA2><A HREF="http://www.sun.com:80/sunworldonline/swol-10-1995/swol-10-ooc.html"><em>some article</em></a>: taken from <em>SunWorld OnLine</em><p><i>update:</i> The last project I worked on that required creating newcode from scratch (it was a simulator for an <!WA3><!WA3><!WA3><!WA3><ahref="http://www.ece.wisc.edu/~jes/ece752.html">architecture class</a>project) was done in C++, using its inheritance method.  Apparently, Idon't practice what I preach.  Oh well.<p>Comments/flames welcome:<!WA4><!WA4><!WA4><!WA4><A HREF="mailto:gid@cs.wisc.edu"> <ADDRESS>gid@cs.wisc.edu</ADDRESS></A></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -