Home » Community » Newbie corner » MSVC 10 to Upp conversion
Re: MSVC 10 to Upp conversion [message #32649 is a reply to message #32648] |
Tue, 31 May 2011 12:29   |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
Thanks Honza and Koldo
I use something like your example in Java, this just counts but is about the same for processing files rather than tNum++;
It's just a simple loop back if it's a directory rather than a file.
private void countFiles(File sourceDirectory){
for (File f : sourceDirectory.listFiles()) {
if (f.isDirectory()) countFiles(f);
if (f.isFile()) tNum++;
}
}
I thought there may be something like the dos findfirst-findnext, Python Walk, etc. rolled into a function like opendir in Upp
or being able to use opendir, I thought that was a C++ function.
Those two lines do look complicated but breaks down to
if(... && ... && ...){
...;
}
This is mostly with numbers which I am fair with or file names.
That shouldn't be a problem unless Upp doesn't use sscanf, static_cast, push_back, etc..
I will get it to iterate through the files and see what happens.
[Updated on: Tue, 31 May 2011 12:39] Report message to a moderator
|
|
|
 |
|
MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Mon, 30 May 2011 22:54
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Tue, 31 May 2011 08:40
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Tue, 31 May 2011 21:20
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Wed, 01 June 2011 08:06
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Wed, 01 June 2011 12:09
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Wed, 01 June 2011 17:19
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Thu, 02 June 2011 08:36
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Thu, 02 June 2011 11:37
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Thu, 02 June 2011 13:53
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Sun, 05 June 2011 06:58
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Tue, 07 June 2011 07:17
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Tue, 07 June 2011 15:59
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Tue, 14 June 2011 09:17
|
 |
|
Re: MSVC 10 to Upp conversion
|
Goto Forum:
Current Time: Tue May 13 02:44:53 CEST 2025
Total time taken to generate the page: 0.02504 seconds
|