Задайте вопросЗадайте вопрос
 

ОтвеченоSimple Answer for Simple Question

  • 2 июля 2009 г. 18:47cmbrooks08 Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    Hi guys-

    I know this is going to be very simple, so I apologize if you feel I've wasted your time.  I'm transitioning from NetBeans for Java to Visual C++.  In NetBeans, I used to keep a project that would just kind of be my testing ground where I would store random code I was working on, or labs for classes, etc.  I'm trying to figure out which project type will let me do the same in Visual C++.  I created an empty Visual C++ solution, added an empty project, and added about 3 source files.  Since they aren't all related, they all have a main function, and because of that, I can't build.  I just want to run one cpp file at a time, but I can't figure out how to to do it without building everything, which gives me the "more than one main declared" error.  I can't believe I couldn't find an answer to this anywhere else, but maybe no one else does this? I find that hard to believe, but anyways, can anyone point me in the right direction?

Ответы

Все ответы