write code (vc++) in file.txt
-
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
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
-
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
:-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] -
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
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/".
-
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
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++ -
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
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++ -
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
"make file" seems can,but i don't know how to do it!