using namespace std; void fillGri..."> Hadianto Leonard Tian You Guo - Hadianto Leonard Tian You Guo

Hadianto Leonard Tian You Guo

Study Guides Aug 1, 2025
Loading...

Loading document viewer...

Page 0 of 0

Document Text

/**

  • polybius.cpp
  • *

  • Hadianto Leonard & Tian You Guo
  • leonhadi & kevinguo
  • *

* EECS 183: Project 3

*

  • <#description#>
  • */ #include "polybius.h" #include using namespace std; void 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++) { https://www.coursehero.com/file/35206747/polybiuscpp/ This study resource was shared via CourseHero.com

  • / 1

Download Document

Buy This Document

$30.00 One-time purchase
Buy Now
  • Full access to this document
  • Download anytime
  • No expiration

Document Information

Category: Study Guides
Added: Aug 1, 2025
Description:

/** * polybius.cpp * * Hadianto Leonard & Tian You Guo * leonhadi & kevinguo * * EECS 183: Project 3 * * <#description#> */ #include "polybius.h" #include using namespace std; void fillGri...

Get this document $30.00