Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How you will define the structure model of Sigmund Freud "Id, ego, and super-ego" in C ? :)

How you will define the structure model of Sigmund Freud "Id, ego, and super-ego" in C ? :)

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    phicho
    wrote on last edited by
    #1

    i go with this simple structure typedef struct sturctEGO { int ID; int Superego; int Ego = Superego - ID; } Me; Am i right ? :) the theory http://en.wikipedia.org/wiki/Id,\_ego,\_and\_super-ego

    L C P S 4 Replies Last reply
    0
    • P phicho

      i go with this simple structure typedef struct sturctEGO { int ID; int Superego; int Ego = Superego - ID; } Me; Am i right ? :) the theory http://en.wikipedia.org/wiki/Id,\_ego,\_and\_super-ego

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Had you actually tried to compile this before asking the question you would have noticed that the line

      int Ego = Superego - ID;

      produces a number of errors, as it is an invalid expression. Other than that your structure may or may not have some use.

      It's time for a new signature.

      1 Reply Last reply
      0
      • P phicho

        i go with this simple structure typedef struct sturctEGO { int ID; int Superego; int Ego = Superego - ID; } Me; Am i right ? :) the theory http://en.wikipedia.org/wiki/Id,\_ego,\_and\_super-ego

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #3

        Craps: you're an idiot! You're simply wrong. Well, it is pretty good, but you probably can do better. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        1 Reply Last reply
        0
        • P phicho

          i go with this simple structure typedef struct sturctEGO { int ID; int Superego; int Ego = Superego - ID; } Me; Am i right ? :) the theory http://en.wikipedia.org/wiki/Id,\_ego,\_and\_super-ego

          P Offline
          P Offline
          phicho
          wrote on last edited by
          #4

          It's not for any use...only to help informatics students understand better the structure model of Sigmund Freud the ones that listen psychology class in high school

          L 1 Reply Last reply
          0
          • P phicho

            It's not for any use...only to help informatics students understand better the structure model of Sigmund Freud the ones that listen psychology class in high school

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            phicho wrote:

            to help informatics students understand better the structure model of Sigmund Freud

            I don't think it will help anyone to understand anything.

            It's time for a new signature.

            1 Reply Last reply
            0
            • P phicho

              i go with this simple structure typedef struct sturctEGO { int ID; int Superego; int Ego = Superego - ID; } Me; Am i right ? :) the theory http://en.wikipedia.org/wiki/Id,\_ego,\_and\_super-ego

              S Offline
              S Offline
              sashoalm
              wrote on last edited by
              #6

              You should have posted this in the Lounge.

              There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups