• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community The Community Real Life Discussion Software & Hardware
« Previous 1 2 3 4 5 … 91 Next »
Programming help.

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Programming help.
Offline Blackvertigo1
03-09-2017, 05:11 AM, (This post was last modified: 03-09-2017, 05:19 AM by Blackvertigo1. Edit Reason: Because )
#1
Member
Posts: 679
Threads: 40
Joined: Jun 2008

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.

"The path to hell is paved with good intentions."


Quote:* Nodoka Hanamura is all about that SSH life
If you can't RP then 1.0

"There are more things in Heaven and Earth than are dreamt of in your philosophy - from our odyssey into Hell, we have returned with a gift."
Reply  
Offline Alex.
03-09-2017, 09:22 PM,
#2
Developer
Posts: 3,798
Threads: 144
Joined: Aug 2009
Staff roles: Server Manager
Coding Dev
Moderator

Am I missing something? Did you paste the wrong text?
Reply  
Offline Apollon
03-09-2017, 09:30 PM, (This post was last modified: 03-09-2017, 09:30 PM by Apollon.)
#3
Emperor's Wrath
Posts: 1,772
Threads: 101
Joined: May 2012

I don't understand what you're asking about.

[Image: Fiea82t.jpg?1]
Reply  
Offline Blackvertigo1
03-10-2017, 04:46 PM,
#4
Member
Posts: 679
Threads: 40
Joined: Jun 2008

Trying to compute chemical elements 'n stuff.

"The path to hell is paved with good intentions."


Quote:* Nodoka Hanamura is all about that SSH life
If you can't RP then 1.0

"There are more things in Heaven and Earth than are dreamt of in your philosophy - from our odyssey into Hell, we have returned with a gift."
Reply  
Offline Benoit
03-10-2017, 04:57 PM,
#5
Member
Posts: 240
Threads: 8
Joined: Jan 2013

Can't we have the complete code?
Reply  
Offline Alley
03-10-2017, 05:04 PM,
#6
Member
Posts: 4,524
Threads: 406
Joined: Jun 2009

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

Laz Wrote: Alley was right.
Reply  
Offline Backo
03-10-2017, 05:07 PM,
#7
Basilica Combat Patrol
Posts: 3,594
Threads: 123
Joined: Feb 2009

You don't need the std:: when you're using namespace std; anyways Smile

Republic of the Sword and Sun
  Reply  
Offline Blackvertigo1
03-10-2017, 05:57 PM, (This post was last modified: 03-10-2017, 06:29 PM by Blackvertigo1. Edit Reason: correction )
#8
Member
Posts: 679
Threads: 40
Joined: Jun 2008

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.
Reply  


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2025 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode