Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » for(;;)
for(;;) [message #55696] Tue, 01 December 2020 03:11 Go to next message
BetoValle is currently offline  BetoValle
Messages: 202
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi,

what means "for(;;)" ?

        dlg.number <<= 10;
	for(;;)
		switch(dlg.Execute()) {
		case IDOK:
			PromptOK(AsString(~dlg.number));
			break;
		case IDCANCEL:
			return;
		}

        double x = Mul(p);
	for(;;)
		if(p.Char('+'))
			x = x + Mul(p);
		else
		if(p.Char('-'))
			x = x - Mul(p);
		else
			return x;


is something defined in U++ or C++?

thanks
Re: for(;;) [message #55697 is a reply to message #55696] Tue, 01 December 2020 08:25 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Yes, it is an infinite loop like a while(true).
You have a discussion about it here.


Best regards
IƱaki
Re: for(;;) [message #55699 is a reply to message #55697] Tue, 01 December 2020 14:17 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 202
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
ok thanks
Previous Topic: check if application is running
Next Topic: Where to download 32 bit release of U++ ?
Goto Forum:
  


Current Time: Fri Mar 29 11:15:44 CET 2024

Total time taken to generate the page: 0.02258 seconds