CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2017
    Posts
    1

    Code template writer

    Hi guys, I'm learning C++, but I have no idea about how to write this program.

    "Write a program to read in a filename via stdin and write a C++ source template to it. Ensure that the generated file compiles and runs. Such a template would have at least a #include directive and an empty main function, ready to be filled. Once you have written this program, you may use it to jumpstart your work on other programs. "

    Please help. Thanks

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Code template writer

    If you install Visual Studio 2015 Community Editon (and select the option to install C++) you can then create a new C++ console app project.

    This will create a c++ project with the empty file 'templates' that you are asking for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured