0
Can you please write this method (function) in c++ instead of c#!
4 odpowiedzi
+ 1
Why ?You should do it yourself,search for how to take string input in c++ and print it
+ 1
This would be inside main. Sorry I didn't realise how new you were. I'm going to edit above^
0
#include<iostream>
using namespace std;
int main(){
string name;
void helloUser()
{
cout<<"Enter Name";
cin>>name;
cout<<"Hello"<<name<<"!";
}}
0
Thank you for your response. Another question I still have is why in this example we don't use main() function.