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

HelloYou: TODO #21

Open
satyamvats5 opened this issue Sep 13, 2017 · 1 comment
Open

HelloYou: TODO #21

satyamvats5 opened this issue Sep 13, 2017 · 1 comment

Comments

@satyamvats5
Copy link
Collaborator

Go through HelloYou.c and complete that TODO part.

@satyamvats5 satyamvats5 changed the title HelloYou: DEBUG HelloYou: TODO Sep 13, 2017
@JustinKey187
Copy link

Update code to not use older c style and makes the code more readable.
The char length in name was not need. Told pc to ask for a name then spit out to the user. pretty simple stuff. Also updated main to take an int type. Added <stdio.h> and as well as standard namespace.

`#include <stdio.h>
#include

using namespace std;

int main(void)
{
string name;
cout << "What is your name" << endl;;
cin >> name;
cout << "Hello! " << name;
return 0;
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants