Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to get thread ID/Process ID of a running exe Pin
ram.Jaddu6-May-07 18:23
ram.Jaddu6-May-07 18:23 
AnswerRe: how to get thread ID/Process ID of a running exe Pin
nimatek6-May-07 20:19
nimatek6-May-07 20:19 
QuestionIs it possible to link VC6 static library with VC8? Pin
Peter Wlodarczyk6-May-07 14:39
Peter Wlodarczyk6-May-07 14:39 
AnswerRe: Is it possible to link VC6 static library with VC8? Pin
Michael Dunn6-May-07 20:21
sitebuilderMichael Dunn6-May-07 20:21 
QuestionGood winsock library ? Pin
GuimaSun6-May-07 14:10
GuimaSun6-May-07 14:10 
AnswerRe: Good winsock library ? Pin
Hans Dietrich6-May-07 20:19
mentorHans Dietrich6-May-07 20:19 
AnswerRe: Good winsock library ? Pin
ThatsAlok16-May-07 19:52
ThatsAlok16-May-07 19:52 
Questionproblem with nested loops Pin
longbowaj6-May-07 10:25
longbowaj6-May-07 10:25 
When i use the following code all works well for a while. If you enter the inner loop once it works fine but will not allow to enter it a second time. can someone explain this to me please or show me how to enter it again.

thanks.

<br />
#include <iostream><br />
<br />
using namespace std;<br />
<br />
int main () {<br />
	int number;<br />
	int testval = 0;<br />
<br />
	while (true) {<br />
		cout << "Pick a number 4 quits" << endl;<br />
		cin >> number;<br />
		if (number == 4) {<br />
			return 0;<br />
		}<br />
		else if (number == 1) {<br />
			while (testval != 5) {<br />
				cout << "pick a new number: ";<br />
				cin >> testval;<br />
<br />
				if (testval == 1) {<br />
					cout << "inner loop 1" << endl;<br />
				}<br />
				else if (testval == 2) {<br />
					cout << "inner loop 2" << endl;<br />
				}<br />
				else {<br />
					cout << "inner loop 3" << endl;<br />
				}<br />
			}<br />
		}<br />
		else if (number == 2) {<br />
			cout << "outer loop 1" << endl;<br />
		}<br />
		else {<br />
			cout << "outer loop 2" << endl;<br />
		}<br />
	}<br />
}<br />

QuestionRe: problem with nested loops Pin
Mark Salsbery6-May-07 10:28
Mark Salsbery6-May-07 10:28 
AnswerRe: problem with nested loops Pin
longbowaj6-May-07 10:32
longbowaj6-May-07 10:32 
AnswerRe: problem with nested loops Pin
Mark Salsbery6-May-07 10:39
Mark Salsbery6-May-07 10:39 
GeneralRe: problem with nested loops Pin
longbowaj6-May-07 10:45
longbowaj6-May-07 10:45 
GeneralRe: problem with nested loops Pin
#realJSOP7-May-07 1:50
professional#realJSOP7-May-07 1:50 
GeneralRe: problem with nested loops Pin
Mark Salsbery7-May-07 4:19
Mark Salsbery7-May-07 4:19 
QuestionRemove help button from property sheet Pin
Max++6-May-07 8:45
Max++6-May-07 8:45 
AnswerRe: Remove help button from property sheet Pin
Tony Hill6-May-07 8:52
professionalTony Hill6-May-07 8:52 
GeneralRe: Remove help button from property sheet Pin
prasad_som6-May-07 20:36
prasad_som6-May-07 20:36 
Questiondynamic memory Pin
Dj_Lordas6-May-07 8:10
Dj_Lordas6-May-07 8:10 
AnswerRe: dynamic memory Pin
Dj_Lordas6-May-07 8:14
Dj_Lordas6-May-07 8:14 
AnswerRe: dynamic memory Pin
Mark Salsbery6-May-07 10:21
Mark Salsbery6-May-07 10:21 
GeneralRe: dynamic memory Pin
John R. Shaw6-May-07 12:13
John R. Shaw6-May-07 12:13 
GeneralRe: dynamic memory Pin
Mark Salsbery6-May-07 12:14
Mark Salsbery6-May-07 12:14 
GeneralRe: dynamic memory Pin
Dj_Lordas6-May-07 22:13
Dj_Lordas6-May-07 22:13 
GeneralRe: dynamic memory Pin
Dj_Lordas6-May-07 22:38
Dj_Lordas6-May-07 22:38 
GeneralRe: dynamic memory Pin
Mark Salsbery7-May-07 9:57
Mark Salsbery7-May-07 9:57 

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.