General Chat Thread 3: This Thread Transcends Titles

Discussion in 'General discussion' started by hulgi, Jun 21, 2011.

  1. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Likes Received:
    273
    And then I created a Logic gate simulator for an assignment.

    and NASM is annoying
     
  2. Sparkypony

    Sparkypony Antisocial ponyality disorder

    Cutie Mark:
    Joined:
    Feb 2, 2012
    Messages:
    8,135
    Likes Received:
    0
    Occupation:
    Resistance Tech Colt.
    Location:
    Painted World of Ariamis
    Im trying to learn C++ and i have no idea what that is.

    A gate that reacts to specific algorithms?
     
  3. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Likes Received:
    273
    Its the use of switches being on or off (binary).

    Simple example is the AND gate.

    two wires go in, one goes out.
    if both wires in are ON, then the output is on, if not then off.

    switch 1 | switch 2
    T | T = T
    T | F = F
    F | T = F
    F | F = F

    And then there's all the others in logic: or, not, xor, nand etc.
     
  4. Sparkypony

    Sparkypony Antisocial ponyality disorder

    Cutie Mark:
    Joined:
    Feb 2, 2012
    Messages:
    8,135
    Likes Received:
    0
    Occupation:
    Resistance Tech Colt.
    Location:
    Painted World of Ariamis
    I get it.Im going to assume T = on and F = off.

    I tried writing a hello world script in Microsoft visual C++ 2010.No idea how to get it to run.
     
  5. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Likes Received:
    273
    Those are truth tables. there are more in the logic subject like "hook" (if a, then b)

    What are you having trouble with? Compiling, or the writing of the code itself?

    C#/Java might be easier to get the hang of before C++, but whatever tickles your fancy.
     
  6. Sparkypony

    Sparkypony Antisocial ponyality disorder

    Cutie Mark:
    Joined:
    Feb 2, 2012
    Messages:
    8,135
    Likes Received:
    0
    Occupation:
    Resistance Tech Colt.
    Location:
    Painted World of Ariamis
    Compiling.Wait im supposed to compile? All i did was save it...
     
  7. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Likes Received:
    273
    What you code is part of a "solution".
    You want to compile the solution to make an executable of the solution.

    Unless the IDE for C++ is different, there should be a green play button somewhere to play the program, after building the solution.
     
  8. Sparkypony

    Sparkypony Antisocial ponyality disorder

    Cutie Mark:
    Joined:
    Feb 2, 2012
    Messages:
    8,135
    Likes Received:
    0
    Occupation:
    Resistance Tech Colt.
    Location:
    Painted World of Ariamis
    I think its "Debug"
     
  9. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Likes Received:
    273
    Indeed. runs the program so you can check if it is running as intended. If not, fix the bugs. When it works perfectly, instead of debug, you "release", give the release to everyone and make millions.

    millions of what, however, is up to you.
     
  10. Sparkypony

    Sparkypony Antisocial ponyality disorder

    Cutie Mark:
    Joined:
    Feb 2, 2012
    Messages:
    8,135
    Likes Received:
    0
    Occupation:
    Resistance Tech Colt.
    Location:
    Painted World of Ariamis
    Hmm...Yeah..i dont even know of any commands....Other than "Print"
     
  11. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Likes Received:
    273
    Suddenly,
    GeneralChatThread.Content = Subject.Computing.Programming;

    anyway,
    cout (see-out) can be used when using namespace std;

    as such:

    #using iostream;

    using namespace std;

    int main()
    {
    string aVariable;
    cout << "This is a fail program :/" << endl; //Prints the message, and drops to the next line
    cin >> aVariable; // sets the input by the user to use the variable aVariable.

    return 0; //indicates that this is the end of the program.
    }

    thats all from memory from last year, I've probably forgotten something.
     
  12. Sparkypony

    Sparkypony Antisocial ponyality disorder

    Cutie Mark:
    Joined:
    Feb 2, 2012
    Messages:
    8,135
    Likes Received:
    0
    Occupation:
    Resistance Tech Colt.
    Location:
    Painted World of Ariamis
    I understood none of that.

    I dont have a teacher..actually...or even a guide book.
     
  13. Breezy Sketch

    Breezy Sketch Practically Part of the Site Itself

    Joined:
    Sep 10, 2012
    Messages:
    133
    Likes Received:
    0
    Occupation:
    Artist
    Location:
    Ponyville
    Welcome ooooh Welcome to Everypony hope you enjoy your stay, got a question ask away, make friends and have lots and lots of fun fun fun :grin::smile:::S::blink::omg:............ *later reaction to the over use of the pony smileys* :DFH:
     
  14. Tempest Wind

    Tempest Wind Princess of the Forum
    Veteran

    Joined:
    Aug 6, 2011
    Messages:
    4,283
    Likes Received:
    0
  15. Sparkypony

    Sparkypony Antisocial ponyality disorder

    Cutie Mark:
    Joined:
    Feb 2, 2012
    Messages:
    8,135
    Likes Received:
    0
    Occupation:
    Resistance Tech Colt.
    Location:
    Painted World of Ariamis
    Stop it Tempest.You're making me hungry...
     
  16. Tempest Wind

    Tempest Wind Princess of the Forum
    Veteran

    Joined:
    Aug 6, 2011
    Messages:
    4,283
    Likes Received:
    0
    Sorry. I just had to post. Yahoo never puts up any good articles. They finally have one that makes sense to me.
     
  17. Sparkypony

    Sparkypony Antisocial ponyality disorder

    Cutie Mark:
    Joined:
    Feb 2, 2012
    Messages:
    8,135
    Likes Received:
    0
    Occupation:
    Resistance Tech Colt.
    Location:
    Painted World of Ariamis
    I dont pay attention to the news. Wow its 3 AM already.I must be building an immunity to my sleep pills.
     
  18. Tempest Wind

    Tempest Wind Princess of the Forum
    Veteran

    Joined:
    Aug 6, 2011
    Messages:
    4,283
    Likes Received:
    0
    I have left over pain medicine from when I last had surgery 18 months ago. It's prescription percocet. This pill knocks me out for 12 hours at least and works in less than 15 minutes.:smile: I keep it for emergencies like if I'm in horrible pain or have insomnia or keep getting midnight anxiety attacks.
     
  19. Sparkypony

    Sparkypony Antisocial ponyality disorder

    Cutie Mark:
    Joined:
    Feb 2, 2012
    Messages:
    8,135
    Likes Received:
    0
    Occupation:
    Resistance Tech Colt.
    Location:
    Painted World of Ariamis
    I have frequent insomnia like almost every night.. Anxiety attacks? Wow dude. I get a lot of minor ones during the day.

    Then theres my random pains everywhere. Dont happen very often.

    Then theres when i overheat in the night and puke out whatever i ate for dinner.
     
  20. Tempest Wind

    Tempest Wind Princess of the Forum
    Veteran

    Joined:
    Aug 6, 2011
    Messages:
    4,283
    Likes Received:
    0
    That last one sounds terrible. I've only puked once in the last 10 years and that was because I was an idiot and ate before going into major surgery and getting the anesthetic. I've never been drunk so never had to deal with that. I never puke when I get food poisoning thanks to my ability burp out the pressure it causes, though it would be better for me to hack it all up.
     

Share This Page