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
|
3
|
4
(1) |
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
(1) |
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
(2) |
30
|
|
From: pwm <pw...@ia...> - 2011-09-29 12:53:12
|
Why do you try to have one function with one sepcific name actually do two completely different thigns? First off OpenTrue = TURE [sic!] or FALSE isn't a good name. You can't look at the variable name and know what the fucntion will do. But why not have: return_type CreateFile(const char fname[]); return_type CloseFile(); Next thing - your function creates a local object FileNameExt. First off, it's a bad name. It is not a file name. So why try to claim that? But then this is an object that gets destructed when the function ends - so the caller can't make use of it. Third - you suddenly use a const char FileNameInt. This is a character. So how can you take a character variable and think it has a method close()? And where would main() get a variable FileNameInt from? /pwm On Thu, 29 Sep 2011, Ben wrote: > Hi, > its been some time since I have used C++ and due to that I might use some wrong vocabulary, sorry for that. I do however hope that I can bring my question across. And I guess > its going to be rather easy but I have not fund a solution via google. Thanks for your help! > > In the program I am going to write I will have to read and write data from a number of files. Rather then to write the code for this over and over again I would like to brake > it down in smaller peaces (as I understand it that is also good practice in any way). Below I have included a scheme for the general idea and below that my code so far. > > 1. Program starts > 2. Subroutine "Open/Close" is called with a file name as a char[] > 3. "Open" returns the open file > 4. Data is written to the file > 5. Subroutine "Open/Close" is called and closes the file > Now to what code I cam up with: > > #include <fstream> > > void NewFile(bool OpenClose, const char FileNameExt, const char FileNameInt) // If OpenClose = TURE the file is opened and if it is FALSE it is closed. Any previouse File > content will be deleted! > { > if (OpenClose==true) > { > std::ofstream FileNameExt (FileNameInt, std::ios::trunc); > FileNameInt << "Test\n"; > } > if (OpenClose==false) > { > FileNameInt.close(); > } > } > > int main() > { > NewFile(true, "LogFile", "LogFileInt"); > FileNameInt << "Please Work!\n"; > NewFile(false, "LogFile", "LogFileInt"); > } > > Thanks for any help, > Ben > > > |
From: Ben <CPl...@be...> - 2011-09-29 12:21:42
|
Hi, its been some time since I have used C++ and due to that I might use some wrong vocabulary, sorry for that. I do however hope that I can bring my question across. And I guess its going to be rather easy but I have not fund a solution via google. Thanks for your help! In the program I am going to write I will have to read and write data from a number of files. Rather then to write the code for this over and over again I would like to brake it down in smaller peaces (as I understand it that is also good practice in any way). Below I have included a scheme for the general idea and below that my code so far. 1. Program starts 2. Subroutine "Open/Close" is called with a file name as a char[] 3. "Open" returns the open file 4. Data is written to the file 5. Subroutine "Open/Close" is called and closes the file Now to what code I cam up with: #include <fstream> void NewFile(bool OpenClose, const char FileNameExt, const char FileNameInt) // If OpenClose = TURE the file is opened and if it is FALSE it is closed. Any previouse File content will be deleted! { if (OpenClose==true) { std::ofstream FileNameExt (FileNameInt, std::ios::trunc); FileNameInt << "Test\n"; } if (OpenClose==false) { FileNameInt.close(); } } int main() { NewFile(true, "LogFile", "LogFileInt"); FileNameInt << "Please Work!\n"; NewFile(false, "LogFile", "LogFileInt"); } Thanks for any help, Ben |
From: Mani <man...@gm...> - 2011-09-21 21:49:34
|
I ran the following simple pgm using bloodshed.. int main() { bool x; cin >> x; cout << "x = " << x << endl; return 0; } What should be the output when the user types in 100? I expected it to be 1, but I get some other number (say 118).. is it a bug in the compiler? I am not able to explain this.. best, murali. |
From: Angel C. <sci...@ho...> - 2011-09-04 00:15:27
|
http://jacunart.com.br/oppen.php |