[ Updated on 26th Oct]
Recently I downloaded Borland C++ Compiler 5.5 which is free. Unfortunately IDE is not free and we have to leverage on external editors.
I use notepad++ most of the time and thought of exploring it to use it to compile and run my C++ programs.
There is a plugin called NppExec. You can download and extract the dll to plugin directory.
Press F6 Function key and save the following script:
And if you want the program to run in its own window :
Now whenever you need to compile and execute your cpp program it will be useful.
eg:
Recently I downloaded Borland C++ Compiler 5.5 which is free. Unfortunately IDE is not free and we have to leverage on external editors.
I use notepad++ most of the time and thought of exploring it to use it to compile and run my C++ programs.
There is a plugin called NppExec. You can download and extract the dll to plugin directory.
Press F6 Function key and save the following script:
- npp_save
- CD $(CURRENT_DIRECTORY)
- C:\Borland\BCC55\Bin\bcc32.exe "$(FILE_NAME)"
- $(NAME_PART)
And if you want the program to run in its own window :
- npp_save
- CD $(CURRENT_DIRECTORY)
- cmd /c DEL "$(NAME_PART).exe"
- C:\Borland\BCC55\Bin\bcc32.exe "$(FILE_NAME)"
- NPP_RUN cmd /c "$(NAME_PART)"
Now whenever you need to compile and execute your cpp program it will be useful.
eg:
** Borland compiler is decade old better to go for another one :) Ref: wikiBorland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 BorlandNONAME.CPP:Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland<<< Process finished.NONAMEProcess started >>>Hello World !!<<< Process finished.================ READY ================
No comments:
Post a Comment