mirror of
https://github.com/kuhyx/testsAndMisc-archive.git
synced 2026-07-04 13:23:01 +02:00
12 lines
252 B
C
12 lines
252 B
C
|
|
#pragma once
|
||
|
|
#include <string>
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
struct charOccurence {
|
||
|
|
char c;
|
||
|
|
int occurrence;
|
||
|
|
};
|
||
|
|
|
||
|
|
void printCharOccurenceVector(const std::vector<charOccurence> v);
|
||
|
|
std::vector<charOccurence> computeCharOccurences(const std::string &userInput);
|