[Dev-C++] Fw: RES: F9 Functionality - Run if no compile needed?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Eric <eri...@wo...> - 2008-05-20 18:49:29
|
----- Original Message -----
um how do you close it?
File => close. (or equivalent)
why close it? mind you I dont run the program much because I dont realy have
a project, I did look at the Easter program a few months ago, that seems to
be ok when you "F9, (edit), close, F9" it.
I tried the edit on "if( year == 2020) break;" this just saves the program
running for ever if there is a loop mistake.
I included the code so you can test drive it if you like and so your problem
is still there
The code looks funny with its "a to m" variables
this gives you Easter Sunday for any year.
I just added in the for loop
>From Eric
( I have a idea for a good project, )
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int a,b,c,d,e,f,g,h,i,k,L,m, day, month, year, yend;
cout << " Input year \t";
cin >> year;
yend = year +10;
for (year; yend >= year ;year++
a = year % 19;
b = year / 100;
c = year % 100;
d = b / 4;
e = b % 4;
f = (b + 8) / 25;
g = (b - f + 1) / 3;
h = (19 * a + b - d - g + 15) % 30;
i = c / 4;
k = c % 4;
L = (32 + 2 * e + 2 * i - h - k) % 7;
m = (a + 11 * h + 22 * L) / 451;
month = (h + L - 7 * m + 114) / 31;
day = ((h + L - 7 * m + 114) % 31) + 1;
cout << day;
cout << "\t";
cout << month ;
cout << "\t" ;
cout << year << "\t" << "\n";
if( year == 2020) break;
}
system("PAUSE");
return EXIT_SUCCESS;
}
----- Original Message -----
From: Alex Martin <li...@re...>
To: Kleber Eduardo Clemente <kle...@da...>
Cc: <dev...@li...>
Sent: Tuesday, May 20, 2008 5:56 AM
Subject: Re: [Dev-C++] RES: F9 Functionality - Run if no compile needed?
Hello,
Thanks for the reply. So here is the situation:
No program is running.
I edit code.
I push f9 -> the program compiles, then runs.
I close the program.
I push f9 again, (compiler log: Nothing to be done for 'all'.) -> The
program does not run.
I would like it if the program would run even though it was already
compiled, as I see no reason for it not to run, am I wrong here?
Thanks,
Alex Martin
li...@re...
Kleber Eduardo Clemente wrote:
> I think it's happen only when the program is open. If it's already
compiled, but is closed, when you push F9 the program will compile and run.
>
> []
>
> Kleber Eduardo Clemente
> Posto Avançado MRS - Datasul HCM
> Fone: (47) 3802-8848
> Mail: kle...@da...
> Antes de imprimir este e-mail, pergunte-se: "É realmente necessário?"
> -----Mensagem original-----
> De: dev...@li...
[mailto:dev...@li...] Em nome de Alex Martin
> Enviada em: segunda-feira, 19 de maio de 2008 14:20
> Para: dev...@li...
> Assunto: [Dev-C++] F9 Functionality - Run if no compile needed?
>
> Is there any reason to have dev-cpp not run the program after pushing F9
> even if the program has already been compiled?
>
> I am running version 4.9.9.2 with an external cygwin environment.
>
> Thanks,
> Alex Martin
> li...@re...
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 18-May-08
09:31
|