Strings, Functions, Scope Resolution, Access Control, Function Ambiguity with Default values

#include <string>

using std::cout;
using std::endl;
using std::cin;
using std::string;
using std::getline;

void test1();
void test1(int x, int y, int z);
void test1(int x, int y, int z, int);

class A
      /* void test1(){
        void test1(int x=1, int y = 5, int z=8){
             cout<<"x y z"<<endl;
              void test1(int x = 1, int y=2, int z=3, int a=4){
              cout<<"x=1 y=2 z=3 a=4"<<endl;
       void test2(){

int xx;

 int main()
       int x=50;
       char y = 7;
    A bb;
    char z;
   // cin>>z;
    string name;
    getline(cin, name);


return 0;


About praveenaj

I'm just an average guy who enjoys doing Programming/Web Designs/Pencil art & drinking coffee :)
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s