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
(1) |
2
(1) |
3
(2) |
4
(13) |
5
(9) |
6
(2) |
7
(13) |
8
(11) |
9
(11) |
10
(16) |
11
(10) |
12
(18) |
13
(28) |
14
(5) |
15
(6) |
16
(14) |
17
(14) |
18
(11) |
19
(11) |
20
(5) |
21
(1) |
22
|
23
(2) |
24
(4) |
25
(13) |
26
(6) |
27
(8) |
28
(6) |
|
|
From: Ioannis V. <no...@ya...> - 2002-02-28 15:28:09
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Benjamin Wheeless Sent: Thursday, February 28, 2002 4:06 PM To: dev...@li... Subject: RE: [Dev-C++] Time stamping an output file. Ioannis, You didn't let me down man. Searching every crevace for an inefficiency. I like your style. I wasn't aware that strftime() was portable to UNIX, but after looking up the function I see that it is fully ANSI C compatible...so thank you for pointing out my misleading statement about the portability. Secondly, this is just a "test" program...I specify the path in the actual production program because the program does not run in the directory where the output file is placed as is common with production environment directory structures. You are right though, if you want the output file to go into the directory from where the *.exe is run from, then you do not need to provide a path. The file is created in the path you *are* the time the program is executed. E.g. if you are in MSDOS/Windows, your exe is placed as C:\c\temp.exe , you have C:\c in the path variable and you run it from any other directory e.g. C:\program files\microsoft\world\domination, the .txt will be created in C:\program files\microsoft\world\domination . If you want the output file to go always into the directory from where the .exe is run from, only then you *do* need to provide a path. Thanks for the analysis. Have a good day. Benjamin Wheeless Network Systems - Delta Airlines, Inc. Atlanta, GA - USA 30320 ============================== Thanks for the compliments. Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys |
From: Benjamin W. <ben...@ho...> - 2002-02-28 14:06:27
|
<html><div style='background-color:'><DIV> <P>Ioannis,</P> <P>You didn't let me down man. Searching every crevace for an inefficiency. I like your style. I wasn't aware that strftime() was portable to UNIX, but after looking up the function I see that it is fully ANSI C compatible...so thank you for pointing out my misleading statement about the portability.</P> <P>Secondly, this is just a "test" program...I specify the path in the actual production program because the program does not run in the directory where the output file is placed as is common with production environment directory structures. </P> <P>You are right though, if you want the output file to go into the directory from where the *.exe is run from, then you do not need to provide a path.</P> <P>Thanks for the analysis. Have a good day.<BR><BR><FONT face="Geneva, Arial, Sans-serif" size=2>Benjamin Wheeless<BR></FONT><FONT face="Geneva, Arial, Sans-serif" size=2><STRONG>Network Systems - Delta Airlines, Inc.<BR></STRONG></FONT><FONT face=Arial size=2><STRONG>Atlanta, GA - USA 30320<BR></STRONG></FONT><FONT face=Arial size=2><STRONG>==============================</STRONG></FONT></P></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>----Original Message Follows---- <DIV></DIV>From: "Ioannis Vranos" <NO...@YA...> <DIV></DIV>To: "Dev-C++" <DEV...@LI...> <DIV></DIV>Subject: RE: [Dev-C++] Time stamping an output file. <DIV></DIV>Date: Thu, 28 Feb 2002 15:23:02 +0200 <DIV></DIV> <DIV></DIV>-----Original Message----- <DIV></DIV>From: dev...@li... <DIV></DIV>[mailto:dev...@li...] On Behalf Of Benjamin <DIV></DIV>Wheeless <DIV></DIV>Sent: Thursday, February 28, 2002 3:05 PM <DIV></DIV>To: dev...@li... <DIV></DIV>Subject: RE: [Dev-C++] Time stamping an output file. <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>Morning, <DIV></DIV> <DIV></DIV>First of all, thanks again Ioannis and Jason for the suggestions. <DIV></DIV> <DIV></DIV>Secondly, I figured if anyone were interested, below is how I solved <DIV></DIV>this time stamp problem. It is not portable to a Unix/Unix-based <DIV></DIV>platform, but since the job on my end runs on an NT platform...it serves <DIV></DIV>the purpose that I need it to serve. <DIV></DIV> <DIV></DIV>/*DATE STAMP TEST PROGRAM*/ <DIV></DIV> <DIV></DIV>#include <STDIO.H> <DIV></DIV>#include <STDLIB.H> <DIV></DIV>#include <TIME.H> <DIV></DIV> <DIV></DIV>int main() <DIV></DIV>{ <DIV></DIV>FILE* testfile ; <DIV></DIV> <DIV></DIV> <DIV></DIV>char* PtrToFname ; <DIV></DIV> <DIV></DIV>Not needed <DIV></DIV> <DIV></DIV> <DIV></DIV>char FileName[27] ; <DIV></DIV>time_t CurTime ; <DIV></DIV>struct tm* datetime ; <DIV></DIV> <DIV></DIV>CurTime = time( NULL ) ; <DIV></DIV>datetime = localtime( &CurTime ) ; <DIV></DIV> <DIV></DIV>strftime( FileName, 27, "C:\\temp\\hsloan%Y%m%d.txt", datetime ) ; <DIV></DIV> <DIV></DIV>printf( "%s", FileName ) ; <DIV></DIV> <DIV></DIV>PtrToFname = FileName ; <DIV></DIV> <DIV></DIV>Not needed <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>testfile = fopen( PtrToFname, "w" ) ; <DIV></DIV>if( testfile == NULL ) <DIV></DIV>{ <DIV></DIV>printf( "\nUNABLE TO CREATE OUTPUT FILE! (ABNORMAL TERMINATION)\n" ) <DIV></DIV>; <DIV></DIV>exit( 0 ) ; <DIV></DIV>} <DIV></DIV> <DIV></DIV>fclose( testfile ) ; <DIV></DIV> <DIV></DIV>return 0 ; <DIV></DIV>} <DIV></DIV> <DIV></DIV>Thanks again everyone. <DIV></DIV> <DIV></DIV>Benjamin Wheeless <DIV></DIV>Network Systems - Delta Airlines, Inc. <DIV></DIV>Atlanta, GA - USA 30320 <DIV></DIV>============================== <DIV></DIV> <DIV></DIV> <DIV></DIV>So the program becomes: <DIV></DIV> <DIV></DIV>/*DATE STAMP TEST PROGRAM*/ <DIV></DIV> <DIV></DIV>#include <STDIO.H> <DIV></DIV>#include <STDLIB.H> <DIV></DIV>#include <TIME.H> <DIV></DIV> <DIV></DIV>int main(void) <DIV></DIV>{ <DIV></DIV>FILE* testfile ; <DIV></DIV>char FileName[27] ; <DIV></DIV>time_t CurTime ; <DIV></DIV>struct tm* datetime ; <DIV></DIV> <DIV></DIV>CurTime = time( NULL ) ; <DIV></DIV>datetime = localtime( &CurTime ) ; <DIV></DIV> <DIV></DIV>strftime( FileName, 27, "C:\\temp\\hsloan%Y%m%d.txt", datetime ) ; <DIV></DIV> <DIV></DIV>printf( "%s", FileName ) ; <DIV></DIV> <DIV></DIV>testfile = fopen( FileName, "w" ) ; <DIV></DIV>if( testfile == NULL ) <DIV></DIV>{ <DIV></DIV>printf( "\nUNABLE TO CREATE OUTPUT FILE! (ABNORMAL TERMINATION)\n" ) <DIV></DIV>; <DIV></DIV>exit( 0 ) ; <DIV></DIV>} <DIV></DIV> <DIV></DIV>fclose( testfile ) ; <DIV></DIV> <DIV></DIV>return 0 ; <DIV></DIV>} <DIV></DIV> <DIV></DIV> <DIV></DIV>The program should be portable to UNIX too given that you provide the <DIV></DIV>correct path syntax (/ for directories). Also why provide path anyway? <DIV></DIV>(it will be created in the current path where the program is excuted). <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>Ioannis <DIV></DIV> <DIV></DIV>* Ioannis Vranos <DIV></DIV>* Programming pages: <DIV></DIV>http://www.noicys.d2g.com <DIV></DIV>* Alternative URL: http://run.to/noicys <DIV></DIV> <DIV></DIV></div><br clear=all><hr>Join the worlds largest e-mail service with MSN Hotmail. <a href='http://go.msn.com/bql/hmtag4_etl_EN.asp'>Click Here</a><br></html> |
From: Ioannis V. <no...@ya...> - 2002-02-28 13:24:46
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Benjamin Wheeless Sent: Thursday, February 28, 2002 3:05 PM To: dev...@li... Subject: RE: [Dev-C++] Time stamping an output file. Morning, First of all, thanks again Ioannis and Jason for the suggestions. Secondly, I figured if anyone were interested, below is how I solved this time stamp problem. It is not portable to a Unix/Unix-based platform, but since the job on my end runs on an NT platform...it serves the purpose that I need it to serve. /*DATE STAMP TEST PROGRAM*/ #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { FILE* testfile ; char* PtrToFname ; Not needed char FileName[27] ; time_t CurTime ; struct tm* datetime ; CurTime = time( NULL ) ; datetime = localtime( &CurTime ) ; strftime( FileName, 27, "C:\\temp\\hsloan%Y%m%d.txt", datetime ) ; printf( "%s", FileName ) ; PtrToFname = FileName ; Not needed testfile = fopen( PtrToFname, "w" ) ; if( testfile == NULL ) { printf( "\nUNABLE TO CREATE OUTPUT FILE! (ABNORMAL TERMINATION)\n" ) ; exit( 0 ) ; } fclose( testfile ) ; return 0 ; } Thanks again everyone. Benjamin Wheeless Network Systems - Delta Airlines, Inc. Atlanta, GA - USA 30320 ============================== So the program becomes: /*DATE STAMP TEST PROGRAM*/ #include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { FILE* testfile ; char FileName[27] ; time_t CurTime ; struct tm* datetime ; CurTime = time( NULL ) ; datetime = localtime( &CurTime ) ; strftime( FileName, 27, "C:\\temp\\hsloan%Y%m%d.txt", datetime ) ; printf( "%s", FileName ) ; testfile = fopen( FileName, "w" ) ; if( testfile == NULL ) { printf( "\nUNABLE TO CREATE OUTPUT FILE! (ABNORMAL TERMINATION)\n" ) ; exit( 0 ) ; } fclose( testfile ) ; return 0 ; } The program should be portable to UNIX too given that you provide the correct path syntax (/ for directories). Also why provide path anyway? (it will be created in the current path where the program is excuted). Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys |
From: Ioannis V. <no...@ya...> - 2002-02-28 13:24:44
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of h.r...@gm... > Sent: Thursday, February 28, 2002 7:34 AM > To: dev...@li... > Subject: [Dev-C++] cannot compile matrix class > > > Hello, > I try the following example from Stroustrub "The C++ > programming language" ( the german edition), but it does not > compile and I can't find the errors. Can everyone help me ? > Thanks in advance greetings Horst > > > the .h file: > > #ifndef array2D_H > #define array2D_H > > #include <valarray> #include <cstddef> // For size_t using namespace std; > > class Matrix > { > valarray<double>* v; > size_t d1, d2; > public: > Matrix (size_t x, size_t y); > Matrix& Matrix(const Matrix&); Constructor can't have a return value. > Matrix& operator=(const Matrix&); > ~Matrix(); > > size_t size() const { return d1 * d2; } > size_t dim1() const { return d1; } > size_t dim2() const { return d2; } > Slice_iter<double> zeile (size_t i); > Cslice_iter<double> zeile (size_t i) const; > > Slice_iter<double> spalte (size_t i); > Cslice_iter<double> spalte (size_t i) const; Where are Slice_iter, e.t.c. types defined? Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys > |
From: Benjamin W. <ben...@ho...> - 2002-02-28 13:05:42
|
<html><div style='background-color:'><DIV> <P>Morning,</P> <P>First of all, thanks again Ioannis and Jason for the suggestions.</P> <P>Secondly, I figured if anyone were interested, below is how I solved this time stamp problem. It is not portable to a Unix/Unix-based platform, but since the job on my end runs on an NT platform...it serves the purpose that I need it to serve.</P> <P>/*DATE STAMP TEST PROGRAM*/</P> <P>#include <stdio.h><BR>#include <stdlib.h><BR>#include <time.h></P> <P>int main()<BR>{<BR> FILE* testfile ;<BR> char* PtrToFname ;<BR> char FileName[27] ;<BR> time_t CurTime ;<BR> struct tm* datetime ;</P> <P> CurTime = time( NULL ) ;<BR> datetime = localtime( &CurTime ) ;</P> <P> strftime( FileName, 27, "C:\\temp\\hsloan%Y%m%d.txt", datetime ) ;</P> <P> printf( "%s", FileName ) ;</P> <P> PtrToFname = FileName ;</P> <P> testfile = fopen( PtrToFname, "w" ) ;<BR> if( testfile == NULL )<BR> {<BR> printf( "\nUNABLE TO CREATE OUTPUT FILE! (ABNORMAL TERMINATION)\n" ) ;<BR> exit( 0 ) ;<BR> }</P> <P> fclose( testfile ) ;</P> <P> return 0 ;<BR>}<BR><BR>Thanks again everyone.</P></DIV> <DIV></DIV> <DIV><FONT face="Geneva, Arial, Sans-serif" size=2>Benjamin Wheeless</FONT></DIV> <DIV></DIV> <DIV><FONT face="Geneva, Arial, Sans-serif" size=2><STRONG>Network Systems - Delta Airlines, Inc.</STRONG></FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2><STRONG>Atlanta, GA - USA 30320</STRONG></FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2><STRONG>==============================</STRONG></FONT></DIV> <DIV> </DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>----Original Message Follows---- <DIV></DIV>From: "Ioannis Vranos" <NO...@YA...> <DIV></DIV>To: "Dev-C++" <DEV...@LI...> <DIV></DIV>Subject: RE: [Dev-C++] Time stamping an output file. <DIV></DIV>Date: Mon, 25 Feb 2002 21:18:48 +0200 <DIV></DIV> <DIV></DIV>I am sorry obviously i did not understand the question. I thought you <DIV></DIV>wanted to manipulate the date/time stamp of the files, but you wanted to <DIV></DIV>put a string to the filename. You can use the functions ctime() and <DIV></DIV>time() of time.h in the style: <DIV></DIV> <DIV></DIV> <DIV></DIV>#include <STDIO.H> <DIV></DIV>#include <STDLIB.H> <DIV></DIV>#include <STRING.H> <DIV></DIV>#include <TIME.H> <DIV></DIV> <DIV></DIV>int main(void) <DIV></DIV>{ <DIV></DIV>char filename[]="some filename - "; <DIV></DIV>time_t tp=time(NULL); <DIV></DIV>char *s=ctime(&tp); <DIV></DIV>char *newname=malloc(strlen(filename)+strlen(s)+1); <DIV></DIV> <DIV></DIV> <DIV></DIV>if(!newname) <DIV></DIV>return EXIT_FAILURE; <DIV></DIV> <DIV></DIV>strcpy(newname, filename); <DIV></DIV>strcat(newname, s); <DIV></DIV> <DIV></DIV>puts(newname); <DIV></DIV> <DIV></DIV>return 0; <DIV></DIV>} <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>Keep in mind that this operation is portable, that is it works <DIV></DIV>everywhere. <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>Ioannis <DIV></DIV> <DIV></DIV>* Ioannis Vranos <DIV></DIV>* Programming pages: <DIV></DIV>http://www.noicys.d2g.com <DIV></DIV>* Alternative URL: http://run.to/noicys <DIV></DIV> <DIV></DIV>-----Original Message----- <DIV></DIV>From: dev...@li... <DIV></DIV>[mailto:dev...@li...] On Behalf Of Ioannis <DIV></DIV>Vranos <DIV></DIV>Sent: Monday, February 25, 2002 8:42 PM <DIV></DIV>To: Dev-C++ <DIV></DIV>Subject: RE: [Dev-C++] Time stamping an output file. <DIV></DIV> <DIV></DIV> <DIV></DIV>You can do it with win32 api: <DIV></DIV> <DIV></DIV>Syntax <DIV></DIV> <DIV></DIV>#include <IO.H> <DIV></DIV>int getftime(int handle, struct ftime *ftimep); <DIV></DIV>int setftime(int handle, struct ftime *ftimep); <DIV></DIV> <DIV></DIV>[ Useless things ] <DIV></DIV> <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_etl_EN.asp'>http://explorer.msn.com</a>.<br></html> |
From: <h.r...@gm...> - 2002-02-28 05:34:06
|
Hello, I try the following example from Stroustrub "The C++ programming language" ( the german edition), but it does not compile and I can't find the errors. Can everyone help me ? Thanks in advance greetings Horst the .h file: #ifndef array2D_H #define array2D_H #include <valarray> class Matrix { valarray<double>* v; size_t d1, d2; public: Matrix (size_t x, size_t y); Matrix& Matrix(const Matrix&); Matrix& operator=(const Matrix&); ~Matrix(); size_t size() const { return d1 * d2; } size_t dim1() const { return d1; } size_t dim2() const { return d2; } Slice_iter<double> zeile (size_t i); Cslice_iter<double> zeile (size_t i) const; Slice_iter<double> spalte (size_t i); Cslice_iter<double> spalte (size_t i) const; double& operator() (size_t x, size_t y); double operator() (size_t x, size_t y) const; Slice_iter<double> operator() (size_t i) { return zeile(i); } Cslice_iter<double> operator() (size_t i) const { return zeile(i); } Slice_iter<double> operator[] (size_t i) { return zeile(i); } Cslice_iter<double> operator[] (size_t i) const { return zeile(i); } Matrix& operator*= (double); valarray<double>& array() { return *v; }; }; #endif the .cpp file: #include "array2D.h" slice_array<double> zeile (size_t i) { return (*v)(slice(i, d1, d2)); } inline Slice_iter<double> Matrix::zeile(size_t i) { return Slice_iter<double>(v, slice(i, d1, d2)); } inline Cslice_iter<double> Matrix::zeile(size_t i) const { return Cslice_iter<double>(v, slice(i, d1, d2)); } inline Slice_iter<double> Matrix::spalte(size_t i) { return Slice_iter<double>(v, slice(i*d2, d2, 1)); } inline Cslice_iter<double> Matrix::spalte(size_t i) const { return Cslice_iter<double>(v, slice(i*d2, d2, 1)); } Matrix::Matrix(size_t x, size_t y) { d1 = x; d2 = y; v = new valarray<double>(x*y); } double& Matrix::operator()(size_t x, size_t y) { return zeile(x)[y]; } double Matrix::operator()(size_t x, size_t y) const { return zeile(x)[y]; } double mul(const valarray<double>& v1, const valarray<double>& v2) { double res = 0; for (int i = 0; i < v1.size(); i++) res += v1[i] * v2[i]; return res; } valarray<double> operator*(const Matrix& m, const valarray<double>& v) { valarray<double> res(m.dim1()); for (int i = 0; i < m.dim1(); i++) res(i) = mul(m.zeile(i), v); return res; } Matrix& Matrix::operator*=(double d) { (*v) *= d; return *this; } Error messages: In file included from c:\dev\dev-c++\arrhenius\array2d.cpp:1: c:/dev/dev-c++/arrhenius/array2D.h:12: return type specification for constructor invalid c:/dev/dev-c++/arrhenius/array2D.h:20: syntax error before `(' c:/dev/dev-c++/arrhenius/array2D.h:21: syntax error before `(' c:/dev/dev-c++/arrhenius/array2D.h:23: syntax error before `(' c:/dev/dev-c++/arrhenius/array2D.h:24: syntax error before `(' c:/dev/dev-c++/arrhenius/array2D.h:29: syntax error before `operator' c:/dev/dev-c++/arrhenius/array2D.h:30: syntax error before `operator' c:/dev/dev-c++/arrhenius/array2D.h:32: syntax error before `operator' c:/dev/dev-c++/arrhenius/array2D.h:33: syntax error before `operator' c:/dev/dev-c++/arrhenius/array2D.h:35: `operator *=(double)' must have an argument of class or enumerated type c:/dev/dev-c++/arrhenius/array2D.h:35: `operator *=(double)' must take exactly two arguments c:/dev/dev-c++/arrhenius/array2D.h: In function `class valarray<double> & array()': c:/dev/dev-c++/arrhenius/array2D.h:37: `v' undeclared (first use this function) c:/dev/dev-c++/arrhenius/array2D.h:37: (Each undeclared identifier is reported only once c:/dev/dev-c++/arrhenius/array2D.h:37: for each function it appears in.) c:/dev/dev-c++/arrhenius/array2D.h: At top level: c:/dev/dev-c++/arrhenius/array2D.h:38: parse error before `}' c:\dev\dev-c++\arrhenius\array2d.cpp: In function `class slice_array<double> zeile(unsigned int)': c:\dev\dev-c++\arrhenius\array2d.cpp:5: `d1' undeclared (first use this function) c:\dev\dev-c++\arrhenius\array2d.cpp:5: `d2' undeclared (first use this function) c:\dev\dev-c++\arrhenius\array2d.cpp: At top level: c:\dev\dev-c++\arrhenius\array2d.cpp:8: syntax error before `::' c:\dev\dev-c++\arrhenius\array2d.cpp:13: syntax error before `::' c:\dev\dev-c++\arrhenius\array2d.cpp:18: syntax error before `::' c:\dev\dev-c++\arrhenius\array2d.cpp:23: syntax error before `::' c:\dev\dev-c++\arrhenius\array2d.cpp: In method `double & Matrix::operator ()(unsigned int, unsigned int)': c:\dev\dev-c++\arrhenius\array2d.cpp:37: no match for `slice_array<double>[size_t &]' c:\dev\dev-c++\arrhenius\array2d.cpp: In method `double Matrix::operator ()(unsigned int, unsigned int) const': c:\dev\dev-c++\arrhenius\array2d.cpp:42: no match for `slice_array<double>[size_t &]' c:\dev\dev-c++\arrhenius\array2d.cpp: In function `class valarray<double> operator *(const Matrix &, const valarray<double> &)': c:\dev\dev-c++\arrhenius\array2d.cpp:57: no match for call to `(valarray<double>) (int &)' c:\dev\dev-c++\arrhenius\array2d.cpp:57: no matching function for call to `Matrix::zeile (int &) const' c:\dev\dev-c++\arrhenius\array2d.cpp: At top level: c:\dev\dev-c++\arrhenius\array2d.cpp:62: no `class Matrix & Matrix::operator *=(double)' member function declared in class `Matrix' -- -------------------------- Horst Rößner Postf. 1802 52205 Stolberg 02402 / 6178 0171 6455636 GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |
From: carlos D. M. <cg...@wo...> - 2002-02-27 17:05:53
|
The line system("app.exe"); will run the program app.exe. For opening the help.html when pressing H type: if(*******=='H') system("start harddisk:/fullpath/help.html"); Till now I don't achieve to do it with filenames which use spaces. It must be done as with the command prompt, cmd.exe, but I try everything and nothing works Gareth escribió: > This is my 1st post on the mailing list so don't shout at me if it all goes > wrong !! > > I just want to know I can open a .html or .doc file etc from within my C > programme from an option screen where the user types for example H for help > which will then launch my help.htm page. > > I want to do this in either C or C++ but can't find any code that allows me > to run other applications from options in my prog. > > Thanx in advance. > Gaz. > > ----------------------------------------------------------------- > Web: www.DjGaz.cjb.net > BT Mobile: 07713291858 > ICQ: 60074512 > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Joerg B. <jo...@sq...> - 2002-02-27 14:42:30
|
Hi, sorry about the crosspost, but I do not know the universe where the question arose. Gareth wrote: > > This is my 1st post on the mailing list so don't shout at me if it all goes > wrong !! You sent it to three lists, so probably no-one knows in which "world" you program. As the answer to your question very much depends on your environment, please select _one_ list only. If you forgot that: "Cygwin" tries to put a Unix-like world on top of Windows, whereas "MinGW" makes the Windows libraries accessible to Unix-like compilers and tools, about "dev-cpp" I have no knowledge. Regards, Joerg Bruehe -- Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany (speaking only for himself) mailto: jo...@sq... |
From: Gareth <DjG...@Ho...> - 2002-02-27 13:31:32
|
This is my 1st post on the mailing list so don't shout at me if it all goes wrong !! I just want to know I can open a .html or .doc file etc from within my C programme from an option screen where the user types for example H for help which will then launch my help.htm page. I want to do this in either C or C++ but can't find any code that allows me to run other applications from options in my prog. Thanx in advance. Gaz. ----------------------------------------------------------------- Web: www.DjGaz.cjb.net BT Mobile: 07713291858 ICQ: 60074512 |
From: <je...@i3...> - 2002-02-27 12:37:58
|
On Tue, 26 Feb 2002, Karin E. Hacker wrote: > "This is because Microsoft introduced the concept of the CLR, or common > language runtime. What that means is two of the languages offered by > Microsoft, VB.Net and C#, both share the same runtime." > - <http://zdnet.com.com/2100-1107-842922.html> > > Dose anyone else out there in the GCC universe feel the slightest twinge of > irritation at the fact that Microsoft is once again getting credit for > another stolen and repackaged concept? Not quite sure what you mean. What's novel about the CLR is that all languages utilizing the CLR share a common object model. Implement a class in one language, instances are visible in another language: methods, properties and all. It also allows for classes to be derived in languages other from those in which the base class is written. GCC doesn't really have the same concept. The GNU C++, Fortran, Ada and Java runtimes are all disjoint. The closest it comes is that gcj (GNU Java) objects are visible to g++. But the reverse is not true, so it is an assymetric relationship. Jeff |
From: scott h <sco...@ya...> - 2002-02-27 03:09:21
|
please remove me from your mailing list __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com |
From: scott h <sco...@ya...> - 2002-02-27 03:08:16
|
please remove me from your mailing list __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com |
From: Ioannis V. <no...@ya...> - 2002-02-27 01:15:46
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Karin E. Hacker > Sent: Wednesday, February 27, 2002 2:36 AM > To: cy...@cy...; min...@li...; > dev...@li... > Subject: [Dev-C++] RE: The developer's dilemma > > > "This is because Microsoft introduced the concept of the CLR, > or common language runtime. What that means is two of the > languages offered by Microsoft, VB.Net and C#, both share the > same runtime." > - <http://zdnet.com.com/2100-1107-842922.html> > > Dose anyone else out there in the GCC universe feel the > slightest twinge of irritation at the fact that Microsoft is > once again getting credit for another stolen and repackaged concept? In spite of the fact that i like the open source movement, i do not think MS stole anything from anyone on this particular matter. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys |
From: Karin E. H. <em...@sh...> - 2002-02-27 00:39:41
|
"This is because Microsoft introduced the concept of the CLR, or common language runtime. What that means is two of the languages offered by Microsoft, VB.Net and C#, both share the same runtime." - <http://zdnet.com.com/2100-1107-842922.html> Dose anyone else out there in the GCC universe feel the slightest twinge of irritation at the fact that Microsoft is once again getting credit for another stolen and repackaged concept? ---------- Live long and prosper, Karin E. Hacker ==================== (band) em...@sh... <http://www.shillelaghlaw.com> (retirement) ka...@ha... <http://www.hackergrafix.com> (hobby) ka...@us... <http://www.sourceforge.net> (work) kh...@co... <http://www.computereng.com> ==================== Give a hobbit a ghoti and he eats for a day. Give a hobbit a Ring and he eats for an Age. ==================== |
From: <gi...@li...> - 2002-02-26 17:51:10
|
Hi, I tried adding "wildargs.obj" and it works. Now, I have the same output, independent of which of the two compilers I use to generate the executable. Thanks. At 17:12 25/02/02 +0100, jansb000 wrote: >The usage of wildcards in unix ... >... >For BCC you can get the arguments as-is, this it what we see here, or you >can link the file "wildargs.obj" in your project. That should give you the >same results as with DJGPP or MINGW32. (I found this in my old Turbo C++ 3.0 >users guide). -- gisan gi...@li... |
From: Hans V. <vis...@ho...> - 2002-02-26 08:57:53
|
Thank you! |
From: Claus P. <cl...@vi...> - 2002-02-26 07:55:13
|
Thank you! |
From: <jor...@wa...> - 2002-02-26 05:47:11
|
Un saludo, jor...@wa... |
From: Fierytycoon <fie...@ya...> - 2002-02-26 00:45:28
|
Hey, How can I manually add/edit a .def file in a dll project? As of now, it always seems to attempt to generate a new one every time I compile my project. Please reply with info, thanks. Fierytycoon --------------------------------- Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games |
From: Fierytycoon <fie...@ya...> - 2002-02-26 00:45:22
|
Hey, How can I manual add/edit a .def file in a dll project? As of now, it always seems to attempt to generate a new one every time I compile my project. Please reply with info, thanks. Fierytycoon --------------------------------- Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games |
From: Benjamin W. <ben...@ho...> - 2002-02-25 22:23:12
|
<html><div style='background-color:'><DIV> <P>Thanks Gents (Ioannis & Jason). I appreciate the help on this one.</P> <P>Have a good afternoon.</P></DIV> <DIV></DIV> <DIV><FONT face="Geneva, Arial, Sans-serif" size=2>Benjamin Wheeless</FONT></DIV> <DIV></DIV> <DIV><FONT face="Geneva, Arial, Sans-serif" size=2><STRONG>Network Systems - Delta Airlines, Inc.</STRONG></FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2><STRONG>Atlanta, GA - USA 30320</STRONG></FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2><STRONG>==============================</STRONG></FONT></DIV> <DIV> </DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>----Original Message Follows---- <DIV></DIV>From: "Ioannis Vranos" <NO...@YA...> <DIV></DIV>To: "Dev-C++" <DEV...@LI...> <DIV></DIV>Subject: RE: [Dev-C++] Time stamping an output file. <DIV></DIV>Date: Mon, 25 Feb 2002 21:18:48 +0200 <DIV></DIV> <DIV></DIV>I am sorry obviously i did not understand the question. I thought you <DIV></DIV>wanted to manipulate the date/time stamp of the files, but you wanted to <DIV></DIV>put a string to the filename. You can use the functions ctime() and <DIV></DIV>time() of time.h in the style: <DIV></DIV> <DIV></DIV> <DIV></DIV>#include <STDIO.H> <DIV></DIV>#include <STDLIB.H> <DIV></DIV>#include <STRING.H> <DIV></DIV>#include <TIME.H> <DIV></DIV> <DIV></DIV>int main(void) <DIV></DIV>{ <DIV></DIV>char filename[]="some filename - "; <DIV></DIV>time_t tp=time(NULL); <DIV></DIV>char *s=ctime(&tp); <DIV></DIV>char *newname=malloc(strlen(filename)+strlen(s)+1); <DIV></DIV> <DIV></DIV> <DIV></DIV>if(!newname) <DIV></DIV>return EXIT_FAILURE; <DIV></DIV> <DIV></DIV>strcpy(newname, filename); <DIV></DIV>strcat(newname, s); <DIV></DIV> <DIV></DIV>puts(newname); <DIV></DIV> <DIV></DIV>return 0; <DIV></DIV>} <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>Keep in mind that this operation is portable, that is it works <DIV></DIV>everywhere. <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>Ioannis <DIV></DIV> <DIV></DIV>* Ioannis Vranos <DIV></DIV>* Programming pages: <DIV></DIV>http://www.noicys.d2g.com <DIV></DIV>* Alternative URL: http://run.to/noicys <DIV></DIV> <DIV></DIV>-----Original Message----- <DIV></DIV>From: dev...@li... <DIV></DIV>[mailto:dev...@li...] On Behalf Of Ioannis <DIV></DIV>Vranos <DIV></DIV>Sent: Monday, February 25, 2002 8:42 PM <DIV></DIV>To: Dev-C++ <DIV></DIV>Subject: RE: [Dev-C++] Time stamping an output file. <DIV></DIV> <DIV></DIV> <DIV></DIV>You can do it with win32 api: <DIV></DIV> <DIV></DIV>Syntax <DIV></DIV> <DIV></DIV>#include <IO.H> <DIV></DIV>int getftime(int handle, struct ftime *ftimep); <DIV></DIV>int setftime(int handle, struct ftime *ftimep); <DIV></DIV> <DIV></DIV>[ Useless things ] <DIV></DIV> <DIV></DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a href='http://go.msn.com/bql/hmtag2_etl_EN.asp'>Click Here</a><br></html> |
From: flxlist <fl...@ya...> - 2002-02-25 20:05:35
|
Dev-C++ can compile the followingsimple testprogram but the program doesn't function afterwards: #include <fstream.h> class Animal { public: Animal(int weight, long days):itsWeight(weight),itsNumberDaysAlive(days){} ~Animal(){} int GetWeight()const { return itsWeight; } void SetWeight(int weight) { itsWeight = weight; } long GetDaysAlive()const { return itsNumberDaysAlive; } void SetDaysAlive(long days) { itsNumberDaysAlive = days; } private: int itsWeight; long itsNumberDaysAlive; }; int main() // returns 1 on error { char fileName[80]; cout << "Please enter the file name: "; cin >> fileName; ofstream fout(fileName,ios::binary); if (!fout) { cout << "Unable to open " << fileName << " for writing.\n"; return(1); } Animal Bear(50,100); fout.write((char*) &Bear,sizeof Bear); fout.close(); ifstream fin(fileName,ios::binary); if (!fin) { cout << "Unable to open " << fileName << " for reading.\n"; return(1); } Animal BearTwo(1,1); cout << "BearTwo weight: " << BearTwo.GetWeight() << endl; cout << "BearTwo days: " << BearTwo.GetDaysAlive() << endl; fin.read((char*) &BearTwo, sizeof BearTwo); cout << "BearTwo weight: " << BearTwo.GetWeight() << endl; cout << "BearTwo days: " << BearTwo.GetDaysAlive() << endl; fin.close(); return 0; } If I use any other compiler like DJGPP or Borland 5.5 it does work. Does anybody know why it doesn't work with Dev-C++? And does anyone know how to fix the problem? Felixz fl...@ya... |
From: Ioannis V. <no...@ya...> - 2002-02-25 19:18:53
|
I am sorry obviously i did not understand the question. I thought you wanted to manipulate the date/time stamp of the files, but you wanted to put a string to the filename. You can use the functions ctime() and time() of time.h in the style: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> int main(void) { char filename[]="some filename - "; time_t tp=time(NULL); char *s=ctime(&tp); char *newname=malloc(strlen(filename)+strlen(s)+1); if(!newname) return EXIT_FAILURE; strcpy(newname, filename); strcat(newname, s); puts(newname); return 0; } Keep in mind that this operation is portable, that is it works everywhere. Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ioannis Vranos Sent: Monday, February 25, 2002 8:42 PM To: Dev-C++ Subject: RE: [Dev-C++] Time stamping an output file. You can do it with win32 api: Syntax #include <io.h> int getftime(int handle, struct ftime *ftimep); int setftime(int handle, struct ftime *ftimep); [ Useless things ] |
From: Jason H. <jas...@bt...> - 2002-02-25 18:55:42
|
If you want to obtain the date in a way that is standard to C or C++ = then you can use the functions supplied in the <time.h> header. I leave = it to you to look at what it supplies in whatever C reference material = you have (I'm too tired). Jason. ----- Original Message -----=20 From: Benjamin Wheeless=20 To: dev...@so...=20 Sent: Monday, February 25, 2002 5:25 PM Subject: [Dev-C++] Time stamping an output file. Good afternoon, Quick question that is probably much easier than I'm thinking it is... Does anyone out there know how to easily put a date stamp on an output = file using C rather than using the environments shell? I know how to do = it using Korn, but I'm working on WinNT and so I need the source code to = do it rather than cmd.exe(unless cmd.exe can do it easier via a batch = file or something)... For example: -output file name =3D hsloan.txt -would like output file name =3D hsloanYYYYMMDD.txt (where YYYYMMDD =3D (year)(month)(date) of course) Keep in mind that I'm using: fopen( "C:\\temp\\hsloan.txt", "w" = ) ; Any thoughts/suggestions? P.S. -- Ioannis, can I cash in some of those EuroCents now? Benjamin Wheeless Network Systems - Delta Airlines, Inc. Atlanta, GA - USA 30320 = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D -------------------------------------------------------------------------= ----- MSN Photos is the easiest way to share and print your photos: Click = Here _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Ioannis V. <no...@ya...> - 2002-02-25 18:42:15
|
You can do it with win32 api: Syntax #include <io.h> int getftime(int handle, struct ftime *ftimep); int setftime(int handle, struct ftime *ftimep); The file must be open for writing; an EACCES error will occur if the file is open for read-only access. struct ftime { unsigned ft_tsec: 5; /* two seconds */ unsigned ft_min: 6; /* minutes */ unsigned ft_hour: 5; /* hours */ unsigned ft_day: 5; /* days */ unsigned ft_month: 4; /* months */ unsigned ft_year: 7; /* year - 1980*/ }; getftime, setftime See also Examples Portability Header File io.h Category Input/output Routines Syntax #include <io.h> int getftime(int handle, struct ftime *ftimep); int setftime(int handle, struct ftime *ftimep); Description Gets and sets the file date and time. getftime retrieves the file time and date for the disk file associated with the open handle. The ftime structure pointed to by ftimep is filled in with the file's time and date. setftime sets the file date and time of the disk file associated with the open handle to the date and time in the ftime structure pointed to by ftimep. The file must not be written to after the setftime call or the changed information will be lost. The file must be open for writing; an EACCES error will occur if the file is open for read-only access. They require the file to be open for writing; an EACCES error will occur if the file is open for read-only access. The ftime structure is defined as follows: struct ftime { unsigned ft_tsec: 5; /* two seconds */ unsigned ft_min: 6; /* minutes */ unsigned ft_hour: 5; /* hours */ unsigned ft_day: 5; /* days */ unsigned ft_month: 4; /* months */ unsigned ft_year: 7; /* year - 1980*/ }; Return Value getftime and setftime return 0 on success. In the event of an error return -1 is returned and the global variable errno is set to one of the following values: EACCES Permission denied EBADF Bad file number EINVFNC Invalid function number Example: FILE *stream; std::ftime ft; if ((stream = fopen("TEST.$$$", "wt")) == NULL) { fprintf(stderr, "Cannot open output file.\n"); return 1; } getftime(fileno(stream), &ft); printf("File time: %u:%u:%u\n", ft.ft_hour, ft.ft_min, ft.ft_tsec * 2); Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Benjamin Wheeless Sent: Monday, February 25, 2002 7:26 PM To: dev...@so... Subject: [Dev-C++] Time stamping an output file. Good afternoon, Quick question that is probably much easier than I'm thinking it is... Does anyone out there know how to easily put a date stamp on an output file using C rather than using the environments shell? I know how to do it using Korn, but I'm working on WinNT and so I need the source code to do it rather than cmd.exe(unless cmd.exe can do it easier via a batch file or something)... For example: -output file name = hsloan.txt -would like output file name = hsloanYYYYMMDD.txt (where YYYYMMDD = (year)(month)(date) of course) Keep in mind that I'm using: fopen( "C:\\temp\\hsloan.txt", "w" ) ; Any thoughts/suggestions? P.S. -- Ioannis, can I cash in some of those EuroCents now? Benjamin Wheeless Network Systems - Delta Airlines, Inc. Atlanta, GA - USA 30320 ============================== _____ MSN Photos is the easiest way to share and print your photos: Click <http://go.msn.com/bql/hmtag3_etl_EN.asp> Here _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |