dev-cpp-users Mailing List for Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
|
2
(1) |
3
|
4
(1) |
5
(1) |
6
|
7
|
8
(2) |
9
(3) |
10
(3) |
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
(5) |
20
(2) |
21
(1) |
22
(3) |
23
|
24
|
25
(1) |
26
(3) |
27
(1) |
28
(1) |
29
|
30
|
31
|
From: Per W. <pw...@ia...> - 2008-05-28 04:36:42
|
Always avoid including cpp files. cpp files are indented to generate object files and be linked. Templated functions are intended to be compiled into object files first when needed. As I wrote in one of my earlier mails, template functions should be placed in the relevant header file. Look at the STL files: In all cases, the actual source code for the implementations of lists, trees, arrays etc are available in the header files. /pwm On Tue, 27 May 2008, Jorge Guevara wrote: > I try with this. and no problem > > #include <iostream> > #include <cstdlib> > #include "mypair.hpp" > #include "mypair.cpp" // i include the implementation in the source > principal.cpp > > the question is less efficient?, or its ok? > > bytes > > > 2008/5/26, Per Westermark <pw...@ia...>: > > > > The compiler can't create the code for a template function unless it sees > > the implementation when you try to use the template function. > > > > You should have the implementation of your multiply function in the header > > file, and not hidden in a cpp file. > > > > It is only the linker that will see the generated code from multiple cpp > > files, and neither the compiler nor the compiler knows that calc.cpp > > should create a specific version of the multiply function with the double > > data type. > > > > /pwm > > > > > > On Sun, 25 May 2008, Jorge Guevara wrote: > > > > > i have 3 source calc.h calc.cpp and principal.cpp (i compilated it with > > > devcpp) > > > > > > i have this error: > > > In function `main': > > > [Linker error] undefined reference to `calc<double>::multiply(double, > > > double)' > > > ld returned 1 exit status > > > [Build Error] ["Proyecto] Error 1 > > > > > > somebody could help me please :) > > > > > > /********calc.h******/ > > > #ifndef _CALC_H > > > #define _CALC_H > > > > > > template <class A_Type> class calc > > > { > > > public: > > > A_Type multiply(A_Type x, A_Type y); > > > A_Type add(A_Type x, A_Type y); > > > > > > }; > > > > > > #endif > > > > > > /****calc.cpp******/ > > > #include "calc.h" > > > #include <iostream> > > > using namespace std; > > > > > > template <class A_Type> A_Type calc<A_Type>::multiply(A_Type x,A_Type y) > > > { > > > return x*y; > > > } > > > template <class A_Type> A_Type calc<A_Type>::add(A_Type x, A_Type y) > > > { > > > return x+y; > > > } > > > > > > > > > /******principal.cpp*****/ > > > #include "calc.h" > > > #include <iostream> > > > #include <cstdlib> > > > > > > using namespace std; > > > > > > int main() > > > { > > > calc <double> a_calc_class; > > > double a, b; > > > a=4.3; > > > b=3.4; > > > a_calc_class.multiply(a,b); > > > > > > system("PAUSE"); > > > return EXIT_SUCCESS; > > > } > > > /***************************/ > > > > > > > > > > -- > Ing. Jorge Luis Guevara Diaz > Bs Ciencias de la Computacion > Maestrante en Ciencia de la Computación > http://jorge.sistemasyservidores.com http://inf.unitru.edu.pe/~jlgd > Escuela de Informática - Universidad Nacional de Trujillo > Escuela de Ingeniería de Sistemas - Universidad Privada del Norte > |
From: Jorge G. <jor...@gm...> - 2008-05-27 20:17:32
|
I try with this. and no problem #include <iostream> #include <cstdlib> #include "mypair.hpp" #include "mypair.cpp" // i include the implementation in the source principal.cpp the question is less efficient?, or its ok? bytes 2008/5/26, Per Westermark <pw...@ia...>: > > The compiler can't create the code for a template function unless it sees > the implementation when you try to use the template function. > > You should have the implementation of your multiply function in the header > file, and not hidden in a cpp file. > > It is only the linker that will see the generated code from multiple cpp > files, and neither the compiler nor the compiler knows that calc.cpp > should create a specific version of the multiply function with the double > data type. > > /pwm > > > On Sun, 25 May 2008, Jorge Guevara wrote: > > > i have 3 source calc.h calc.cpp and principal.cpp (i compilated it with > > devcpp) > > > > i have this error: > > In function `main': > > [Linker error] undefined reference to `calc<double>::multiply(double, > > double)' > > ld returned 1 exit status > > [Build Error] ["Proyecto] Error 1 > > > > somebody could help me please :) > > > > /********calc.h******/ > > #ifndef _CALC_H > > #define _CALC_H > > > > template <class A_Type> class calc > > { > > public: > > A_Type multiply(A_Type x, A_Type y); > > A_Type add(A_Type x, A_Type y); > > > > }; > > > > #endif > > > > /****calc.cpp******/ > > #include "calc.h" > > #include <iostream> > > using namespace std; > > > > template <class A_Type> A_Type calc<A_Type>::multiply(A_Type x,A_Type y) > > { > > return x*y; > > } > > template <class A_Type> A_Type calc<A_Type>::add(A_Type x, A_Type y) > > { > > return x+y; > > } > > > > > > /******principal.cpp*****/ > > #include "calc.h" > > #include <iostream> > > #include <cstdlib> > > > > using namespace std; > > > > int main() > > { > > calc <double> a_calc_class; > > double a, b; > > a=4.3; > > b=3.4; > > a_calc_class.multiply(a,b); > > > > system("PAUSE"); > > return EXIT_SUCCESS; > > } > > /***************************/ > > > > -- Ing. Jorge Luis Guevara Diaz Bs Ciencias de la Computacion Maestrante en Ciencia de la Computación http://jorge.sistemasyservidores.com http://inf.unitru.edu.pe/~jlgd Escuela de Informática - Universidad Nacional de Trujillo Escuela de Ingeniería de Sistemas - Universidad Privada del Norte |
From: Per W. <pw...@ia...> - 2008-05-26 18:57:18
|
Think a bit about it. What code to you suggest that the compiler should enerate when it compiles calc.cpp? If the compiler does not know that other source files will use the template parameter "double", how will the compiler then be able to add a "double" version of multiply when it compiles calc.cpp? Remember that it is the compiler, not the linker, that produces the runnable code. The linker will have no use for an object file that doesn't contain instantiated template functions. /pwm On Mon, 26 May 2008, Lloyd wrote: > The reason for the error is you are not passing the obj file of calc.cpp > to the linker. Make appropriate settings in DevCpp. I think, you have to > add calc.cpp to your project. Sorry I dont use DevCpp. > > > On Sun, 2008-05-25 at 16:42 -0500, Jorge Guevara wrote: > > > > i have 3 source calc.h calc.cpp and principal.cpp (i compilated it > > with devcpp) > > > > i have this error: > > In function `main': > > [Linker error] undefined reference to `calc<double>::multiply(double, > > double)' > > ld returned 1 exit status > > [Build Error] ["Proyecto] Error 1 > > > > somebody could help me please :) > > > > /********calc.h******/ > > #ifndef _CALC_H > > #define _CALC_H > > > > template <class A_Type> class calc > > { > > public: > > A_Type multiply(A_Type x, A_Type y); > > A_Type add(A_Type x, A_Type y); > > > > }; > > > > #endif > > > > /****calc.cpp******/ > > #include "calc.h" > > #include <iostream> > > using namespace std; > > > > template <class A_Type> A_Type calc<A_Type>::multiply(A_Type x,A_Type > > y) > > { > > return x*y; > > } > > template <class A_Type> A_Type calc<A_Type>::add(A_Type x, A_Type y) > > { > > return x+y; > > } > > > > > > /******principal.cpp*****/ > > #include "calc.h" > > #include <iostream> > > #include <cstdlib> > > > > using namespace std; > > > > int main() > > { > > calc <double> a_calc_class; > > double a, b; > > a=4.3; > > b=3.4; > > a_calc_class.multiply(a,b); > > > > system("PAUSE"); > > return EXIT_SUCCESS; > > } > > /***************************/ > > > > > > ------------------------------------------------------------------------- > > 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 > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > 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 > |
From: Per W. <pw...@ia...> - 2008-05-26 16:40:39
|
The compiler can't create the code for a template function unless it sees the implementation when you try to use the template function. You should have the implementation of your multiply function in the header file, and not hidden in a cpp file. It is only the linker that will see the generated code from multiple cpp files, and neither the compiler nor the compiler knows that calc.cpp should create a specific version of the multiply function with the double data type. /pwm On Sun, 25 May 2008, Jorge Guevara wrote: > i have 3 source calc.h calc.cpp and principal.cpp (i compilated it with > devcpp) > > i have this error: > In function `main': > [Linker error] undefined reference to `calc<double>::multiply(double, > double)' > ld returned 1 exit status > [Build Error] ["Proyecto] Error 1 > > somebody could help me please :) > > /********calc.h******/ > #ifndef _CALC_H > #define _CALC_H > > template <class A_Type> class calc > { > public: > A_Type multiply(A_Type x, A_Type y); > A_Type add(A_Type x, A_Type y); > > }; > > #endif > > /****calc.cpp******/ > #include "calc.h" > #include <iostream> > using namespace std; > > template <class A_Type> A_Type calc<A_Type>::multiply(A_Type x,A_Type y) > { > return x*y; > } > template <class A_Type> A_Type calc<A_Type>::add(A_Type x, A_Type y) > { > return x+y; > } > > > /******principal.cpp*****/ > #include "calc.h" > #include <iostream> > #include <cstdlib> > > using namespace std; > > int main() > { > calc <double> a_calc_class; > double a, b; > a=4.3; > b=3.4; > a_calc_class.multiply(a,b); > > system("PAUSE"); > return EXIT_SUCCESS; > } > /***************************/ > |
From: Lloyd <ll...@cd...> - 2008-05-26 09:52:20
|
The reason for the error is you are not passing the obj file of calc.cpp to the linker. Make appropriate settings in DevCpp. I think, you have to add calc.cpp to your project. Sorry I dont use DevCpp. On Sun, 2008-05-25 at 16:42 -0500, Jorge Guevara wrote: > > i have 3 source calc.h calc.cpp and principal.cpp (i compilated it > with devcpp) > > i have this error: > In function `main': > [Linker error] undefined reference to `calc<double>::multiply(double, > double)' > ld returned 1 exit status > [Build Error] ["Proyecto] Error 1 > > somebody could help me please :) > > /********calc.h******/ > #ifndef _CALC_H > #define _CALC_H > > template <class A_Type> class calc > { > public: > A_Type multiply(A_Type x, A_Type y); > A_Type add(A_Type x, A_Type y); > > }; > > #endif > > /****calc.cpp******/ > #include "calc.h" > #include <iostream> > using namespace std; > > template <class A_Type> A_Type calc<A_Type>::multiply(A_Type x,A_Type > y) > { > return x*y; > } > template <class A_Type> A_Type calc<A_Type>::add(A_Type x, A_Type y) > { > return x+y; > } > > > /******principal.cpp*****/ > #include "calc.h" > #include <iostream> > #include <cstdlib> > > using namespace std; > > int main() > { > calc <double> a_calc_class; > double a, b; > a=4.3; > b=3.4; > a_calc_class.multiply(a,b); > > system("PAUSE"); > return EXIT_SUCCESS; > } > /***************************/ > > > ------------------------------------------------------------------------- > 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 ______________________________________ Scanned and protected by Email scanner |
From: Jorge G. <jor...@gm...> - 2008-05-25 21:42:27
|
i have 3 source calc.h calc.cpp and principal.cpp (i compilated it with devcpp) i have this error: In function `main': [Linker error] undefined reference to `calc<double>::multiply(double, double)' ld returned 1 exit status [Build Error] ["Proyecto] Error 1 somebody could help me please :) /********calc.h******/ #ifndef _CALC_H #define _CALC_H template <class A_Type> class calc { public: A_Type multiply(A_Type x, A_Type y); A_Type add(A_Type x, A_Type y); }; #endif /****calc.cpp******/ #include "calc.h" #include <iostream> using namespace std; template <class A_Type> A_Type calc<A_Type>::multiply(A_Type x,A_Type y) { return x*y; } template <class A_Type> A_Type calc<A_Type>::add(A_Type x, A_Type y) { return x+y; } /******principal.cpp*****/ #include "calc.h" #include <iostream> #include <cstdlib> using namespace std; int main() { calc <double> a_calc_class; double a, b; a=4.3; b=3.4; a_calc_class.multiply(a,b); system("PAUSE"); return EXIT_SUCCESS; } /***************************/ |
From: Kenneth C. <ken...@ho...> - 2008-05-22 14:48:28
|
so do i able to run the command $(cat test.txt) using dev-C++? how do i run it? > Date: Thu, 22 May 2008 05:55:18 -0400 > From: ste...@gm... > To: dev...@li... > Subject: Re: [Dev-C++] cygwin and mingw > > You don't need any particular compiler. I did my OOP Programming 2 > class labs in DevC++ with the bundled MinGW then comiled the same code > with Borland C++ Builder 6 and Visual C++ Express 2005. The professor > wanted all homework done in VC2003 then 2005 to avoid any "but it > comiled on mine" whining. :D > > Unfortunately that's all I remember because I've been stuck in VB-land > at work since class ended a year ago. > > 2008/5/21 Kenneth Chung : >> currently i am using Dev-C++ 4.9.9.2 version. i am going to develop a >> program which requires me to run the program with the command >> "executablefile $(cat test.txt)" it means the words are stored as a command >> line argument. i have heard that i may need to install cygwin before i can >> run with this syntax. as i am awared that Dev-C++ was running with mingw >> compiler, can it run with this syntax? if so where do i run it? do i run >> it from the command prompt in the directory where the .c files are saved? >> if it can only be run in cygwin, how do i launch the executable file >> together with the test.txt file in cygwin before i can run it? >> ________________________________ >> at CarPoint.com.au It's simple! Sell your car for just $30 >> ------------------------------------------------------------------------- >> 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 _________________________________________________________________ Never miss another e-mail with Hotmail on your mobile. http://www.livelife.ninemsn.com.au/article.aspx?id=343869 |
From: hhh h. <the...@ho...> - 2008-05-22 09:56:51
|
Hi all.I am getting error codes of 0x02, whilst Getting GetLastError(); as soon as program starts... It should be 0x00, ERROR_SUCCESS... right?I am using XP fully patched(3 pcs), tried in multiple mingw versions(including latest version; no other compilers yet). Ex :#include <stdio.h> #include <windows.h>int main() { printf("Last error result : %ld", GetLastError()); }Which gets me the result of 0x02, or ERROR_FILE_NOT_FOUND (?) Could anyone confirm this result?dword GetLastError() synopsis http://msdn.microsoft.com/en-us/library/ms679360(VS.85).aspx Windows system error codes http://msdn.microsoft.com/en-us/library/ms681381(VS.85).aspx _________________________________________________________________ Conheça o Windows Live Spaces, a rede de relacionamentos do Messenger! http://www.amigosdomessenger.com.br/ |
From: Steven C. <ste...@gm...> - 2008-05-22 09:55:22
|
You don't need any particular compiler. I did my OOP Programming 2 class labs in DevC++ with the bundled MinGW then comiled the same code with Borland C++ Builder 6 and Visual C++ Express 2005. The professor wanted all homework done in VC2003 then 2005 to avoid any "but it comiled on mine" whining. :D Unfortunately that's all I remember because I've been stuck in VB-land at work since class ended a year ago. 2008/5/21 Kenneth Chung <ken...@ho...>: > currently i am using Dev-C++ 4.9.9.2 version. i am going to develop a > program which requires me to run the program with the command > "executablefile $(cat test.txt)" it means the words are stored as a command > line argument. i have heard that i may need to install cygwin before i can > run with this syntax. as i am awared that Dev-C++ was running with mingw > compiler, can it run with this syntax? if so where do i run it? do i run > it from the command prompt in the directory where the .c files are saved? > if it can only be run in cygwin, how do i launch the executable file > together with the test.txt file in cygwin before i can run it? > ________________________________ > at CarPoint.com.au It's simple! Sell your car for just $30 > ------------------------------------------------------------------------- > 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 > > |
From: Kenneth C. <ken...@ho...> - 2008-05-21 10:59:21
|
currently i am using Dev-C++ 4.9.9.2 version. i am going to develop a program which requires me to run the program with the command "executablefile $(cat test.txt)" it means the words are stored as a command line argument. i have heard that i may need to install cygwin before i can run with this syntax. as i am awared that Dev-C++ was running with mingw compiler, can it run with this syntax? if so where do i run it? do i run it from the command prompt in the directory where the .c files are saved? if it can only be run in cygwin, how do i launch the executable file together with the test.txt file in cygwin before i can run it? _________________________________________________________________ It's simple! Sell your car for just $30 at CarPoint.com.au http://a.ninemsn.com.au/b.aspx?URL=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT |
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 |
From: seb_kramm <seb...@ya...> - 2008-05-20 15:21:51
|
Alex Martin a écrit : > 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. Maybe you just think it is closed, maybe there is still a process open, so DevCpp won't run it. Did you check the Windows Process manager ? It is not because you have no window nor console on screen that the app is dead. |
From: Alex M. <li...@re...> - 2008-05-19 21:35:00
|
I just want f9 to run the application, like a double click, even if it is already compiled. If it is not compiled, f9 compiles, then runs the app. If it is already compiled, why does f9 not "try to compile? compiled." then "run"? Just a wish list item I guess. Dick Kopcke wrote: > When the compiler is not running (dev-cpp v 4.9.9.2), I double-click the application file that the compiler produces and the program runs fine. > > Dick Kopcke > > Alex Martin <li...@re...> wrote: 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 > > > > |
From: Kleber E. C. <kle...@da...> - 2008-05-19 18:23:47
|
Well... so I don't know. Here, I'm using the same version than you for de dev-c++ and here it works fine. Maybe, it could be a configuration but I don't know where. 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: Alex Martin [mailto:li...@re...] Enviada em: segunda-feira, 19 de maio de 2008 14:56 Para: Kleber Eduardo Clemente Cc: dev...@li... Assunto: 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 > |
From: Alex M. <li...@re...> - 2008-05-19 17:56:47
|
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 > |
From: Kleber E. C. <kle...@da...> - 2008-05-19 17:27:23
|
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 |
From: Alex M. <li...@re...> - 2008-05-19 17:19:44
|
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... |
From: Pink B. <da...@ya...> - 2008-05-10 03:08:26
|
Per Westermark sez, > 5 points for unreadable code - also incomplete which also > goes for your help request. No way, that unreadable code goes to eleven. It looks like C code written by someone who learned to program in tiny basic (4k of ram baby!) and never looked back or forward for that matter. If it was me, I'd rewrite the code from scratch or carefully try and unroll it into something sensible. Mr Foo --- Actually shipped production code in tiny basic since 1984. |
From: Per W. <pw...@ia...> - 2008-05-10 02:56:10
|
5 points for unreadable code - also incomplete which also goes for yuor help request. What do you want help with? You haven't mentioned what your problem is... /pwm On Fri, 9 May 2008, Kenneth Chung wrote: > > are there any errors in this code as it is not working. > > if (c> dCol && ((sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') || > (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ')) && > sq[r][c - 1] <= sq[r + 1][c] && sq[r][c - 1] <= sq[r][c + 1] && sq[r][c - 1] <= sq[r - 1][c]) > spmw1(r, c - 1); > else > if (c < dCol && ((sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ') || > (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ')) && > sq[r][c + 1] <= sq[r - 1][c] && sq[r][c + 1] <= sq[r][c - 1] && sq[r][c + 1] <= sq[r + 1][c]) > spmw1(r, c + 1); > else > if |
From: Robert A. <ral...@gm...> - 2008-05-10 01:56:30
|
It would be really nice if you could give a little description of what you thought the code was suppose to do as well as what it's really doing. Most importantly you are using a number of variables which are not obvious. What is 'c' and 'dCol' I assume that 'sq' is a two dimensional array with 'r' and 'c' acting as indexes but it's unclear what type the array is and what it looks like. On Fri, May 9, 2008 at 10:24 AM, Kenneth Chung <ken...@ho...> wrote: > > are there any errors in this code as it is not working. After trying to decode your code: Reference Square: 1 2 3 4 5 6 7 8 9 if ( c> dCol && ( (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || // Square 4 Not Equal to # or ' ' (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') || // Square 8 Not Equal to # or ' ' (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || // Square 6 Not Equal to # or ' ' (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ') // Square 2 Not Equal to # or ' ' ) && sq[r][c - 1] <= sq[r + 1][c] && // Square 4 <= Square 8 sq[r][c - 1] <= sq[r][c + 1] && // Square 4 <= Square 6 sq[r][c - 1] <= sq[r - 1][c] // Square 4 <= Square 2 ) spmw1(r, c - 1); else if (c < dCol && ( (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || // Square 6 Not Equal to # or ' ' (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ') || // Square 2 Not Equal to # or ' ' (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || // Square 4 Not Equal to # or ' ' (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') // Square 8 Not Equal to # or ' ' ) && sq[r][c + 1] <= sq[r - 1][c] && // Square 6 <= Square 2 sq[r][c + 1] <= sq[r][c - 1] && // Square 6 <= Square 4 sq[r][c + 1] <= sq[r + 1][c] // Square 6 <= Square 8 ) spmw1(r, c + 1); else if ...... It looks like a lot of your tests are duplicates, so you might want to nest some of your tests. For example... If (( sq[r-1][c] != '#' && sq[r-1][c] != ' ') || (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') ||(sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') ) { if ( c < dCol ) && sq[r][c + 1] <= sq[r - 1][c] &&sq[r][c + 1] <= sq[r][c - 1] && sq[r][c + 1] <= sq[r + 1][c] ) spmw1(r, c + 1); else if ( c> dCol ) && sq[r][c - 1] <= sq[r - 1][c] && sq[r][c - 1] <= sq[r][c + 1] && sq[r][c - 1] <= sq[r + 1][c] ) spmw1(r, c - 1) } But I still can't even tell you what your code is trying to do. -Robert |
From: João M. R. S. T. <ta...@fe...> - 2008-05-09 18:27:36
|
---------------------------------------------------------------------------- --------------------- (Apologies for cross-posting) Special Track Computational Bioimaging and Visualization International Symposium on Visual Computing (ISVC08) Las Vegas, Nevada, USA, December 1-3, 2008 http://www.isvc.net We would appreciate if you could distribute this information by your colleagues and co-workers. ---------------------------------------------------------------------------- --------------------- Dear Colleague, Within the ISVC08 - International Symposium on Visual Computing (http://www.isvc.net), to be held in Las Vegas, Nevada, USA, in December 1-3, 2008, we are organizing the Special Track Computational Bioimaging and Visualization. The main goal of the Special Track Computational Bioimaging and Visualization is to bring together researchers involved in the related fields (Image Acquisition, Image Segmentation, Objects Tracking, Objects Matching, Shape Reconstruction, Motion and Deformation Analysis, Medical Imaging, Scientific Visualization, Software Development, Grid Computing, etc.), in order to set the major lines of development for the near future. Therefore, this Special Track will bring researchers representing various fields related to Computational Vision, Computer Graphics, Computational Mechanics, Scientific Visualization, Mathematics, Statistics, Medical Imaging, etc. Thus, it will endeavor to contribute to obtain better solutions for more realistic computational living models from images, and attempts to establish a bridge between the researchers from these diverse fields. Due to your research activities in those fields, we would like to invite you to submit your work and participate in the Special Track Computational Bioimaging and Visualization. Topics In this Special Track the following topics will be considered (not limited to): - Image Processing and Analysis for Computational Bioimaging and Visualization; - Segmentation, Reconstruction, Tracking and Motion Analyse in Medical Images; - Biomedical Signal and Image Acquisition and Processing; - Objects Simulation and Virtual Reality; - Computer Aided Diagnosis, Surgery, Therapy, Treatment and Telemedicine Systems; - Software Development for Computational Bioimaging and Visualization; - Grid and High Performance Computing for Computational Bioimaging and Visualization. Submission/Proceedings Instructions for authors are available in the website of ISVC'08 (http://www.isvc.net/author.html). Authors should submit electronically their contributions through the website of ISVC'08 (http://www.isvc.net), selecting the Special Track Computational Bioimaging and Visualization. Accepted papers will appear in the symposium proceedings which will be published by Springer-Verlag in the Lecture Notes in Computer Science (LNCS) series. Important dates - Submission deadline: July 21, 2008; - Notification of acceptance: September 1, 2008; - Camera-ready version: September 15, 2008. Scientific Committee Alberto De Santis, Italy Ana Mafalda Reis, Portugal Arrate Muñoz Barrutia, Spain Barbara Caputo, Switzerland Chang-Tsun Li, UK Christos E. Constantinou, USA Constantine Kotropoulos, Greece Daniela Iacoviello, Italy Dinggang Shen, USA Eduardo Borges Pires, Portugal Enrique Alegre Gutiérrez, Spain Filipa Sousa, Portugal Francisco Perales, Spain Gerhard A. Holzapfel, Sweden Hélder C. Rodrigues, Portugal Hemerson Pistori, Brasil João Manuel R. S. Tavares, Portugal Jorge M. G. Barbosa, Portugal Jorge S. Marques, Portugal Jose M. García Aznar, Spain Luís Paulo Reis, Portugal Manuel González Hidalgo, Spain Maria Elizete Kunkel, Germany Michel A. Audette, Germany Miguel Angel Guevara, Cuba Patrick Dubois, France Renato M. N. Jorge, Portugal Reneta P. Barneva, USA Roberto Bellotti, Italy Sabina Tangaro, Italy Samrat Goswami, USA Sónia I. Gonçalves-Verheij, The Netherlands Valentin Brimkov, USA Yongjie Zhan, USA Xavier Roca Marvà, Spain With kind regards, João Manuel R. S. Tavares - University of Porto, Portugal (ta...@fe...) Renato Natal Jorge - University of Porto, Portugal (rn...@fe...) Samrat Goswami - University of Texas at Austin, USA (ta...@gm...) (Organizers of the Special Track Computational Bioimaging and Visualization) |
From: Kenneth C. <ken...@ho...> - 2008-05-09 14:25:48
|
are there any errors in this code as it is not working. if (c> dCol && ((sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') || (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ')) && sq[r][c - 1] <= sq[r + 1][c] && sq[r][c - 1] <= sq[r][c + 1] && sq[r][c - 1] <= sq[r - 1][c]) spmw1(r, c - 1); else if (c < dCol && ((sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ') || (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ')) && sq[r][c + 1] <= sq[r - 1][c] && sq[r][c + 1] <= sq[r][c - 1] && sq[r][c + 1] <= sq[r + 1][c]) spmw1(r, c + 1); else if _________________________________________________________________ Are you paid what you're worth? Find out: SEEK Salary Centre http://a.ninemsn.com.au/b.aspx?URL=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fninemsn%2Eseek%2Ecom%2Eau%2Fcareer%2Dresources%2Fsalary%2Dcentre%2F%3Ftracking%3Dsk%3Ahet%3Asc%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=OCT07_endtext_salary&_m=EXT |
From: Kenneth C. <ken...@ho...> - 2008-05-09 14:20:30
|
what's wrong with the following code as it is not working. if (c> dCol && sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') { if (sq[r][c] == ' ' && sq[r][c + 1] != ' ') { spmtn1(r, c - 1); } } if (c> dCol && sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') { if (sq[r][c] == ' ' && sq[r][c + 1] == ' ') { if ((sq[r][c]>= sq[r][c + 1] && sq[r][c - 1]>= sq[r][c]) || (sq[r][c] <= sq[r][c + 1] && sq[r][c - 1] <= sq[r][c])) { spmtn1(r, c - 1); } } } else if (c < dCol && sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') { -->if this line is false then jump to the next else if, but if it is true if (sq[r][c] == ' ' && sq[r][c - 1] != ' ') {-->if this line is true then execute the statement, the below if statements won't be executed, but if it is false spmtn1(r, c + 1); } } if (c < dCol && sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') {-->as this line still remain as true, same first if statement as above if (sq[r][c] == ' ' && sq[r][c - 1] == ' ') {-->if the above second if statement is false then this line will always be true if ((sq[r][c]>= sq[r][c - 1] && sq[r][c + 1]>= sq[r][c]) || (sq[r][c] <= sq[r][c - 1] && sq[r][c + 1] <= sq[r][c])) {-->then check this line, if it is true then execute the statement, if it is false then jump to the next else if spmtn1(r, c + 1); } } } else if _________________________________________________________________ Never miss another e-mail with Hotmail on your mobile. http://www.livelife.ninemsn.com.au/article.aspx?id=343869 |
From: Per W. <pw...@ia...> - 2008-05-08 11:03:24
|
If the preprocessor picks up the ENGLISH part, that means that you somewhere have that symbol defined. Without any symbol at all, you should get the default, i.e. your Czech text. You have to look into your Makefile to see what preprocessor defines that are used when processing the RC file. /pwm On Thu, 8 May 2008, Jan Mura wrote: > Hello, > > I would like to ask if it is possible to work with preprocessor directives > in resource files, I actually use for defining some window menu. It means > .rc files. > > In main.c I've got > > #define LANG CZECH > > and in the rc file I have got something like: > > #if LANG == ENGLISH > ...Code for english... > #else > ...Code for czech... > #endif > > But only the code for english is done. > I suppose it should work even in rc file because I made some mistakes there > and the errors has been showed. > > Thank you for suggestions. > > Jan Mura > jan...@vo... > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > 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 > |
From: Jan M. <jan...@vo...> - 2008-05-08 10:26:08
|
Hello, I would like to ask if it is possible to work with preprocessor directives in resource files, I actually use for defining some window menu. It means .rc files. In main.c I've got #define LANG CZECH and in the rc file I have got something like: #if LANG == ENGLISH ...Code for english... #else ...Code for czech... #endif But only the code for english is done. I suppose it should work even in rc file because I made some mistakes there and the errors has been showed. Thank you for suggestions. Jan Mura jan...@vo... |