Interesting loop

View previous topic View next topic Go down

Interesting loop

Post by BIT0112-Rokon on Wed Nov 17, 2010 5:00 pm

I think its interesting... have a look...

Code:

/*
 * File:  main.cpp
 * Author: rokon
 *
 * Created on November 5, 2010, 4:49 PM
 */

#include <cstdio>
#include<iostream>
using namespace std;


int main(int argc, char** argv) {

    int key = 2;
    switch (key){
        case 2 + 3 : do_again:
        case 2 : cout<<"Interesting for loop" <<endl;
            goto do_again;
        case 3 :;
        default:;

    }

    return 0;
}




_________________________________________________________________


Code Explosion Blog | Code Explosion Wiki | The Rokonoid | নির্ঝরিণী
avatar
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

View user profile http://blog.codexplo.org

Back to top Go down

Re: Interesting loop

Post by BIT0115-Efat on Wed Nov 17, 2010 5:59 pm

how it is interesting?? :S
avatar
BIT0115-Efat
Service Release
Service Release

Course(s) :
  • BIT

Blood Group : O+
Posts : 779
Points : 1120

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum