Esempio n. 1
0
int main(int argc, char* argv[])
{
    Test1_7();
    Test8_11();
    Test12_15();
    Test16();
}
void Chapter1Test::TestAll() {
  Test1_1(); // Problem 1.1: check if a string has all unique chars
  Test1_2(); // Problem 1.2: reverse a null-terminated string
  Test1_3(); // Problem 1.3: if a string is permutation of another one
  Test1_4(); // Problem 1.4: replace spaces with %20 in a string
  Test1_5(); // Problem 1.5: compress a string by counting consecutive chars
  Test1_6(); // Problem 1.6: rotate an image by 90 degrees clockwisely
  Test1_7(); // Problem 1.7: set col and row to zero if an element in them is zero
  Test1_8(); // Problem 1.8: check if s2 is the rotation of s1
}