Assume I have a linked list contains all of the alphabets
from "A" to "Z?" I want to find the letter "Q" in the list,
how does you perform the search to find the "Q?"
Answers were Sorted based on User's Feedback
Answer / bharghavi
for(currnode=head;currnode!=null;currnode=currnode->next)
{
if(currnode->data=='Q')
cout<<"element found";
}
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / tutum
by using find() function..u can find "Q"...
regards
tutum
| Is This Answer Correct ? | 2 Yes | 1 No |
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
Is there any error below, its a code to delete all entires from a map #include <map> #include iostream.h int main() { int i =0; map <int, char> TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map<int, char> :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }
method overloading means what?
Explain when u will use Observer pattern and how u will implement in c++ .
What are the different types of stl containers?
Difference between Structure and Class in C++?
When did c++ add stl?
How the STL's are implemented, What the difference between templates and STL?
write a program to demonstrate,how constructor and deconstructor work under multilevel inheritance
What is stl stack?
write a piece of c++ code which allocate memory to the 50 object of type CObj