Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionQuery IWebBrowser2 for IOleObject not working Pin
rrrado27-Feb-07 7:01
rrrado27-Feb-07 7:01 
NewsRe: Query IWebBrowser2 for IOleObject not working Pin
Rajesh R Subramanian27-Feb-07 7:13
professionalRajesh R Subramanian27-Feb-07 7:13 
GeneralRe: Query IWebBrowser2 for IOleObject not working Pin
rrrado27-Feb-07 7:28
rrrado27-Feb-07 7:28 
QuestionDatabases in VC++ Pin
Programm3r27-Feb-07 6:22
Programm3r27-Feb-07 6:22 
AnswerRe: Databases in VC++ Pin
David Crow27-Feb-07 6:43
David Crow27-Feb-07 6:43 
GeneralRe: Databases in VC++ Pin
Programm3r27-Feb-07 7:01
Programm3r27-Feb-07 7:01 
Questionsuccess! Pin
reyyy27-Feb-07 6:13
reyyy27-Feb-07 6:13 
AnswerRe: success! [modified] Pin
Programm3r27-Feb-07 6:25
Programm3r27-Feb-07 6:25 
Hi reyyy,

What about putting your code in a loop until a certain condition is reached ....

#include 
int main() 
{	
	int get;
	int x = 0;
	get = 10;	
	std::cout << "Type number here:";	
	std::cin >> get;
	while (x < get)
	{
		if (get > 10) 
		{		
			std::cout << "You typed correct!";		
			std::cin >> get;	
		}
                else
                {	
		  if (get < 10) 
		  {		
			std::cout << "Ops, wrong!";		
			std::cin >> get;	
		  }
                  else
                  {	
		    if (get == 10) 
		    {		
			std::cout << "Yes, correct!";		
			std::cin >> get;	
		     } 	
		     else 
		     { 		
			std::cout << "Why, it's always wrong?";		
			std::cin >> get;	
		     }
                   }
                }
         x++;
	}
}


Regards,

The only programmers that are better than C programmers are those who code in 1's and 0's..... Smile | :)

Smile | :) Programm3r

GeneralRe: success! Pin
reyyy27-Feb-07 6:29
reyyy27-Feb-07 6:29 
GeneralRe: success! Pin
toxcct27-Feb-07 6:38
toxcct27-Feb-07 6:38 
GeneralRe: success! Pin
Programm3r27-Feb-07 6:40
Programm3r27-Feb-07 6:40 
AnswerRe: success! Pin
toxcct27-Feb-07 6:35
toxcct27-Feb-07 6:35 
AnswerRe: success! Pin
David Crow27-Feb-07 6:37
David Crow27-Feb-07 6:37 
GeneralRe: success! Pin
reyyy27-Feb-07 6:38
reyyy27-Feb-07 6:38 
GeneralRe: success! Pin
toxcct27-Feb-07 6:44
toxcct27-Feb-07 6:44 
GeneralRe: success! Pin
David Crow27-Feb-07 6:47
David Crow27-Feb-07 6:47 
GeneralRe: success! Pin
David Crow27-Feb-07 6:50
David Crow27-Feb-07 6:50 
GeneralRe: success! Pin
Programm3r27-Feb-07 6:41
Programm3r27-Feb-07 6:41 
GeneralRe: success! Pin
reyyy27-Feb-07 6:42
reyyy27-Feb-07 6:42 
GeneralRe: success! Pin
David Crow27-Feb-07 6:46
David Crow27-Feb-07 6:46 
GeneralRe: success! Pin
reyyy27-Feb-07 6:50
reyyy27-Feb-07 6:50 
GeneralRe: success! Pin
David Crow27-Feb-07 6:52
David Crow27-Feb-07 6:52 
GeneralRe: success! Pin
toxcct27-Feb-07 6:52
toxcct27-Feb-07 6:52 
GeneralRe: success! Pin
reyyy27-Feb-07 6:56
reyyy27-Feb-07 6:56 
GeneralRe: success! Pin
toxcct27-Feb-07 7:02
toxcct27-Feb-07 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.