이번 과제는 원하는 만큼 구구단 출력하기!!!!아래 그림과 같다.급하게 만들어서 약간의 오류가 있다. 알아서 수정하길 바란다. // This source was written by Yo-han Kim (johnkim126@korea.ac.kr) // Title : Print a multiplication Table with command line argument (Programming Assignment on Operating System, Korea Univ.) #include #include #include #include int main(int argc, char** argv){ /*- variables definition and initialization - int i : print row int..
프로그램 카운터 과제는 1초마다 프로세스 수를 표시한다.EnumProcess 함수를 통해 프로세스의 수를 구하면 된다. print_less_ten은 내가 개인적으로 만든 함수이다. 날짜 표시할 때 10이하면 두자리수를 맞춰주지 못하기 때문에 그러한 경우 '0'을 출력하도록 하였다. #pragma comment( lib, "Psapi.lib" ) #include #include #include #include #include #include using namespace std; void print_less_ten(int n){ // change print style for right format if(n
이거 만들다가 high, low 개념 잘 몰라서 소스 참고해서 만들었다.다 만들고 나니 이해가 되더라. 원래 High 쪽 처리를 해줘야되는데, 귀찮아서 빼줬다.7초 이내의 값의 차이를 체크한다면 High를 빼줘도 정상적으로 동작하지만,last, current가 7초 이상 차이가 나면 문제가 발생한다. 그때는 high 값을 가지고 판단해야한다.[참고한 사이트 : http://hushou.tistory.com/357] 5초, 10초, 15초의 평균 값은 간단하게 계산해보았다.copy & paste하면 도움이 안된다. 주석까지 copy & paste하지 말길 ㅋ 이번 과제의 목표는 아래와 같다.display the CPU load of your computer every 1 second.print out th..