write infinite loop in C++ which does not use any variable
or constant?

Answer Posted / gyanendra verma

#include<iostream.h>
#include<conio.h>
void main()
{
while!kbhit())
{
gotoxy(10,20);
printf(" Infinite loop by gyanendra verma ";
}
getch();
}
kbhit() : - A function that wait untill key press

Is This Answer Correct ?    3 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to access grid view row?

1812


What is flush c++?

538


What is an arraylist c++?

687


Is there any function that can skip certain number of characters present in the input stream?

583


How did c++ get its name?

567






What is meant by iomanip in c++?

604


Is swift better than c++?

537


Should I learn c or c++ or c#?

555


Difference between delete and free.

610


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1639


Name four predefined macros.

592


How are the features of c++ different from c?

591


What is the use of default constructor?

567


What is exception handling? Does c++ support exception handling?

585


What is cin clear () in c++?

610