Search google

Google
 

This is the place where I leave my scripts, my useful files, glad to have your suggestions. If you want to make discuss, please contact me at YM id bornbygoogle or my mail bornbygoogle@yahoo.com or simply let ur mail. I'll try to contact as soon as possible :) Nice to see you :D

Saturday, February 23, 2008

Adding repeat/until functionality in C++ !

This makes it easier for people familiar with Delphi and SCAR to use C++ by adding the familiar repeat/until loop. Only difference is that it must be capitalized to fit naming conventions.
Add this to the beginning of your file(s) after the includes/other directives:
Code:

#define REPEAT do{
#define UNTIL( condition ) }while(!(condition));

Example usage:

#include (iostream) <-- please use <> instead of () because this blog couldn't display <>
#define REPEAT do{
#define UNTIL( condition ) }while(!(condition));
using namespace std;
int main(int argc, char *argv[])
{
int i = 0;
REPEAT
cout << "The value of i is: " <<>
i++;
UNTIL(i==10)
system("PAUSE");
return EXIT_SUCCESS;
}

No comments:

Convert Megaupload links to Rapidshare links !

If someone want to convert Megaupload to Rapidshare links, please let me know, I'll do it for you ! ( for free, all ). If you want, please send those links to me, with the mail title : Convert to Rapidshare !. My mail is bornbygoogle@yahoo.com. Or YM ID : bornbygoogle.

Nice to help you ! :)