dev-cpp-users Mailing List for Dev-C++ (Page 6)
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
|
From: Angel C. <sci...@ho...> - 2012-03-25 09:46:16
|
Learn How To Earn Money 0nIine Now http://pqrimadeeasy.com/gorkiy17.php?xorranknumber=831 ____________ Sine of the Angle.The line dropped from the highest point of an angle to the line which runs out horizontally. ruthann visszaminositett Sun, 25 Mar 2012 10:46:06 |
From: Angel C. <sci...@ho...> - 2012-03-25 09:24:43
|
http://imbrasilia.com.br/gorkiy17.php?profiles=419 Make Inc0me 0nIine with rev0Iuti0nary system _______________ RACING MODELS. errol wilford |
From: <au...@te...> - 2012-03-09 06:09:51
|
La direccion au...@te... cambio, favor utilice: The address au...@te... changed, please use this: au...@ta... TAiSA team TAiSA (Tecnología Aplicada Internacional, S.A.) San José, Costa Rica P.O.Box 1581-2150 Tel. (506) 2297-1011 Fax. (506) 2297-2231 http://www.taisa.co.cr |
From: <ron...@ya...> - 2012-02-13 06:39:53
|
dev...@li..., This is the ticket to turn you around and put you back on the road to success, where you ought to be. <a href="http://goo.gl/Dx0D4">http://goo.gl/1f0Sp</a> |
From: <ron...@ya...> - 2012-02-10 12:18:29
|
Stay on top of your funds! <a href="http://goo.gl/LKSym">http://goo.gl/LKSym</a> |
From: <ron...@ya...> - 2012-02-09 21:51:29
|
dev...@li..., Most people stumble through their entire lives with out finding something to strive for. <a href="http://goo.gl/tdgjt">http://goo.gl/mP8qn</a> |
From: pwm <pw...@ia...> - 2012-02-09 10:23:14
|
So - have you done any ASAP search on Google? Have you done any ASAP check what libraries you are linking? Exactly what, have you ASAP actually done? By the way - when you get a linker error, what is your ASAP view regarding compiler or linker problem? Did you ASAP consider telling us what your linker was ASAP instructed to do? /Per W On Thu, 9 Feb 2012, sounak dey wrote: > pls help me resolve the linker error while working with OpenAl 1.1 in dev c++ > here is the code:::::::::::::::::::::::: > > > #include <iostream> > #include <stdio.h> > #include <windows.h> > #include "Al/al.h" > #include "Al/alc.h" > //#include <al.h> > //#include <alc.h> > > using namespace std; > > using namespace std; > int main() > { > ALCdevice *dev[2]; > ALCcontext *ctx; > ALuint source, buffers[3]; > char data[5000]; > ALuint buf; > ALint val; > > dev[0] = alcOpenDevice(NULL); > ctx = alcCreateContext(dev[0], NULL); > alcMakeContextCurrent(ctx); > > alGenSources(1, &source); > alGenBuffers(3, buffers); > > /* Setup some initial silent data to play out of the source */ > alBufferData(buffers[0], AL_FORMAT_MONO16, data, sizeof(data), 22050); > alBufferData(buffers[1], AL_FORMAT_MONO16, data, sizeof(data), 22050); > alBufferData(buffers[2], AL_FORMAT_MONO16, data, sizeof(data), 22050); > alSourceQueueBuffers(source, 3, buffers); > > /* If you don't need 3D spatialization, this should help processing time */ > alDistanceModel(AL_NONE); > > dev[1] = alcCaptureOpenDevice(NULL, 22050, AL_FORMAT_MONO16, sizeof(data)/2); > > /* Start playback and capture, and enter the audio loop */ > alSourcePlay(source); > alcCaptureStart(dev[1]); > > while(1) > { > /* Check if any queued buffers are finished */ > alGetSourcei(source, AL_BUFFERS_PROCESSED, &val); > if(val <= 0) > continue; > > /* Check how much audio data has been captured (note that 'val' is the > * number of frames, not bytes) */ > alcGetIntegerv(dev[1], ALC_CAPTURE_SAMPLES, 1, &val); > > /* Read the captured audio */ > alcCaptureSamples(dev[1], data, val); > > /* Pop the oldest finished buffer, fill it with the new capture data, > then re-queue it to play on the source */ > alSourceUnqueueBuffers(source, 1, &buf); > alBufferData(buf, AL_FORMAT_MONO16, data, val*2 /* bytes here, not > frames */, 22050); > alSourceQueueBuffers(source, 1, &buf); > > /* Make sure the source is still playing */ > alGetSourcei(source, AL_SOURCE_STATE, &val); > > if(val != AL_PLAYING) > { > > alSourcePlay(source); > } > } > > /* Shutdown and cleanup */ > alcCaptureStop(dev[1]); > alcCaptureCloseDevice(dev[1]); > > alSourceStop(source); > alDeleteSources(1, &source); > alDeleteBuffers(3, buffers); > > alcMakeContextCurrent(NULL); > alcDestroyContext(ctx); > alcCloseDevice(dev[0]); > > return 0; > } > > > > errors are such as::::::::::::::::::::::: > > > > > [Linker error] undefined reference to `_imp__alcOpenDevice' > [Linker error] undefined reference to `_imp__alcCreateContext' > [Linker error] undefined reference to `_imp__alcMakeContextCurrent' > > and many others all are linker error:: > > |
From: sounak d. <dey...@gm...> - 2012-02-09 07:29:11
|
pls help me resolve the linker error while working with OpenAl 1.1 in dev c++ here is the code:::::::::::::::::::::::: #include <iostream> #include <stdio.h> #include <windows.h> #include "Al/al.h" #include "Al/alc.h" //#include <al.h> //#include <alc.h> using namespace std; using namespace std; int main() { ALCdevice *dev[2]; ALCcontext *ctx; ALuint source, buffers[3]; char data[5000]; ALuint buf; ALint val; dev[0] = alcOpenDevice(NULL); ctx = alcCreateContext(dev[0], NULL); alcMakeContextCurrent(ctx); alGenSources(1, &source); alGenBuffers(3, buffers); /* Setup some initial silent data to play out of the source */ alBufferData(buffers[0], AL_FORMAT_MONO16, data, sizeof(data), 22050); alBufferData(buffers[1], AL_FORMAT_MONO16, data, sizeof(data), 22050); alBufferData(buffers[2], AL_FORMAT_MONO16, data, sizeof(data), 22050); alSourceQueueBuffers(source, 3, buffers); /* If you don't need 3D spatialization, this should help processing time */ alDistanceModel(AL_NONE); dev[1] = alcCaptureOpenDevice(NULL, 22050, AL_FORMAT_MONO16, sizeof(data)/2); /* Start playback and capture, and enter the audio loop */ alSourcePlay(source); alcCaptureStart(dev[1]); while(1) { /* Check if any queued buffers are finished */ alGetSourcei(source, AL_BUFFERS_PROCESSED, &val); if(val <= 0) continue; /* Check how much audio data has been captured (note that 'val' is the * number of frames, not bytes) */ alcGetIntegerv(dev[1], ALC_CAPTURE_SAMPLES, 1, &val); /* Read the captured audio */ alcCaptureSamples(dev[1], data, val); /* Pop the oldest finished buffer, fill it with the new capture data, then re-queue it to play on the source */ alSourceUnqueueBuffers(source, 1, &buf); alBufferData(buf, AL_FORMAT_MONO16, data, val*2 /* bytes here, not frames */, 22050); alSourceQueueBuffers(source, 1, &buf); /* Make sure the source is still playing */ alGetSourcei(source, AL_SOURCE_STATE, &val); if(val != AL_PLAYING) { alSourcePlay(source); } } /* Shutdown and cleanup */ alcCaptureStop(dev[1]); alcCaptureCloseDevice(dev[1]); alSourceStop(source); alDeleteSources(1, &source); alDeleteBuffers(3, buffers); alcMakeContextCurrent(NULL); alcDestroyContext(ctx); alcCloseDevice(dev[0]); return 0; } errors are such as::::::::::::::::::::::: [Linker error] undefined reference to `_imp__alcOpenDevice' [Linker error] undefined reference to `_imp__alcCreateContext' [Linker error] undefined reference to `_imp__alcMakeContextCurrent' and many others all are linker error:: |
From: <bj...@os...> - 2012-02-03 21:20:40
|
confirm 95e0dfd29a035d5fedb0be93b1083dfa89a64768 |
From: Jen <jen...@ya...> - 2012-01-29 16:00:17
|
Thank you very much! This is extremely helpful. |
From: Brad W. <c_b...@ya...> - 2012-01-25 06:11:11
|
http://217.64.199.35/mor/255095.html |
From: J. M. R. S. T. <ta...@fe...> - 2012-01-24 14:59:51
|
Dear Colleague, We would like to call your attention to the International Symposium CompIMAGE 2012 - Computational Modeling of Objects Presented in Images: Fundamentals, Methods and Applications (www.dis.uniroma1.it/compimage2012), that will be held in Rome, ITALY, in September 5-7, 2012. MAIN TOPICS - image processing and analysis - image segmentation - 2D and 3D reconstruction - data interpolation - registration and acquisition - objects tracking - scientific data visualization - satellite data - shape modeling - simulation - biometric person identification - medical imaging - motion and deformation analysis - material science - large set data visualization - vision in robotics and automation INVITED LECTURERS - Lorenzo Bruzzone, University of Trento, ITALY - Jorge Marques, Instituto Superior Técnico, Lisboa, PORTUGAL - Fiorella Sgallari, University of Bologna, ITALY - Bertrand Thirion, INRIA, FRANCE - Luminita Vese, UCLA, USA THEMATIC SESSIONS Proposals to organize Thematic Session within CompIMAGE2012 are welcome and should be submitted by email to: com...@di... PUBLICATIONS - The proceedings book will be published by the Taylor & Francis Group and indexed by Thomson Reuters Conference Proceedings Citation Index, IET Inspect and Elsevier Scopus. - A book with 20 invited works from the best ones presented in CompIMAGE 2012 (extended versions) will be published by Springer. - The organizers will encourage the submission of extended versions of the accepted papers to related International Journals; in particular, for special issues dedicated to CompIMAGE 2012. IMPORTANT DATES - Deadline for Extended Abstract (or Full Paper) Submission: February 15, 2012 - Authors Notification: March 16, 2012 - Final camera-ready papers: April 20, 2012 AWARDS "Best paper award" and "Best student paper award" are going to be given to the author(s) of two papers presented at CompIMAGE 2012, selected by the Organizing Committee based on the best combined marks from the Scientific Committee and Session Chairs. Kind regards, Paolo Di Giamberardino Daniela Iacoviello Renato M. Natal Jorge João Manuel R. S. Tavares PS. For further details, please, see CompIMAGE 2012 website at: www.dis.uniroma1.it/compimage2012 |
From: Matthew R. <mri...@gm...> - 2012-01-17 22:13:52
|
Hello, I have a newer version of MinGW with all the includes and libs, and have told Dev-C++ so in the Tools->Compiler Options->Binaries | Libraries | C Includes | C++ Includes panes. But when I compile, in the compile log, it still says, when I compile a C program, for instance: ***make.exe -f "C:\C_Programs\Practice\Makefile.win" all gcc.exe main.o -o "Const_Practice.exe" -L"C:/Dev-Cpp/lib" Execution terminated Compilation successful *I can't find where it's told to add that -L"C:/Dev-Cpp/lib" but I feel like it should be reaching to C:/MinGW/lib where all my newer libraries for things like libstdc++.a and even the things I've added such as glut already are. With Dev-C++, do I HAVE to use C:/Dev-Cpp/lib? If not, where do I go to change it? Thanks. |
From: J. M. R. S. T. <ta...@fe...> - 2011-12-09 02:35:16
|
Dear colleague: We invite you to submit a contribution to the mini track "KNOWLEDGE AND INFORMATION MANAGEMENT IN PRODUCT DEVELOPMENT", to be held under the auspices of the ECIME 2012 - European Conference on Information Management Evaluation (http://www.academic-conferences.org/ecime/ecime2012/ecime12-home.htm), on September 13-14, 2012, in Cork, Ireland. Topics include, but not limited to: · Product development methodologies; · Information management; · Decision support; · Quality management; · Risk management; · Collaborative development. The submissions deadline is February 23, 2012. (Please, check the conference web site for notification to authors and camera ready deadlines, as well as for possible extensions). Papers accepted for the conference will be published in the conference proceedings, subject to author registration. The proceedings have an ISBN and details of the proceedings accreditations are listed on the conference website. Selected papers from the conference will be considered for a special issue of the Electronic Journal of Information Systems Evaluation (http://www.ejise.com). The journal is listed in several international lists. Full details are available on the conference website. Sincerely yours, João Manuel R. S. Tavares - University of Porto, PORTUGAL Isa Santos - University of Porto, PORTUGAL (Track Co-Chairs) |
From: J. M. R. S. T. <ta...@fe...> - 2011-11-12 13:42:33
|
Dear Colleague, Within the 10th International Symposium on Biomechanics and Biomedical Engineering - CMBBE2012 (http://www.cmbbe2012.cf.ac.uk), to be held in Berlin, Germany, on April 11-14, 2012, we are organizing the Special Session on "Computational Methods for Bio- Imaging and Visualization". Due to your research activities in the related fields, we would like to invite you to submit an abstract to our special session. Your contribution is mostly welcomed, and we would be honoured if you could accept this invitation. TOPICS OF INTEREST (not restricted to): - Applications of Bio- Imaging and Visualization; - Computational Vision; - Computer Aided Diagnosis, Surgery, Therapy, and Treatment; - Image Acquisition; - Image Processing and Analysis; - Image Segmentation, Matching and Registration; - Medical Imaging; - Motion and Deformation Analysis; - Physics of Bio-Imaging; - Scientific Visualization; - Shape Reconstruction; - Simulation and Animation; - Software Development; - Telemedicine Systems and their Applications. IMPORTANT DATES: - Abstract submission cut off: December 16, 2011; - Meeting: April 11-14, 2012. ABSTRACT SUBMISSION: Please, go to the abstract submission page (http://www.cmbbe2012.cf.ac.uk/abstract%20-%20author.asp) and select the Special Session "SS5 - Computational Methods for Bio- Imaging and Visualization". With kind regards, João Manuel R. S. Tavares, University of Porto, Portugal, ta...@fe... (Organizer of the Special Session on "Computational Methods for Bio- Imaging and Visualization") |
From: Norman F. <fra...@go...> - 2011-11-06 04:24:54
|
I am using DEV++ this semester to do my homework. How do I build a library of functions? My textbook only goes so far in describing the process and I figure it's up to the compiler to aid in the process. |
From: J. M. R. S. T. <ta...@fe...> - 2011-10-30 18:59:46
|
Dear Colleague, Within the 10th World Congress on Computational Mechanics (WCCM 2012) (www.wccm2012.com), to be held in São Paulo, Brazil, on July 8-13, 2012, we are organizing the Mini-Symposium "MS-026 - Computational Bioimaging and Visualization". Due to your research activities in the related fields, we would like to invite you to submit an invited abstract to our mini-symposium. Your contribution is mostly welcomed, and we would be honoured if you could accept this invitation. TOPICS OF INTEREST (not restricted to): - Image Processing and Analysis; - Image Restoration, Compression, Segmentation and Description; - Object Modelling, Tracking, Matching, Recognition and Reconstruction; - Visual Inspection; - 3D Vision; - Medical Imaging; - Scientific Visualization; - Simulation and Animation; - Software Development for Bioimaging and Visualization; - High Performance Computing in Bioimaging and Visualization; - Applications of Bioimaging and Visualization. IMPORTANT DATES: Deadline for one page abstracts: November 20, 2011; Acceptance of abstracts: until January 31, 2012; Deadline for full papers (optional): March 31, 2012. ABSTRACT SUBMISSION: Please go to the abstract submission page (www.wccm2012.com) and select the Mini-Symposium "MS-026 - Computational Bioimaging and Visualization". With kind regards, João Manuel R. S. Tavares, University of Porto, Portugal, ta...@fe... Renato Natal Jorge, University of Porto, Portugal, rn...@fe... Yongjie Zhang, Carnegie Mellon University, USA, jes...@an... João Paulo Papa, State University of São Paulo - UNESP/Bauru, Brazil, pa...@fc... (Organizers of the Mini-Symposium "MS-026 - Computational Bioimaging and Visualization") |
From: Roberto N. <rob...@ho...> - 2011-10-21 12:47:12
|
Eu gostaria de adicioná-lo à minha rede profissional no LinkedIn. -Roberto Roberto Nascimento -- Brazil Confirm that you know Roberto Nascimento: https://www.linkedin.com/e/5n04o-gu16cj7m-6u/isd/4640462674/Ef6NM7B1/?hs=false&tok=14ZQYtzzR_vkY1 -- You are receiving Invitation to Connect emails. Click to unsubscribe: http://www.linkedin.com/e/5n04o-gu16cj7m-6u/0ixOTjpMmzCRjwci0EUGTiF5mHkE_IciYyPLT223F8F9jwyowaPo/goo/dev-cpp-users%40lists%2Esourceforge%2Enet/20061/I1610129891_1/?hs=false&tok=3sslgayjZ_vkY1 (c) 2011 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA. |
From: SWAGATO M. <swa...@gm...> - 2011-10-16 18:18:18
|
After I compile the file, when i try to run the file it says "source file not compiled".What should i do? -- $w@g@t0 |
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 |
From: <Haf...@ya...> - 2011-07-29 11:33:34
|
hey dev...@li... it's so simple and it only takes a minute http://nbcrbnews.com/?article=49028775 |
From: William Mc C. <wil...@ms...> - 2011-07-08 01:53:41
|
. http://www.dejavulatinfusion.com/order.html?regoogleid=oya0 |