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. write code (vc++) in file.txt

write code (vc++) in file.txt

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
7 Posts 6 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.
  • A Offline
    A Offline
    anassamar
    wrote on last edited by
    #1

    hi, I want to write my code ( Vc++) in txt file then I want to compile it, how I do that? Thank you

    thank you soso

    D B C H 4 Replies Last reply
    0
    • A anassamar

      hi, I want to write my code ( Vc++) in txt file then I want to compile it, how I do that? Thank you

      thank you soso

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      anassamar wrote:

      I want to write my code ( Vc++) in txt file...

      As opposed to what other kind of file?

      anassamar wrote:

      ...then I want to compile it, how I do that?

      My first guess would be...with a compiler.

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      C C 2 Replies Last reply
      0
      • D David Crow

        anassamar wrote:

        I want to write my code ( Vc++) in txt file...

        As opposed to what other kind of file?

        anassamar wrote:

        ...then I want to compile it, how I do that?

        My first guess would be...with a compiler.

        "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

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

        :-D

        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
        • A anassamar

          hi, I want to write my code ( Vc++) in txt file then I want to compile it, how I do that? Thank you

          thank you soso

          B Offline
          B Offline
          bulg
          wrote on last edited by
          #4

          visual studio requires you to have a project & workspace in order to compile anything. Make a new project (it will create a workspace automatically) and then figure out how to "add a source file" to the project. Then you can compile it. Projects & Workspaces are things that help organize different projects that a coder might otherwise just be sticking in a directory labeled, "/usr/home/mystuff/".

          1 Reply Last reply
          0
          • D David Crow

            anassamar wrote:

            I want to write my code ( Vc++) in txt file...

            As opposed to what other kind of file?

            anassamar wrote:

            ...then I want to compile it, how I do that?

            My first guess would be...with a compiler.

            "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            C Offline
            C Offline
            Cedric Moonen
            wrote on last edited by
            #5

            DavidCrow wrote:

            As opposed to what other kind of file?

            A .cpp file for instance ? :rolleyes:

            Cédric Moonen Software developer
            Charting control [v2.0] OpenGL game tutorial in C++

            1 Reply Last reply
            0
            • A anassamar

              hi, I want to write my code ( Vc++) in txt file then I want to compile it, how I do that? Thank you

              thank you soso

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              anassamar wrote:

              I want to write my code ( Vc++) in txt file then I want to compile it, how I do that?

              What do you mean exactly ? You want to load a text file at run-time and execute the code in that file at run-time ? If yes, then C++ is not meant for that. C++ is a compiled language and you can't execute code this way. You will need to use a scripting language for that purpose instead.

              Cédric Moonen Software developer
              Charting control [v2.0] OpenGL game tutorial in C++

              1 Reply Last reply
              0
              • A anassamar

                hi, I want to write my code ( Vc++) in txt file then I want to compile it, how I do that? Thank you

                thank you soso

                H Offline
                H Offline
                huangnachuan
                wrote on last edited by
                #7

                "make file" seems can,but i don't know how to do it!

                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