Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Object-Oriented Programming



절차적 프로그래밍

Code Block
themeEmacs
linenumberstrue
int main()
{
   printf("Hello, World!");
   printf("Hello, World! Again");
   return 0;
}


구조적 프로그래밍

Code Block
themeEmacs
linenumberstrue
void hello(string message)
{
	printf(message);
}

void helloAgain(string message)
{
	printf(message + "Again");
}


int main()
{
   hello("Hello, World!");
   helloAgain("Hello, World!");
   return 0;
}