BuildAlgorithmPractical platform for learning
I have always wanted to learn algorithms. Of course, it is impossible to read only algorithms,ProgramIs written, so you need to find something to write a program. Most algorithms are still used.CSome of the language descriptions are also usedJavaBut it does not seemC# Version,Vs. netProbably not. What is it?TCIt seems to be a matter of mercy,Vs. netSpoil now and try againDoSOld antiques are really unwilling. Nothing else? Of course not,Eclipse+CDTIt can be said that it is the best nowCDevelopment Environment!
IfEclipseYou don't know what it is, so you should go back to Mars.CDTFull name:C/C ++ development tooling, YesEclipseOfC/C ++Development tools.
The entire system requires the following software:
1.Eclipse: Infrastructure.
2.JDK:EclipseRequired.
3.CDT:EclipseUnderC/C++ Development plug-in.
4.Minigw: It is mainly usedGccCompiler and debugger.
5.Gnumake: Used to compile files.
The above software can be usedGoogleFind, please download the latest version, corresponding to your operating system,WindowsUseX86Version orWindows. The installation instructions are as follows:
1.InstallJDK. There's nothing to say, just take the next step.
2.Eclipse. It is also very simple. Green software can be used after decompression (the premise is that there areJDK).
3.CDT. DecompressedPluginsAndFeaturesCopy files in the folderEclipseUnder the corresponding folder.
4.Minigw. In general, the download should be an installer, all the way to the next step. We recommend that you installCThe root directory.
5.Gnumake. This may need to be compiled. The downloaded version containsVs. net2003OfSolutionFile, I useVs. net2005Open. After automatic upgrade, compile it. The generated file is inReleaseFolder. It is recommended to copyCThe root directory.In addition, the default file generated isMake_msvc.net2003.exe, ChangedMake.exe.
6. set the path to minigw bin directory and gnumake directory. Assume that the minigw installation directory is C: \ minigw , the bin directory is C: \ minigw \ bin . Assume that the installation directory of gnumake is C: \ Make . To set the path, right-click "my computer" and choose "attribute", "advanced", and "environment variable ", in "system variables", " path ", set " C: \ minigw \ bin "and" C: \ Make "are added, separated by ; .
7.After setting the path, you can openCMD, Use"Path"Command to see if the path is set correctly. Then try"Make"Command, if"Make: *** no targets specified and no makefile found. Stop.", DescriptionGnumakeThe installation is correct. Use"Gcc", If"GCC: no input files", It indicatesMinigwInGccThe compiler is correctly installed.
Okay. The entire system is installed.EclipseThe program has been written.
CreateManaged C ProjectProject (ManagedIndicates maintenance by the SystemMakefileFile, very convenient), addSource File. Knock on oneHelloworldCompile it! Then we can useEclipseDebugging our programs in a powerful environment, so you don't have to look at them any more.DoSLowerTC.
ps : CDT automatically generated makefile file clean an error occurs, but it does not affect the use. I checked it and it is a compatibility problem. The official website does not have a good solution, but it does not affect the use.