- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
8 Posted Topics
Re: This is what I use, it pauses right before exiting, it's pretty much the same as getchar(), only difference that pressing any key works to exit, where if you use getchar() you have to hit return (enter) to exit system("PAUSE"); return EXIT_SUCCESS; Cheers, Waldis | |
Hi, Once I had a similar problem when I tried to read a binary file on a pc and I failed, but I was able to read it in Linux (there were actually different versions of the file), so I figured it's a corrupted file, thou the hex dump looked … | |
I'm having difficulties to get the buffer read 10 numbers from a file, then after it's empty read next 10 numbers, and so on till eof is reached. The input file contains several lines of data, with a single integer value on each line. Here is my code (I have … | |
Hi, I'm trying to get the threads synchronized, but the output I get is still wrong: Expected sum: 20000000 Actual sum: 10000000 Do I use synchronized wrong, or do I put it in a wrong place? [code] class TestThread extends Thread { public void run() { for (int i = … | |
We were given a heap sort in a pseudocode: [CODE] ******* HEAP SORT ******* sift(A, l, r) ------------- f <- l s <- 2 * l temp <- A[f] found <- false while not found and s <= r if s < r and A[s-1] < A[s] then s <- … ![]() | |
Re: Try this: Open your PC, take our your sound card out and look for the card identifiers (like model number, manufacturer, etc.) go to google, type it in, and search for drivers, you should find it. If the sound is built on board, make sure you install inf files (chipset … | |
Could anyone look at this and tell me if I got it right? I had to rewrite the following code without GOTOs: [CODE]Y: A B if a GOTO X C if b GOTO Y X: D[/CODE] Here is my solution (I added an additional flag to get it done): [CODE]i=TRUE … | |
Hi, could someone to direct me the right way with this? Here is the problem, which I think I have nailed: before: [CODE] A if c then goto X B if d then goto Y C X: D E Y: F[/CODE] after (in pseudocode): [CODE]A if c then D E … |