Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

longbowaj

@longbowaj
About
Posts
7
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Work at Home...
    L longbowaj

    The only surveys aren't scams. You just have to deal with taking some survey for a buck or less. My girlfriend does it when she's really bored i think the most she made off one was 3 bucks. Personally I'd rather play games or something other then take a survey even if you do make a small amount of money for your effort.

    The Lounge

  • Stupid PC tricks
    L longbowaj

    Back in college we had a design lab with just two computers in it. That means that there was hardly a free computer to use and all these silly underclassmen kept using it. So one of the design groups and I removed all the desk icons except for the ones you can't, like the trash can. We took a screen shot put it as the background then put the taskbar on auto hide and moved all the remaining icons to the side where you can't see them unless you know what you were looking for. Needless to say a lot of people were restarting those machines and soon enough those silly underclassman stopped using our computers.

    The Lounge csharp php wpf com question

  • Why Don't We Eat Lions?
    L longbowaj

    Carnivores don't taste good.

    The Lounge question lounge

  • Cool physics page
    L longbowaj

    We can see the effects a black hole has on various stars. If there is no black hole then what is causing the behaviors observed. If there is something there we should be able to "see" it radiate some kind of signal. Or it could be that the object there is a black hole which accounts for the behavior of the system and why we can not detect the object. Also if you don't believe in a black hole then you can not believe in the concept of space-time.

    The Lounge html database com game-dev question

  • problem with nested loops
    L longbowaj

    ahhh i'm silly sometimes. thank you much for that i was going nuts truing to figure it out.

    C / C++ / MFC help tutorial

  • problem with nested loops
    L longbowaj

    sure thing

    #include using namespace std;

    int main () {
    int number;
    int testval = 0;

    while (true) {
    	cout << "Pick a number 4 quits" << endl;
    	cin >> number;
    	if (number == 4) {
    		return 0;
    	}
    	else if (number == 1) {
    		while (testval != 5) {
    			cout << "pick a new number: ";
    			cin >> testval;
    
    			if (testval == 1) {
    				cout << "inner loop 1" << endl;
    			}
    			else if (testval == 2) {
    				cout << "inner loop 2" << endl;
    			}
    			else {
    				cout << "inner loop 3" << endl;
    			}
    		}
    	}
    	else if (number == 2) {
    		cout << "outer loop 1" << endl;
    	}
    	else {
    		cout << "outer loop 2" << endl;
    	}
    }
    

    }

    C / C++ / MFC help tutorial

  • problem with nested loops
    L longbowaj

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

    C / C++ / MFC help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups