Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. void modoManual()
  2. {
  3. char linha, coluna, orientacao;
  4. int numero_barcos_falta = numero_barcos;
  5. for (int i = 0; i < numero_barcos; i++)
  6. {
  7. numero_barcos_falta = numero_barcos;
  8. while (numero_barcos_falta != 0)
  9. {
  10. cout << simbolo_barco[i] << " - " << nome_barco[i] << ". Tamanho =" << comprimento_barco[i] << ". Falta(m) " << numero_barcos_falta[i] << "." << endl;
  11. cout << " Linha (A ... J) Coluna (a ... j) Orientacao (H V) ?" << endl;
  12. cin >> linha >> coluna >> orientacao;
  13. int num_linha = cast <int> char linha - 65;
  14. int num_coluna = cast<int> char linha - 97;
  15.  
  16. if (orientacao == 'H')
  17. (for int j = 0; j < comprimento_barco; j++)
  18. {
  19. Board[num_coluna + j][num_linha] = simbolo_barco[i];
  20. }
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement