-
May 13th, 2008, 03:44 AM
#1
Can i make string addition operation in c++?
Can i make string addition operation in c++?
i want to make string addition operation like;
hydrogen + 2oxygen = water.
can i make this ?
-
May 13th, 2008, 04:00 AM
#2
Re: Can i make string addition operation in c++?
Yes but you have to write the code for that parser yourself, the language itself has no support for handling chemical formulas (as you probably know).
-
May 13th, 2008, 12:04 PM
#3
Re: Can i make string addition operation in c++?
I am not into chemistry, but I know Hydrogen and Oxygen cannot always be Water - it may be in gas state also!
-
May 13th, 2008, 12:16 PM
#4
Re: Can i make string addition operation in c++?
Plus it'd be 2hydrogen + oxygen = water, not the other way around....
Remember, dihydrogen monoxide is deadly in large quantities.
-
May 13th, 2008, 12:39 PM
#5
Re: Can i make string addition operation in c++?
In addition it would be
wataer = (2 * hyderogen) + Oxygen
-
May 13th, 2008, 12:41 PM
#6
Re: Can i make string addition operation in c++?
I did not know CG has a "Chemistry Forum" too!
-
May 13th, 2008, 01:06 PM
#7
Re: Can i make string addition operation in c++?
Just to add:
(hydrogen + oxygen) * 2 = hydrogen peroxide. Time to become a blond(e).
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|