C++ Function Definition Create a function with no parameters

Description

C++ Function Definition Create a function with no parameters

#include <iostream>

using namespace std;

string Username()/* www.  j  a v  a 2s  .com*/
{
    return "test";
}

int main()
{
  cout << Username() << endl;
  return 0;
}



PreviousNext

Related