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: 203
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: 3372
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: 203
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: Wed Jun 12 20:10:37 CEST 2024

Total time taken to generate the page: 0.01971 seconds