ayush_ladia's Profile
Reputation: 0
Apprentice
- Group:
- Members
- Active Posts:
- 21 (0.03 per day)
- Joined:
- 26-June 11
- Profile Views:
- 416
- Last Active:
Mar 24 2013 12:00 AM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: not able to set up git
Posted 22 Oct 2011
thanks again Curtis Rutland . -
In Topic: not able to set up git
Posted 21 Oct 2011
please help again i am having trouble in setting up the repository
i did everythin on the linkcreting repo but am getting the following error on the last step:
fatal:remote origin already exists
please help i am new to GITHUB -
In Topic: not able to set up git
Posted 20 Oct 2011
thanks a lot for your fast replies friends i was finally able to do this. -
In Topic: cant understand this compilation error
Posted 12 Oct 2011
Coding in the name of, on 12 October 2011 - 12:22 PM, said:Change binarySearchTree<int> tree1(void); to binarySearchTree<int> tree1;. What you've written is a declaration of a function called tree1 that takes no arguments and returns a binarySearchTree<int>. This is the non-aggregate type that the compiler is talking about.
as i try what u have told me a new problem has arrived i have used 2 constructors in the tree class defination(normal and copy) they are:-(ie i changed the line to binarySearchTree<int> tree1;
template<class comparable>
binarySearchTree<comparable>::binarySearchTree(void)
{
root=NULL;
}
template<class comparable>
binarySearchTree<comparable>::binarySearchTree(const binarySearchTree & rhs)
{/********/ //this symbol is of significance
root=rhs.root;
}
but the compiler is now saying:
/c++ programs/BSTree.cpp C:\c++ programs\C In instantiation of `binarySearchTree<int>':
7 C:\c++ programs\BSTreetest.cpp instantiated from here
33 C:\c++ programs\BSTree.cpp ` binarySearchTree<comparable>::binarySearchTree(const binarySearchTree & rhs)
line 1 refers to the class instantiation(binarySearchTree<int> tree1)
line 2 is also higlighting the same line
line 3 takes me to /********/
why is it considering only the copy constructor?
Coding in the name of, on 12 October 2011 - 12:22 PM, said:Change binarySearchTree<int> tree1(void); to binarySearchTree<int> tree1;. What you've written is a declaration of a function called tree1 that takes no arguments and returns a binarySearchTree<int>. This is the non-aggregate type that the compiler is talking about.
as i try what u have told me a new problem has arrived i have used 2 constructors in the tree class defination(normal and copy) they are:-(ie i changed the line to binarySearchTree<int> tree1;
template<class comparable>
binarySearchTree<comparable>::binarySearchTree(void)
{
root=NULL;
}
template<class comparable>
binarySearchTree<comparable>::binarySearchTree(const binarySearchTree & rhs)
{/********/ //this symbol is of significance
root=rhs.root;
}
but the compiler is now saying:
/c++ programs/BSTree.cpp C:\c++ programs\C In instantiation of `binarySearchTree<int>':
7 C:\c++ programs\BSTreetest.cpp instantiated from here
33 C:\c++ programs\BSTree.cpp ` binarySearchTree<comparable>::binarySearchTree(const binarySearchTree & rhs)
line 1 refers to the class instantiation(binarySearchTree<int> tree1;)
line 2 is also higlighting the same line
line 3 takes me to /********/
why is it considering only the copy constructor? -
In Topic: cant understand this compilation error
Posted 12 Oct 2011
Coding in the name of, on 12 October 2011 - 12:22 PM, said:Change binarySearchTree<int> tree1(void); to binarySearchTree<int> tree1;. What you've written is a declaration of a function called tree1 that takes no arguments and returns a binarySearchTree<int>. This is the non-aggregate type that the compiler is talking about.
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Private
Friends
|
|


Find Topics
Find Posts
View Reputation Given


|
Comments
ayush_ladia has no profile comments yet. Why not say hello?