목차
[CC510]HW#3_20103033_고재현.docx
hw3.cpp
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
[CC510]HW#3_20103033_고재현.docx
1.Introduction
2.Source Code
3. Explation of the source code
hw3.cpp
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
[CC510]HW#3_20103033_고재현.docx
1.Introduction
2.Source Code
3. Explation of the source code
본문내용
1.Introduction
함수 definition, prototype, call 을 이해하고 간단한 예제를 통해 사용해본다.
2.Source Code
#include
int input();
void main()
{
int a;
while(1) //starts roop
{
a=input(); // call function and insert ouput to a;
if (a == 1) // if a is 1
{
printf("Your choice is #1\n");
printf("Copying files is completed\n"); // this is output for #`1
break; // get out from the loop
}
else if (a == 2) // same as 1
{
printf("Your choice is #2\n");
printf("Moving files is completed\n");
break;
}
else if (a == 3) //same as 1
{
printf("Your choice is #3\n");
printf("Removing files is completed\n");
break;
}
함수 definition, prototype, call 을 이해하고 간단한 예제를 통해 사용해본다.
2.Source Code
#include
int input();
void main()
{
int a;
while(1) //starts roop
{
a=input(); // call function and insert ouput to a;
if (a == 1) // if a is 1
{
printf("Your choice is #1\n");
printf("Copying files is completed\n"); // this is output for #`1
break; // get out from the loop
}
else if (a == 2) // same as 1
{
printf("Your choice is #2\n");
printf("Moving files is completed\n");
break;
}
else if (a == 3) //same as 1
{
printf("Your choice is #3\n");
printf("Removing files is completed\n");
break;
}