search

Home  >  Q&A  >  body text

visual-studio - 刚学c++,下了个 Visual Studio 2015 ,遇到点小问题,请问怎么解决呢?

我是按照教程来的,只是教程用的 visual c++ ,我用的 Visual Studio 2015 ,
结果第一段代码就遇到问题了.
这里也不知道哪一行出错..
可能版本更新了,也可能是我不会用这个编辑器.
请问怎么做才能解决?

还有大家写C++都用什么呢?

怪我咯怪我咯2806 days ago688

reply all(4)I'll reply

  • 迷茫

    迷茫2017-04-17 14:40:04

    1. vs To run your code, you must first create a win32 console project.

    2. After creating the project, add your code to it, and then press F5 (debug) or ctrl+F5 (run)

    3. Run -> All Tests This option is used to run the unit tests you have written for your code

    I prefer to use codeblocks when writing simple and short codes, and I use VS for actual projects

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 14:40:04

    VS is generally used to write debugging tests under Windows, but there are many tricks under Linux.
    Do you want to run? You should click Run under the Debug menu instead of Test.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 14:40:04

    Why don’t I see the project, only the solution?

    Use the wizard to create a C++ project first, and then write the code.

    There is no objection to beginners using VS, but it is best to manually call the compiler as soon as possible (it is best to use gcc under Linux) to try it, and then know how to build and compile it by yourself. It doesn’t matter what editor you use next, the simpler, the better.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 14:40:04

    You need to create a project (solution) first, and then put your own code into it.

    You can’t open the meta file directly like this, it can’t be run

    reply
    0
  • Cancelreply