title: how to import and edit C++ code in eclipse using ndk?
body: <p>Scenario:
  I have run and compiled an existing c++ code of cocos2d-x on android emulator using eclipse and NDK (CDT and Sequoyah are installed)(c++ code edited outside the eclipse). but, not able to edit c++ code or debug during runtime.</p>
  
  <p>If I open a c++ (main.cpp) file, the project gets contaminated with errors.
  main.cpp is a file having java as well as c++ code in it. and already included in my project.
  (closing the project and then reopening it solves the errors for the time being)</p>
  
  <p>Problems are:</p>
  
  <p>1) how to open existing c++ files in a working android project?</p>
  
  <p>2) how to tell eclipse that it's a mixed code/project of c++ as well as java. and not an error</p>
  
  <p>thanks.</p>