Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Dungeons & Dragons
D&D Older Editions
D&D 4e Character Builder (Made in Java)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jimmifett" data-source="post: 5636769" data-attributes="member: 55006"><p>C++ is not a low level language. Sure, it is a little lower than java, a lot lower than cobol, and exceedingly lower than perl, python and ruby, but it's still a high level language, tho I'd be willing to reclassify it as mid level.</p><p> </p><p>Using a modulus operation, you still take more cycles to determine the modulus from a non integer division. Sure, the result is an integer, but the processer would have had to use it's normal division logic to derive it. A simple shift one step to the right bypasses all those logic gates needed to perform the complex task of division (integer or float) by doing something it's exceedingly quick at, bit fiddling.</p><p> </p><p>Does it matter in the grand scheme of things in modern computing? Not really (unless doing embedded or game programming), but I like being as quick and optimized as possible <img src="http://www.enworld.org/forum/images/smilies/glasses.png" class="smilie" loading="lazy" alt="B-)" title="Glasses B-)" data-shortname="B-)" /></p><p> </p><p>Before you work with xml, I suggest learning how to build an xsd schema. This will allow you to validate the xml you create, as well as apply type constraints to the data in the xml. I'll presume you're using visual studio, in which case you will want to look at xsd.exe. This tool takes in an xsd schema and spits out classes to manipulate an xml document based on that schema. The resulting classes are C#, but you should be able to access the managed code from c++ in visual studio. Should you wish to bypass any integration with managed code, then I recommend looking at <a href="http://xerces.apache.org/xerces-c/" target="_blank">xerces</a>. On the java side, I like to use <a href="http://xmlbeans.apache.org/" target="_blank">XMLBeans</a>.</p></blockquote><p></p>
[QUOTE="jimmifett, post: 5636769, member: 55006"] C++ is not a low level language. Sure, it is a little lower than java, a lot lower than cobol, and exceedingly lower than perl, python and ruby, but it's still a high level language, tho I'd be willing to reclassify it as mid level. Using a modulus operation, you still take more cycles to determine the modulus from a non integer division. Sure, the result is an integer, but the processer would have had to use it's normal division logic to derive it. A simple shift one step to the right bypasses all those logic gates needed to perform the complex task of division (integer or float) by doing something it's exceedingly quick at, bit fiddling. Does it matter in the grand scheme of things in modern computing? Not really (unless doing embedded or game programming), but I like being as quick and optimized as possible B-) Before you work with xml, I suggest learning how to build an xsd schema. This will allow you to validate the xml you create, as well as apply type constraints to the data in the xml. I'll presume you're using visual studio, in which case you will want to look at xsd.exe. This tool takes in an xsd schema and spits out classes to manipulate an xml document based on that schema. The resulting classes are C#, but you should be able to access the managed code from c++ in visual studio. Should you wish to bypass any integration with managed code, then I recommend looking at [URL="http://xerces.apache.org/xerces-c/"]xerces[/URL]. On the java side, I like to use [URL="http://xmlbeans.apache.org/"]XMLBeans[/URL]. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Dungeons & Dragons
D&D Older Editions
D&D 4e Character Builder (Made in Java)
Top