Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 1.92 KB

README.md

File metadata and controls

69 lines (52 loc) · 1.92 KB

한국어

Chapter Ⅰ
Instruction

  • Fork the Piscine03 repository.
  • You can use git push at the main branch to push to the server.
  • You always can restart the project if you didn't get the right result.
  • Commit with the message you want.
  • Try the command git log --oneline --graph --all and it will show you all the commits you've made.

  • You should make a calculator for this project.
  • This is a group project so you need at least one person in your team.



Chapter Ⅱ
Exercise 00 : Make a calculator

Turn-in branch Turn-in directory Files to turn in Allowed commands
main ex00/ calculator anything

  • Create a git graph same as the above.
  • Make a dev branch from the main branch.
  • Make these branches from the dev branch.
    • Each team members should work on different branches.
    • feature/plus : write a program which has add feature
    • feature/minus : write a program which has subtract feature
    • feature/multiple : write a program which has multiplication feature
    • feature/divide : write a program which has division feature
  • Merge feature/* branches into the dev branch.
  • Merge dev branch into the main branch.
  • Your calculator should work well on the main branch.

  • Example :
#include <stdio.h>

int plus(int n1, int n2);
int minus(int n1, int n2);
int mul(int n1, int n2);
int div(int n1, int n2);
int square(int n);

int main(void)
{
    printf("plus : 4 + 2 = %d \n", plus(4, 2));
    printf("minus : 4 - 2 = %d \n", minus(4, 2));
	printf("mul : 4 * 2 = %d \n", mul(4, 2));
	printf("div : 42 % 2 = %d \n", div(42, 2));
    printf("square : 4 ^ 2 = %d \n", square(4));

	return (0);
}