저저... 나의 예상이 ㅁ...
루라
네 질문하나합니다 위와같은소스#include stdio.h#include stdlib.h#include process.h // system();#include direct.h // _chdir();/* run this program using the console pauser or add your own getch, system(pause) or input loop */int main(){int cho,win;char ope[100];printf(Wait a second! Do you meet the 32-bit? (1 times 2 times 32-bit 64-bit)\n\a);printf(잠깐! 32비트가 맞으십니까? (1번 32비트 2번 64비트));printf( : \n);scanf(%d,&win);system(cls);printf( *** Internet search\n\a);printf( ***의 인터넷 검색기\n);printf(1 : Open Internet / 1 : 인터넷 열기\n);printf(2 : Not Open Server\n);printf( : \n);scanf(%d,&cho);if(cho=1){printf(Please enter your want to go home\n\a);printf(가고싶은 홈페이지를 입력해주세요\n);printf( : \n);scanf(%s,&ope);_chdir(c:\\Program Files\\Internet Explorer\\);// 디랙토리 이동.system(iexplore.exe http://www.naver.com); // 프로그램 실행.}}에서소스를#include stdio.h#include stdlib.h#include process.h // system();#include direct.h // _chdir();/* run this program using the console pauser or add your own getch, system(pause) or input loop */int main(){int cho,win;char ope[100];printf(Wait a second! Do you meet the 32-bit? (1 times 2 times 32-bit 64-bit)\n\a);printf(잠깐! 32비트가 맞으십니까? (1번 32비트 2번 64비트));printf( : \n);scanf(%d,&win);system(cls);printf( *** Internet search\n\a);printf( ***의 인터넷 검색기\n);printf(1 : Open Internet / 1 : 인터넷 열기\n);printf(2 : Not Open Server\n);printf( : \n);scanf(%d,&cho);if(cho=1){printf(Please enter your want to go home\n\a);printf(가고싶은 홈페이지를 입력해주세요\n);printf( : \n);scanf(%s,&ope);_chdir(c:\\Program Files\\Internet Explorer\\);// 디랙토리 이동.system(iexplore.exe %s,ope); // 프로그램 실행.}}//////위처럼 사용자가입력한 주소를 열러면 어떻게해야되져?2번쩨는 컴파일 실패구여;;
-
도란
sprintf나 strcat 등을 사용하여 문자열을 합쳐야 합니다.
빨간 부분에서 쓰신 것은 printf 함수 등에서 쓸 수 있는 방법입니다.
ex)
char str[255];
sprintf( str, \iexplore.exe %s\