Salem 5,265 Posting Sage

Since you missed both of these, then no.

Announcement: Please use BB Code and Inlinecode tags
Announcement: We only give homework help to those who show effort

Besides, get a C++ compiler and do it yourself.
g++ -S prog.cpp
will get you the asm you seek.

Salem 5,265 Posting Sage

It's an array of offsets into the file, not addresses as such.

Since you know how many there are, you can calculate the size of this table, and populate it with what the effective start positions of each buffList[buf].fbCodeAddr will be written to (it's just an initial constant, and a sum of lengths)

Oh, and try to use portable image formats in future.

Salem 5,265 Posting Sage

cases 1 and 2 seemed ok, then there's an excess of
switch (month)

Salem 5,265 Posting Sage

Run mdadm in the forground, hence sequentially.
Run your progress in the background, then kill it when you're done.

And thanks for the explanations :icon_rolleyes:

Salem 5,265 Posting Sage

You've defined your function inside main.

Salem 5,265 Posting Sage

Here's a geek joke.

Programmers can't tell halloween from xmas because oct 31 == dec 25

Salem 5,265 Posting Sage

If you ignore the "progress indicator" for the moment, does this actually work ?

# mdadm --manage /dev/md0 --add /dev/sdb1
# mdadm --manage /dev/md1 --add /dev/sdb2
# mdadm --manage /dev/md2 --add /dev/sdb3
# mdadm --manage /dev/md3 --add /dev/sdb4

Does /proc/mdstat exist before the first command starts, and after the last command exits?

Salem 5,265 Posting Sage

Forum Posts: 700,558

However, 435,384 members makes the average number of posts 1.6

It gets worse if you remove the top 100 posters.
Then the average posts per member is basically 1.

Basically, someone joins, asks a question, and it never gets answered.
What a rubbish forum ;)

If only there were a vast army of 0-posters to make the average for the rest of us look much better.....

Salem 5,265 Posting Sage

So pagan rituals which xtians have hijacked don't count?

> Do you have similar rituals in your country and what is your favorite costume to scare folks?
Yeah, they're called "hoodies" and they're about all the time.

Salem 5,265 Posting Sage

Are those your only choices?
You also failed to post any mention of what may be constraining your choice to one or the other.

Salem 5,265 Posting Sage

GIYFS you lazy arse - we're not here to search stuff for you AND THEN email you the answers!
:@ :@ :@

Alex Edwards commented: XD +4
Salem 5,265 Posting Sage

The rest of the filenames are in $*
or use $1 and shift to process them one at a time.

Salem 5,265 Posting Sage

> EDIT: im using windows xp pro, if that helps.
But which compiler?
Not some fossil like TurboC by any chance?

> send a high or low signal to the corresponding output pin on a serial port
Er, you do know what a serial port looks like right?
Or even how a serial port works?
http://www.lammertbies.nl/comm/cable/RS-232.html
The only output pins which have a level associated with them are CTS and RTS.

Salem 5,265 Posting Sage

So it does reach the far corner then.

> fill(half, a, q1, 0, 0, xc, yc, pxc, pyc, ++num);
My guess is each of these should be num+1, not num++ (or even ++num)

But then again, I can't see why it would need to be a reference either.

Salem 5,265 Posting Sage

So what was your answer then?

Salem 5,265 Posting Sage

> I supposed I could mention this, but chances are you'll ignore it.
> http://www.daniweb.com/forums/announcement8-3.html

Oh well, that's it then
> Last edited by Narue : 8 Hours Ago at 21:41. Reason: added code tags

Move along, nothing to see here.

Just another starving man, who on stumbling upon a banquet was unable to recognise that what was being offered was food.

Salem 5,265 Posting Sage

Don't forget, main returns int

Salem 5,265 Posting Sage

> Anything bigger and it doesn't fill it in completely.
As in it crashes with some error message, or some other reason?

Why do you have a 'static' in fill()?
There's only ONE variable, not a separate copy for each recursive invocation.

Salem 5,265 Posting Sage
Salem 5,265 Posting Sage
Salem 5,265 Posting Sage

So post what you can achieve yourself, then we'll help
http://www.daniweb.com/forums/announcement8-2.html

I supposed I could mention this, but chances are you'll ignore it.
http://www.daniweb.com/forums/announcement8-3.html

Salem 5,265 Posting Sage

So.......
Why don't you have a compiler on your home machine?

There's plenty of good and free ones to choose from, and it'll save you a lot of time by being able to try things yourself whenever you feel like it.

Salem 5,265 Posting Sage

Are you asking, or did you compile it and try it?

Salem 5,265 Posting Sage

I'm not sure any of them make any sense.

I assume you have this information?
http://www.win.tue.nl/~aeb/comp/8051/set8051.html
http://www.win.tue.nl/~aeb/comp/8051/instruction-set.pdf

The last two steps at 571A and 571B look look like program execution, where 04 and 13 are the opcodes of the instruction being fetched (which do match some of the choices you post).

As for what does the initial write, I've no idea.
The only thing which comes close is (d), but that would appear to write to internal RAM (and thus would not be visible on those lines).
Everything else seems to modify a register.

Salem 5,265 Posting Sage

Initialise countPtr

Then
countPtr = countPtr->next;

Salem 5,265 Posting Sage

I guess that's the answer then, by a process of elimination.

Salem 5,265 Posting Sage

> I was surprised, but this code compiled on Dev C++. I figured "or" would be an error
http://david.tribble.com/text/cdiffs.htm#C99-alt-tok

It's one of the less travelled paths through the C++ standard :)

VernonDozier commented: Interesting. Good find. +8
Salem 5,265 Posting Sage

P0 looks like data to me.

I'm assuming 'A' is a memory location identifier, and Rx are registers.

INC and DEC are obvious (and wrong), but what does XRL do?

Salem 5,265 Posting Sage

AD's pseudo-code is exactly what I said.

Salem 5,265 Posting Sage

Name: HW1.txt
Size: 968B
If that's it's size, post it here.

If you wanted the math library for example, it would be gcc prog.c -lm That's lowecase "LM" at the end.
-l means link with a library
m means libm.a
Just in case you have other libxxx.a libraries, and you need to know how to get the xxx part on the command line.

Salem 5,265 Posting Sage

> Did I miss anything?
Like mentioning your OS / Compiler / JPEG library.
Or even posting a reasonable amount of code to establish a context for the question.

No, not a thing :icon_rolleyes:

Salem 5,265 Posting Sage

Post something which compiles perhaps?
Random lines from your program doesn't tell us a great deal about all the possible ways you could have gone wrong.

Salem 5,265 Posting Sage

If by 'parse', you mean do all the interesting stuff you would otherwise do in perl with a couple of handy regex's, then consider this

http://search.cpan.org/dist/Net-Telnet/lib/Net/Telnet.pm

Salem 5,265 Posting Sage

What does the information in P0 and P2 tell you?

Salem 5,265 Posting Sage

> numbers = numbers[i+1];
When you're removing, this loop should start at the number you enter, not 0

Salem 5,265 Posting Sage

Well as a guess, a name like "_mysql_get_client_info@0" suggests it is being decorated as a C++ symbol, whereas the equivalent in the library is very much a C symbol.

It seems to me you're compiling C++ and linking with a C library.

> Dump of file libmysql.lib
Is there a libmysql++.lib there as well?

Salem 5,265 Posting Sage

How about starting with the basics, like making sure the 1, 2, 3 bit works

Like if you input 1, all you have is
cout << "Choice is 1" << endl;

If you can do that much, fine - then we can work on the next step.
If you can't, there's no point in starting out with an explanation of the finer points of roman numerals.

Your code helps us calibrate our answers to be most useful to you.

Salem 5,265 Posting Sage

So do you see anything with the default BIOS settings?

Salem 5,265 Posting Sage

If you post code, then someone will probably be able to help you.

Salem 5,265 Posting Sage

http://www.catb.org/~esr/faqs/smart-questions.html#urgent

> i have an assignment which i have to submit by tmw,
Awww - what a shame - tomorrow you say.

> The deadline for this work is: Monday October 20th before 4:30pm.
Now correct me if I'm wrong, but isn't it already past this time at the "university of wollongong in Dubai,"?

http://www.catb.org/~esr/faqs/smart-questions.html#homework

No doubt in your unbridled glee at finding a Java forum, you missed this on your way in.
http://www.daniweb.com/forums/announcement9-2.html

Salem 5,265 Posting Sage

Oh and I forgot to mention, when you get to 10, you need to reset back to 0 (say, for seconds).
And obviously, when you get to 6 for centi-seconds (and so forth).

Salem 5,265 Posting Sage
R0bb0b commented: Nice forum guide +2
Salem 5,265 Posting Sage

> I put that in just to show that one gets zero or nonsense,
Or the right answer, or a segmentation fault.

Salem 5,265 Posting Sage

You didn't state exactly which POSIX OS you're using.

It's easy enough to create a myRead() which just calls read() in a loop until it's got the required number of bytes.

Salem 5,265 Posting Sage

Why does insert need 2 params?
Why does your implementation trash memory rather than copying to the instance variable.
None of your functions are members of a class.

Salem 5,265 Posting Sage

Which version of C++?
Later versions come with libraries to parse XML automatically, without you having to deal with all the < > stuff yourself.

Failing that, use a library
http://expat.sourceforge.net/

Salem 5,265 Posting Sage

Fortran is widely used in scientific and engineering applications.
The fact there is a new ISO standard for it doing the rounds means that there's still a lot of interest in it.

Asking about it on a forum where there is no Fortran section is however not the smartest idea.

"basic" covers a whole multitude of sins - which in particular?

Also see
http://www.nist.gov/dads/
Books by Sedgewick on algorithms are good.

Salem 5,265 Posting Sage

You need to be calling
new node;
for each word you read from the file.

Salem 5,265 Posting Sage

It might, if you use strlen rather than sizeof

Oh, and there can only ever be one newline.
If there is a newline at all, it will always be at
input[strlen(input)-1]

Though you should check fgets() returned success before doing this.

Salem 5,265 Posting Sage

Several things you need to check

Move.b	    #$04,PADR
	Move.b	    0(A3,D3),PBDR

	Move.b	    #$02,PADR
	Move.b	    0(A4,D4),PBDR

This is missing bsr Delays

> Head Move.l #555556,D7
As far as I can tell, this is never called.

> bsr Delays
Did you set the stack pointer to point to some usable memory?
Without a meaningful stack pointer, you can't call functions.

> cmpi.b #12,D4
12 seems a rather large number for a single digit.