This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rudimentary implementation of a doubly linked list using raw pointers (should be fairly safe though) | |
#include <iostream> | |
struct node { | |
int data; | |
struct node *prev; | |
struct node *next; | |
}; | |
//node* head_node = new node(); | |
// head_node->data = 5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$packageFile = Get-Content -Path "D:\PowerShell\packages.txt" | |
function wg { | |
param | |
( | |
[ValidateSet("upgrade","install", "uninstall")] | |
$type, | |
$packages = $packageFile | |
) | |
$packages | ForEach-Object { winget $type $_ } | |
} |