Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: namespaces Pin
Cedric Moonen27-Feb-07 7:35
Cedric Moonen27-Feb-07 7:35 
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 
Hello again,

This time my code works, it's this:

#include <iostream>

int main() {

	int get;
	get = 10;

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


but, when i type characters in 2 times it's ok, but when i type in 3 time, program autocloses. IS there possible to make it that it makes circles without exiting program, and without adding extra if lines?
AnswerRe: success! [modified] Pin
Programm3r27-Feb-07 6:25
Programm3r27-Feb-07 6:25 
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 

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.