VMsimulator code
2016-08-23
0 0 0
no vote
Other
Earn points
#include "main.h"
int main(int argc, char** argv)
{
int i, j, pageSize;
char* plist;
char* ptrace;
char* algorithm;
//Arguement checking and assignment
if(argc > 5)
{
plist = argv[1];
ptrace = argv[2];
pageSize = atoi(argv[3]);
algorithm = argv[4];
}
else
{
perror("Usage: ./VMsimulator [plist.txt file] [ptrace.txt file] [pageSize] [FIFO|LRU|CLOCK] [+|-]\n");
return 1;
}
if(pageSize < 1)
 
int main(int argc, char** argv)
{
int i, j, pageSize;
char* plist;
char* ptrace;
char* algorithm;
//Arguement checking and assignment
if(argc > 5)
{
plist = argv[1];
ptrace = argv[2];
pageSize = atoi(argv[3]);
algorithm = argv[4];
}
else
{
perror("Usage: ./VMsimulator [plist.txt file] [ptrace.txt file] [pageSize] [FIFO|LRU|CLOCK] [+|-]\n");
return 1;
}
if(pageSize < 1)
 
c++
代码
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment