Discovery Gaming Community

Full Version: Programming help.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I know a thing or two, but don't get me wrong, I'm a programmer on other languages, but I don't know why C++ would be giving me trouble.

I'm using Microsoft Visual Studio 2017, so bare with me.
Code:
// Chad Davis
// Chemistry in a Bottle - DEMO


#include <iostream>

using namespace std;

int main()
{

    int myTable = 8;


}

<Chemistry in a Bottle>
DEMO - Chad Davis
Determination of mass, electron polarity, & composition of a molecule.


Skeleton:
Elements provided - > 1 - 8
View of Chemical Element Table of Bin, Oct, Dec, & Hex
Wrap-around of Chemical Element Table
Count of Electrons, Neutrons, and Protons in Atom, including provided possible isotopes
Mass of each Atom computated as individual sects, and as whole molecule resolution
Noble, Other, Lanthaniods, Actinoids, Alkaline, & Alkali groups
Electron resistance
Workplace Hazardous Materials Information System aka WHMIS of gasious chemicals and molecules

Database:
Chemical atomic names
Isotope names and declerations
Common/industrial mocecule names

.... ETC...

So, thoughts?

EDIT 1: Will look into providing an interactive platform for determining warp vectors in Discovery Freelancer.
Am I missing something? Did you paste the wrong text?
I don't understand what you're asking about.
Trying to compute chemical elements 'n stuff.
Can't we have the complete code?
Code:
// Chad Davis
// Chemistry in a Bottle - DEMO


#include <iostream>

using namespace std;

int main()
{

    int myTable = 8;
    myTable = myTable % 5;
    std::cout << "Solution reached" << std::endl;


}

here you go
You don't need the std:: when you're using namespace std; anyways Smile
Code:
#include <iostream>

using namespace std;

int main()

{
    // Atomic wieght of atom and respective isotope(s) after reaction
    int isotopeDeuterium = 1.00784;
    int isotopeTritium = 1.00811;
    int atomHydrogen[3] = { 1.008, isotopeDeuterium, isotopeTritium };
    cout << "Atomic wieght of Hydrogen now is: " << ++isotopeDeuterium
        << ++isotopeTritium << endl;

    cin.get();

    return 0;

}

complete workable code, I don't know if it's just garbage or something, I think I wrote it to reflect the accumulative mass of the state.'


changed "Hydrogen now is .. " to " reaction mass now is: "



EDIT 2:
Code:
#include <iostream>

using namespace std;

int main()

{
    // Atomic wieght of atom and respective isotope(s) after reaction
    double isotopeDeuterium = 1.00784;
    double isotopeTritium = 1.00811;
    double atomHydrogen[] = { 1.008, isotopeDeuterium, isotopeTritium };
    cout << "Atomic wieght of reaction mass now is: " << ++isotopeDeuterium
        + ++isotopeTritium << endl;
    cout << "The reaction mass has been converted to: " << endl;
    cin >> atomHydrogen;

    cin.get();

    return 0;

}

Fixed. But still incomplete.