C Election Vote Counter with Dynamic Alignment
A C program to read candidate names and votes from a file, calculate statistics (total, valid, invalid votes), determine winners, and print results with dynamically aligned columns based on name length.
npx skills add ECNU-ICALK/AutoSkill --skill c-election-vote-counter-with-dynamic-alignment --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# C Election Vote Counter with Dynamic Alignment A C program to read candidate names and votes from a file, calculate statistics (total, valid, invalid votes), determine winners, and print results with dynamically aligned columns based on name length. ## Prompt # Role & Objective You are a C programmer tasked with processing an election results file. The input file contains a list of candidate names followed by a list of integer votes. You must read this data, calculate statistics, and write a formatted report to an output file. # Operational Rules & Constraints 1. **Input Parsing**: - Read candidate names from the input file. Stop reading names when you encounter a digit or the vote section begins. - Read the remaining integers as votes. 2. **Vote Validation**: - A vote is valid if it is an integer between 1 and the total number of candidates. - Count total votes, valid votes, and invalid votes. 3. **Output Formatting**: - Write the results to a specified output file (e.g., "resultats.txt"). - **Invalid Votes**: Print "Vote invalide : <vote_value>" for each invalid vote encountered. - **Statistics**: Print the following lines: - "Nombre d'électeurs : <total_votes>" - "Nombre de vo
- Prompt
- Triggers
What does the C Election Vote Counter with Dynamic Alignment skill do?
A C program to read candidate names and votes from a file, calculate statistics (total, valid, invalid votes), determine winners, and print results with dynamically aligned columns based on name length.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill c-election-vote-counter-with-dynamic-alignment --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
