0

Can you please write this method (function) in c++ instead of c#!

https://code.sololearn.com/cycvvSH4JUzD/?ref=app

24th Jun 2020, 10:39 AM
TeaserCode
4 odpowiedzi
+ 1
Why ?You should do it yourself,search for how to take string input in c++ and print it
24th Jun 2020, 10:55 AM
Abhay
Abhay - avatar
+ 1
This would be inside main. Sorry I didn't realise how new you were. I'm going to edit above^
24th Jun 2020, 11:43 AM
Olivia
Olivia - avatar
0
#include<iostream> using namespace std; int main(){ string name; void helloUser() { cout<<"Enter Name"; cin>>name; cout<<"Hello"<<name<<"!"; }}
24th Jun 2020, 11:34 AM
Olivia
Olivia - avatar
0
Thank you for your response. Another question I still have is why in this example we don't use main() function.
24th Jun 2020, 11:40 AM
TeaserCode