2016-10-18 4 views
0

Eclipse에서 프로그램을 만들었고 실행하는 유일한 방법은 Windows의 명령 프롬프트 또는 Unix 터미널과 같은 콘솔 응용 프로그램에서 만드는 것입니다. 나는 명령 프롬프트에서 프로그램을 실행하는 방법과 유닉스 터미널에서도 알고 싶기 때문에 Windows OS를 사용하고 있습니까?명령 프롬프트에서 C++ 프로그램 실행

+0

사실 프로그램을 실행하는 것은 프로그램이 개발 된 원본 언어에 의존하지 않기 때문에 언어 태그를 제거 할 수 있습니다. –

답변

2

"시작"명령에 대한 설명서를 확인하십시오.

유닉스 g++ <file-path>
C:\>start /? 
Starts a separate window to run a specified program or command. 

START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED] 
    [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL] 
    [/NODE <NUMA node>] [/AFFINITY <hex affinity mask>] [/WAIT] [/B] 
    [command/program] [parameters] 

"title"  Title to display in window title bar. 
path  Starting directory. 
B   Start application without creating a new window. The 
      application has ^C handling ignored. Unless the application 
      enables ^C processing, ^Break is the only way to interrupt 
      the application. 
1

g++ ././C++/E1-13.c (홈 디렉토리)는 그것을 ./a.out

주를 실행하려면이 ././C++/a.outg++ E1-13.c (디렉토리 내에서)를 실행하려면 다음과 같은 .CC 같은 다른 파일 확장명을 사용할 수 있습니다, .cpp, 등등.

관련 문제