Browse Source

Minor changes to README instructions for ex 2. Minor changes to cypher.cpp so it compiles without completition of the code

Jose Ortiz 8 years ago
parent
commit
f37706af6b
2 changed files with 5 additions and 4 deletions
  1. 2
    2
      README.md
  2. 3
    2
      cypher.cpp

+ 2
- 2
README.md View File

@@ -212,7 +212,7 @@ El programa debe implementar el cifrador Vigenere para ir cifrando cada caracter
212 212
 
213 213
     ---
214 214
 
215
-2. Al terminar tu código, ve a la función `main` y descomenta la invocación a la función de prueba unitaria `test_cypher2` para que verifiques tu programa.
215
+2. Al terminar tu código, ve a la función `main`, comenta la invocación a la función de prueba unitaria `test_cypher1` y descomenta la invocación a la función de prueba unitaria `test_cypher2` para que verifiques tu programa.
216 216
 
217 217
 ---
218 218
 
@@ -450,7 +450,7 @@ In this exercise you will modify the code for the cypher function from Exercise
450 450
     ---
451 451
 
452 452
 
453
-2. After you implement the `cypher` function, modify the `main` function so that line that invokes `test_cypher2` is uncommented. Once again, you will not see the app’s graphical user interface until the `test_cypher2` verifications.
453
+2. After you implement the `cypher` function, modify the `main` function so that the line that invokes `test_cypher2` is uncommented, and the line that invokes `test_cyper1` is commented. Once again, you will not see the app’s graphical user interface until the `test_cypher2` verifications.
454 454
  
455 455
 ---
456 456
 

+ 3
- 2
cypher.cpp View File

@@ -20,9 +20,10 @@ using namespace std;
20 20
 
21 21
 string cypher(string message, string key){
22 22
    
23
-    
23
+    string cypheredMsg = "";
24
+
24 25
     // YOUR CODE HERE
25
-    
26
+
26 27
     return cypheredMsg ;
27 28
 
28 29
 }