Thread: [Dev-C++] Towers of Hanoi puzzle
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <Swe...@ao...> - 2002-12-04 00:31:26
|
My teacher gave this assignment and i dont have a clue how to start it You can move only one disc at a time At the end of each move you must always replace a disc on top of one of the towers, i.e. no putting them on the floor You may not put a larger disc on top of a smaller one. |
|
From: Per W. <pw...@ia...> - 2002-12-04 08:46:57
|
This is a standard Towers of Hanoi. Please don't use mailing lists for class room assignments - they are ment to educate you, not us :-) If you have any problems with the Dev-C++ tool, then we will gladly help. /Per W On Tue, 3 Dec 2002 Swe...@ao... wrote: > My teacher gave this assignment and i dont have a clue how to start it > > You can move only one disc at a time > > At the end of each move you must always replace a disc on top of one of the > towers, i.e. no putting them on the floor > > You may not put a larger disc on top of a smaller one. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: <we...@ha...> - 2002-12-06 19:04:21
|
Hi Guys, I need implement in my code a funciont that copy a directory recursively (the directory and subdirectory) but only the updated files. Someone know how to do it ?? ps.: I use always FileCopy() but it didn't copy updated files only i think... :/ Thkz a lot... Best Regards.. [ ]'s |
|
From: <cg...@wo...> - 2002-12-07 21:05:02
|
I hope this helps a little. Use sys/stats.h, dirent.h and those files used for directory and file management. In sys/stat.h is defined an struct anf functions for files, this structs have three members of time: the creation date, last access and modification. Read at the documentation of libc (You can find it as chm file from a link in www.mingw.org documentation section, chapter 15) we...@ha... wrote: >Hi Guys, > >I need implement in my code a funciont that copy a directory recursively >(the directory and subdirectory) but only the updated files. Someone know >how to do it ?? > >ps.: I use always FileCopy() but it didn't copy updated files only i >think... :/ > >Thkz a lot... > >Best Regards.. > >[ ]'s > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |
|
From: <we...@ha...> - 2002-12-10 11:45:29
|
Hi Carlos and Dev-c++ users, Thkz a lot by your help. But i was searching something done "a function, i don't know" .... if someone know whre find it... :) Else i will do it... thkz for help and attention :) Best Regards [ ]'s ----- Original Message ----- From: "Carlos García del Monte" <cg...@wo...> To: "dev-cpp-users-list" <dev...@li...> Sent: Saturday, December 07, 2002 7:00 PM Subject: Re: [Dev-C++] Copy files recursively but only updated. :) > I hope this helps a little. Use sys/stats.h, dirent.h and those files > used for directory and file management. In sys/stat.h is defined an > struct anf functions for files, this structs have three members of time: > the creation date, last access and modification. Read at the > documentation of libc (You can find it as chm file from a link in > www.mingw.org documentation section, chapter 15) > > we...@ha... wrote: > > >Hi Guys, > > > >I need implement in my code a funciont that copy a directory recursively > >(the directory and subdirectory) but only the updated files. Someone know > >how to do it ?? > > > >ps.: I use always FileCopy() but it didn't copy updated files only i > >think... :/ > > > >Thkz a lot... > > > >Best Regards.. > > > >[ ]'s > > > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by:ThinkGeek > >Welcome to geek heaven. > >http://thinkgeek.com/sf > >_______________________________________________ > >Dev-cpp-users mailing list > >Dev...@li... > >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |