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 |
When did c++ add stl?
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
What does stl mean in slang?
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; }
differentiate between private, public and protected data members of the class using example.
write a c++ program to create an object of a class called employee containing the employee code name designation basic salarry HRA Da gross salary as data 10 such objects "members process "
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
what is template and type convertion
Write a program in C/C++ to implement reader- writer problem
What do stl stand for?
What is a stl vector?
Write a program in C++ returning starting locations of a substring using pointers