C++ examples for Function:Function Creation
Create a function with no parameters
#include <iostream> #include <string> using namespace std; string Username()/*from www . j av a2s.c om*/ { return "test"; } int main() { cout << Username() << endl; return 0; }