wak3upalex / cppedu

repository to have practice in C++ language
0 stars 0 forks source link

use functions instead of comments #4

Open MaKsY2 opened 6 months ago

MaKsY2 commented 6 months ago

Instead:

int main() {
  std::cout<<1;
}
// int main() {
//   std::cout<<2;
// }
// int main() {
//   std::cout<<3;
// }

Use:

int main() {
  A1();
}
void A1() {
  std::cout<<1;
}
void A2() {
  std::cout<<2;
}
void A3() {
  std::cout<<3;
}
wak3upalex commented 6 months ago

image Thanks for the advice. I will fix my structure of code in the next commits