Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

includes and namespace #1

Closed
Tracked by #10
alikzalikz opened this issue Jan 24, 2023 · 0 comments
Closed
Tracked by #10

includes and namespace #1

alikzalikz opened this issue Jan 24, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@alikzalikz
Copy link
Owner

includes and namespace

RailwayCli/main.cpp

Lines 1 to 6 in 021ebb1

#include<iostream>
#include<fstream>
#include<string>
#include<bits/stdc++.h>
using namespace std;

the #include<bits/stdc++.h> used for transform(... ::tolower) function
like this example

RailwayCli/main.cpp

Lines 148 to 154 in 021ebb1

cout << "Enter Passenger name: ";
getline(cin, person.name);
transform(person.name.begin(), person.name.end(), person.name.begin(), ::tolower);
cout << "Enter Passenger family: ";
getline(cin, person.family);
transform(person.family.begin(), person.family.end(), person.family.begin(), ::tolower);

@alikzalikz alikzalikz mentioned this issue Jan 24, 2023
8 tasks
@alikzalikz alikzalikz added the documentation Improvements or additions to documentation label Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant