Programming > STUDY GUIDE > polybius. University of Michigan - EECS 183 (All)
/** * polybius.cpp * * Hadianto Leonard & Tian You Guo * leonhadi & kevinguo * * EECS 183: Project 3 * * <#description#> */ #include "polybius.h" #include <string> using namespace std; vo ... id fillGrid(char grid[SIZE][SIZE], string content) { int i=0; for ( int row = 0; row < SIZE; row++) { for (int column = 0; column < SIZE; column ++, i++) { grid[row][column] = content[i]; } } } string mixKey(string key) { string str = ""; string s = key + ALNUM; s = key + ALNUM; bool flag = false; for (int i = 0; i < s.size(); i++) { if (i == 0) { str += s[i]; } else if ( i != 0) { for (int j = i-1; j >= 0; j--) { if (s[i] == s[j]) { flag = true; } } if (flag == false) { str += s[i]; } else if ( flag == true) { flag = false; } } } return str; } string findInGrid(char c, char grid[SIZE][SIZE]) { int i=0; string s = ""; for ( int row = 0; row < SIZE; row++) { [Show More]
Last updated: 3 years ago
Preview 1 out of 2 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Mar 23, 2021
Number of pages
2
Written in
All
This document has been written for:
Uploaded
Mar 23, 2021
Downloads
3
Views
328
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·