Loading...
More Plaintext Posts
#include <iostream>#include <vector>#include <algorithm>#include <cstdlib>#include <ctime>using namespace std;// Function to generate random numbersvector<int> generateRandomNumbers(int count, int minValue, int maxValue) {vector<int> numbers;for (int i = 0; i < count; ++i) {numbers.push_back(rand() % (maxValue - minValue + 1) + minValue);}return numbers;}// Function to print a vector of integersvoid printVector(const vector<int>& vec) {for (int num : vec) {cout << num << " ";}cout << endl;}// Function to sort and display numbersvoid sortAndDisplayNumbers(vector<int>& numbers) {sort(numbers.begin(), numbers.end());cout << "Sorted numbers: ";printVector(numbers);}int main() {// Seed the random number generatorsrand(static_cast<unsigned int>(time(0)));int count, minValue, maxValue;cout << "Enter the number of random numbers to generate: ";cin >> count;cout << "Enter the minimum value: ";cin >> minValue;cout << "Enter the maximum value: ";cin >> maxValue;// Generate random numbersvector<int> numbers = generateRandomNumbers(count, minValue, maxValue);// Display unsorted numberscout << "Unsorted numbers: ";printVector(numbers);// Sort and display sorted numberssortAndDisplayNumbers(numbers);return 0;}
# This is the network config written by 'subiquity'network:ethernets:enp0s3:dhcp4: yesnameservers:addresses: [8.8.8.8,8.8.4.4]version: 2
in case of SCCM error 0x800700A1 do the following:diskpartlist disk (list all disks on system)select disk 0 (0 being the disk to setup)clean (wipes the disk)create partition primary (creates windows partition)select partition 1 (selects the first partition)format quick fs=NTFS (sets format of primary partition)assign letter C (assigns the drive letter to "C")exit (exits diskpart)
delivery.HTTP(publicMux, delivery.Service{CalculateSaleEvent: usecase.NewCalculateSaleEvent(saleCalculator),TmEnrichMany: usecase.NewTmEnrichMany(saleCalculator),})
test
#!/bin/bashyum -y install httpdsystemctl enable httpdsystemctl start httpdhostname > /var/www/html/index.html