home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1997 / ARCHIVE_97.iso / text / hints / vol_09 / issue_12 < prev   
Text File  |  1996-08-10  |  8KB  |  247 lines

  1. Hints and Tips
  2. 9.12
  3. C++ Operator Summary Ö Itæs a bit late to go with my series, but C++ 
  4. programmers who read Archive will probably find this information handy. 
  5. Itæs a cut down version of the table that appears in Bjarne Stroustrupæs 
  6. ÉThe C++ Programming Languageæ (2nd Edn) 1994, Addison Wesley.
  7. 9.12
  8. ::  scope resolution
  9. 9.12
  10. ::  global
  11. 9.12
  12. .  member selection
  13. 9.12
  14. ->  member selection
  15. 9.12
  16. []  subscripting
  17. 9.12
  18. ()  function call
  19. 9.12
  20. ()  value construction
  21. 9.12
  22. ++  post increment
  23. 9.12
  24. ÿ  post decrement
  25. 9.12
  26. sizeof  size of object
  27. 9.12
  28. sizeof  size of type
  29. 9.12
  30. ++  pre increment
  31. 9.12
  32. ÿ  pre decrement
  33. 9.12
  34. ~  complement
  35. 9.12
  36. !  not
  37. 9.12
  38. -  unary minus
  39. 9.12
  40. +  unary plus
  41. 9.12
  42. &  address of
  43. 9.12
  44. *  dereference
  45. 9.12
  46. new  create (allocate)
  47. 9.12
  48. delete  destroy (de-allocate)
  49. 9.12
  50. delete[]  destroy array
  51. 9.12
  52. ()  cast (type conversion)
  53. 9.12
  54. .*  member selection
  55. 9.12
  56. ->*  member selection
  57. 9.12
  58. *  multiply
  59. 9.12
  60. /  divide
  61. 9.12
  62. %  remainder
  63. 9.12
  64. +  add
  65. 9.12
  66. -  subtract
  67. 9.12
  68. <<  shift left
  69. 9.12
  70. >>  shift right
  71. 9.12
  72. <  less than
  73. 9.12
  74. >  greater than
  75. 9.12
  76. <=  less than or equal
  77. 9.12
  78. >=  greater than or equal
  79. 9.12
  80. ==  equal
  81. 9.12
  82. !=  not equal
  83. 9.12
  84. &  bitwise AND
  85. 9.12
  86. ^  bitwise exclusive OR
  87. 9.12
  88. |  bitwise inclusive OR
  89. 9.12
  90. &&  logical AND
  91. 9.12
  92. ||  logical inclusive OR
  93. 9.12
  94. ?:  conditional expression
  95. 9.12
  96. =  simple assignment
  97. 9.12
  98. *=  multiply and assign
  99. 9.12
  100. /=  divide and assign
  101. 9.12
  102. %=  modulo and assign
  103. 9.12
  104. +=  add and assign
  105. 9.12
  106. -=  subtract and assign
  107. 9.12
  108. <<=  shift left and assign
  109. 9.12
  110. >>=  shift right and assign
  111. 9.12
  112. &=  AND and assign
  113. 9.12
  114. |=  inclusive OR and assign
  115. 9.12
  116. ^=  exclusive OR and assign
  117. 9.12
  118. throw  throw exception
  119. 9.12
  120. ,  comma (sequencing)
  121. 9.12
  122. Each box holds operators with the same precedence and has higher 
  123. precedence than the box below.
  124. 9.12
  125. Unary and assignment operators are right associative.
  126. 9.12
  127. All other operators are left associative.
  128. 9.12
  129. Tony Houghton, <tonyh@tcp.co.uk>
  130. 9.12
  131. Bitfolio clipart Ö The Bitfolio Edition 7 CD¡ROM, reviewed in Archive 
  132. 9.6 p9, has quite rightly come in for many plaudits. The high quality of 
  133. the images and the sheer value for money, in my view, really puts all 
  134. other collections well in the shade. Some problems have come to light 
  135. but, fortunately, aásimple workround seems to apply to nearly all cases. 
  136. A few drawfiles on the CD wonæt load (a few out of 10,000? I think we 
  137. can live with that!). However, others hit problems when dropped directly 
  138. into applications such as Artworks, Impression, Ovation, etc.
  139. 9.12
  140. Fortunately, applying what appears to be a universal workround, is a 
  141. trivial task. Simply double-click on the drawfile icon to load the image 
  142. into Draw, call up a Save...File dialogue box and drag the Save as icon 
  143. to its destination (Artworks, Impression etc). Hey presto! Ö no Artworks 
  144. crashes, and the graphic loads into the DTP frame at exactly 100% scale; 
  145. problem solved.
  146. 9.12
  147. Jim Nottingham <toms@ndirect.co.uk>
  148. 9.12
  149. Cumana SCSI 2 upgrades Ö Whilst browsing on Acornæs FTP site, I 
  150. discovered two upgrades for the Cumana SCSIá2 card, versions 2.00 and 
  151. 2.01. I tried version 2.00 first and then 2.01 Ö dated 7 June 96. Both 
  152. worked fine. However, when Iácame to use the SCSI manager program to 
  153. format and partition a new 650Mb Panasonic cartridge for my ProTeus 
  154. drive, I discovered, to my amazement, that I could obtain 8 (yes eight!) 
  155. partitions Ö the original SCSI4 to 7 plus SCSI0 to 3. There is no 
  156. mention of this in the read me files. I phoned Cumana support, who 
  157. confirmed that eight partitions were now available, in spite of !Help 
  158. and other documentation still insisting that, because of RISCáOS 
  159. restrictions, only four partitions out of a possible 64 can be obtained 
  160. with this card. Anyway, Iáhad a device, partitioned into eight sections, 
  161. running for several days without any problems.
  162. 9.12
  163. Later, however, I encountered a small problem when switching on my 
  164. machine. It started to hang, and Iáneeded to switch on and off two or 
  165. three times before I could get the !Boot running from my ADFS HardDisc4. 
  166. After a lot of trial and error, I found a small item in the Read Me file 
  167. mentioning that some SCSI hard drives did not like SCSI resets on power 
  168. up. From the SCSI manager screen, I selected the Host and then clicked 
  169. on Set Host ID. Under SCSI Reset, I changed the selected button from 
  170. Enabled to Delayed Ö problem solved.
  171. 9.12
  172. The upgrades can be found on the Acorn FTP site ftp://ftp.acorn.co.uk/
  173. pub/riscos/thirdparty/cumana. Any members, who are not on the Net, can 
  174. get a copy from me at 50 Cornwall Road, Southampton, SO18 2QZ, sending a 
  175. blank formatted disc and return postage.
  176. 9.12
  177. Ted Lacey <tedell@argonet.co.uk>
  178. 9.12
  179. New TurboDrivers Ö Following an email exchange between James Taylor of 
  180. NCS and Kate Moir of Computer Concepts weæve acquired the following 
  181. information about the new versions of the TurboDrivers:
  182. 9.12
  183. New versions of Computer Conceptsæ TurboDrivers have recently been 
  184. released.
  185. 9.12
  186. The latest shipping version of TurboDriver (4.05) will only install to 
  187. versions 1.45, 1.52 and 1.53 of !Printers. The TurboDriver installer has 
  188. to upgrade the !RunImage file of !Printers, and Computer Concepts are 
  189. limited Ö by disc space Ö to the number of replacement !RunImages they 
  190. can offer. They decided that as versions 1.45Ö1.53 constituted the 
  191. latest versions of !Printers, it made more sense to support them and 
  192. drop support of the previous versions.
  193. 9.12
  194. The TurboDriver uses !Printers as a öfront endò but uses its own 
  195. rendering and queueing system. The rendering system is quite different 
  196. from the standard Acorn system, and the queueing system complements and 
  197. interacts with the Acorn system, actually improving printout times from 
  198. applications which do not use the Acorn graphics output mode (i.e. Edit, 
  199. First Word Plus, etc).
  200. 9.12
  201. As to a comparison of quality, Computer Concepts feel that the 
  202. TurboDriver is better, and certainly, the full control of halftone 
  203. angles, that the TurboDriver offers, provides the user with much greater 
  204. control over the output quality. However, assessing quality of output is 
  205. very subjective.
  206. 9.12
  207. All the TurboDrivers have been upgraded (Epson, Canon and HP). An 
  208. existing user of, say, the Canon TurboDriver can purchase the Epson and/
  209. or HP printer engines and definition files for an additional ú11.75each  
  210. (inclusive) from Computer Concepts.
  211. 9.12
  212. It is possible to have two (or more) different types of TurboDriver 
  213. resident in !Printers at one time. The only requirement is that the 
  214. TurboDriver definitions be the same version, i.e. Epson TurboDriver 4.05 
  215. and Canon TurboDriver 4.05. Epson TurboDriver 4.04 will not work with 
  216. Canon TurboDriver 4.05.
  217. 9.12
  218. When using a non-TurboDriver printer definition files with a copy of 
  219. !Printers which has had the TurboDrivers installed into it, RISCáOS 
  220. printing is via Acorn code, and queueing via TurboDriver code.
  221. 9.12
  222. Recent improvements in speed and quality have been made to !Printers. 
  223. There has been speculation that !Printers has closed the gap, or even 
  224. overtaken, the TurboDrivers in terms of speed.
  225. 9.12
  226. Speed of output is dependent upon too many variables to quote specifics. 
  227. An additional 100Kb of free memory can make a significant difference in 
  228. the time to output.
  229. 9.12
  230. Computer Concepts claim that the TurboDriver is still significantly 
  231. faster than !Printers 1.53 in most areas of printing. Multiple copies of 
  232. multi-page documents will always be faster via the TurboDriver, as will 
  233. ArtWorks images and RISC OS text documents. Single bitmap (and JPEG 
  234. bitmaps) may be faster via the standard Acorn drivers.
  235. 9.12
  236. Alex Allen <tech.NCS@paston.co.uk>
  237. 9.12
  238. Upgrading PC cards Ö Readers who install 486-100 or pentium processors 
  239. may like to be warned; if you have already upgraded your software to 
  240. !PCx86, do not be tempted to skip installing this when you receive your 
  241. new processor package. There are bits and pieces in the latest version 
  242. without which you will have trouble, so install the lot (!PCx86, PCDos7 
  243. and all).
  244. 9.12
  245. Colin Buckland <colin.buckland@ci.educ.lu>
  246. 9.12
  247.