Monday, July 27, 2009

How do i open and edit a CPP open source code? And how do i compile it?

Just downloaded a free game and i wanted to mess around with the source code... this is the website http://koti.mbnet.fi/jnyman/cleaner2/ind...


and i downloaded the source code... and its all in .cpp extension





I really dont know anythign about c++ or source codes but i was hoping someone could point me towards a program that would help me change it... and then compile it if thats the word

How do i open and edit a CPP open source code? And how do i compile it?
for a compiler a pretty good free one is http://www.bloodshed.net/devcpp.html


its gives you the basic hello world and a few other files to kind of mess around with to get the hang of it. their are plenty of websites to help you understand the basics


for help on the basics of c++ go to


http://www.cplusplus.com/doc/tutorial/
Reply:if the game is designed to run in windows, you will probably need visual c++ compiler (visual studio 6 or 2003 or 2005). If the game uses directX, you wil need that version of directx SDK (software development kit). If it uses openGL, you will need sources or libraries of OpenGL.





If the game is designed targetting a UNIX based system (ubantu, linux, etc), you will probably have a GNU compiler installed already.
Reply:Well, depends on the OS. Compiler and editor dev c++ is nice and simple, suitable for small projects. For linux g++ as a compiler not and editor, and mac must ahve something now with the intel base but Im not sure what that would be. Learn c++
Reply:I think you might need the Visual Studio c++ compiler.For changing the code,u dont need any compiler.Just open it in your fav editor(preferably notepad or gvim(suggested)) and edit it.FOr compling you might use gcc(from Bloodshed's ide) or VC++ compiler or Borland's or Intel's.There are tonnes of them available.Just check which one they recommend.
Reply:u say u need a compiler for cpp files.


i use borland c compiler. if u r in linux then no need of installation. g++ n gcc comes with it.

community survey

No comments:

Post a Comment