From e97fc24c49ec6cbdff31c0c554dc882b3396287b Mon Sep 17 00:00:00 2001 From: vinexer <44620550+vinexer@users.noreply.github.com> Date: Sun, 12 May 2019 13:50:47 -0300 Subject: [PATCH] Translated lines 22 - 55 (#33745) Updated the language to portuguese in lines 22 to 55 --- .../portuguese/cplusplus/overloading/index.md | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/guide/portuguese/cplusplus/overloading/index.md b/guide/portuguese/cplusplus/overloading/index.md index c74d44cc986..729517a90a4 100644 --- a/guide/portuguese/cplusplus/overloading/index.md +++ b/guide/portuguese/cplusplus/overloading/index.md @@ -19,29 +19,29 @@ A seguir, o exemplo em que a mesma função print () está sendo usada para impr #include using namespace std; - class printData { + class imprimirDados { public: - void print(int i) { - cout << "Printing int: " << i << endl; + void imprimir(int i) { + cout << "Imprimindo int: " << i << endl; } - void print(double f) { - cout << "Printing float: " << f << endl; + void imprimir(double f) { + cout << "Imprimindo float: " << f << endl; } - void print(const string& s) { - cout << "Printing string: " << s << endl; + void imprimir(const string& s) { + cout << "Imprimindo string: " << s << endl; } }; int main() { - printData pd; + imprimirDados pd; - // Call print to print integer + // Chamada para imprimir inteiro pd.print(5); - // Call print to print float + // Chamada para imprimir float pd.print(500.263); - // Call print to print string + // Chamada para imprimir string pd.print("Hello C++"); return 0; @@ -50,9 +50,9 @@ A seguir, o exemplo em que a mesma função print () está sendo usada para impr Quando o código acima é compilado e executado, ele produz o seguinte resultado - ``` -Printing int: 5 - Printing float: 500.263 - Printing string: Hello C++ + Imprimindo int: 5 + Imprimindo float: 500.263 + Imprimindo string: Hello C++ ``` ### Sobrecarga de Operador em C ++ @@ -99,4 +99,4 @@ Saída para o programa acima ``` 4 + i3 -``` \ No newline at end of file +```