コード例 #1
0
int main(){
	
	//Test Odd Even SLL
	int arr[] = { 50, 4, 3, 7, 10, 99, 17 };
	struct oddevennode *head = NULL;
	for (int i = 0; i < 7; i++){
		addNode(&head, arr[i]);
	}
	oddeven_sll(head);
	getchar();
	return 0;

	//Test CommonRoute

	//MangoCollector
	
	//Test Pillars
}
コード例 #2
0
int main(){
	
	//Test Odd Even SLL
	struct oddevennode *head = NULL;
	int nums[20] = { 1,1,1,1,1,1,3,3,2,3 };
	for (int i = 10-1; i >= 0; i--){
		addNode(&head, nums[i]);
	}
	
	int *res = oddeven_sll(head);
	//printf("%2d%2d", res[0], res[1]);


	//Test CommonRoute

	//MangoCollector
	
	//Test Pillars
}