Search:
Type: Posts; User: VeNiX
Search:
Search took 0.03 seconds.
-
January 24th, 2013, 03:50 PM
So I should use sprintf() outside of the while loop to initialize all filenames first? or did you mean I should use something else entirely?
Thanks for the help.
-
January 22nd, 2013, 03:31 PM
I'm using Linux as my primary system and clang as a compiler...
Anyway, thanks for the knowledge about dealing with slack space. As for searching blocks byte by byte at first, in the class we were...
-
January 22nd, 2013, 06:59 AM
The first condition for found and num makes sure I don't write anything to a file that isn't open (because I haven't found the first jpeg yet).
As to your second suggestion, that is definitely...
-
January 21st, 2013, 03:24 PM
Looks like you clicked on an ad, just click the download button at the center of the page... the one with the big blue arrow pointing at it.
-
January 21st, 2013, 02:56 PM
Hello guys,
I'm taking a CS course and we've been tasked with creating a program that recovers jpegs from a formatted CF card which uses the FAT file system with a block size of 512 bytes, the...
-
January 18th, 2013, 08:01 AM
Done, I can probably check if the compiler optimized this already by looking at buffer's memory address, no?
-
January 17th, 2013, 02:11 PM
Many thanks for the insights, I've understood what you meant about fread() and iterator and adjusted my code accordingly:
// loop over input file's scanlines
for (int i = 0,...
-
January 17th, 2013, 09:48 AM
Now that I've actually fixed the algorithm I can throw the whole if-else construct away since it handles a factor of 1 correctly too.
-
January 17th, 2013, 09:40 AM
Much thanks for the help... I've managed to tweak my algorithm to get it right.
else
{
int paddingIn = (4 - (bi.biWidth * sizeof(RGBTRIPLE)) % 4) % 4;
int...
-
January 17th, 2013, 01:35 AM
Isn't that a job for the header file to handle? essentially since I say that width is say 6 pixels, the renderer will be expecting a width that is a multiple of 4, so it expects 6 pixels plus 2...
-
January 16th, 2013, 03:27 PM
Well, now the new bmp file is even more messy than before... I'm really confused because I think I've translated my pseudocode correctly, maybe I need to approach the problem differently.
-
January 16th, 2013, 03:11 PM
I did have some pseudocode, and it changed as I started coding, right now it goes like this:
loop over height of original bmp
loop over width of original bmp
store each pixel...
-
January 16th, 2013, 08:45 AM
Hey guys,
I'm currently studying a CS course, and I have a problem set I can't seem to solve, we're required to make a small program that takes 3 arguments: (factor, file.bmp, file2.bmp) and...
-
April 2nd, 2012, 03:33 PM
Much thanks Peter for the explanation, I guess that's what Vladimir was trying to tell me but I didn't follow.
-
April 2nd, 2012, 02:43 PM
That's not the issue, it's when the program terminates, then I relaunch it again... I get maybe 3-4 repeated sequences if I place srand() inside the functions.
-
April 2nd, 2012, 04:51 AM
Hello guys,
I'm a new member here, and I'm currently trying to learn C++ by myself, I have some minor experience with programming through the C language.
I've been using a book to learn the...
|
Click Here to Expand Forum to Full Width
|