Salem 5,265 Posting Sage

Bored now....

_____________________
                   /|  /|     |                     |
                   ||__||     |    Please do not    |
                  /   O O\__  |      feed the       |
                 /          \ |       Trolls        |
                /      \     \|_____________________|
               /   _    \     \      ||
              /    |\____\     \     ||
             /     | | | |\____/     ||
            /       \|_|_|/   |     _||
           /  /  \            |____| ||
          /   |   |           |      --|
          |   |   |           |____  --|
   * _    |  |_|_|_|          |     \-/
*-- _--\ _ \                  |      ||
  /  _     \\        |        /      `'
*  /   \_ /- |       |       |
  *      ___ c_c_c_C/ \C_c_c_c____________

Go whine at someone else.

If you want to make a real impression, post more than 2 lines of upper case YELLING.
A reasoned argument written in proper English would help you make you sound sane (and serious). Not some spoilt brat who's thrown the toys out of the pram - Waa Waa - Wiki deleted my post WAAAA!!!!

If it bugs you that much, put it on your OWN SITE.

> I take this as a threat and will be calling the FBI
Who are they - the Female Body Inspectors

William Hemsworth commented: Bhah :) this made me laugh.. +4
Salem 5,265 Posting Sage

If you want to overload a C function, you need to do your own name mangling so that it has a unique name without any help from the compiler.

Salem 5,265 Posting Sage

http://nehe.gamedev.net/lesson.asp?index=01
On the basis that's impossible to extrapolate your experience from such a terse post.

For one thing, 3D graphics is heavy on the maths, so some decent math texts wouldn't go amiss either. It's all very well that the APIs handle a lot of this stuff, but there's a lot of theory as well which a few tutorials and google just won't solve.

Salem 5,265 Posting Sage

The short answer is yes.

The longer answer is, not without difficulty. Sure you may be able to connect, but is the protocol published, or is it proprietary to Yahoo?

If there's a library, you should invest some time in trying to get it to work. It will save you a lot of grief in the long run.

Perhaps post a simple program using the library, and the error message(s) you get.

Salem 5,265 Posting Sage

Perhaps it only bans idiots like you who haven't learnt how to speak properly yet.
http://www.catb.org/~esr/faqs/smart-questions.html#writewell

Plus associated morons who's IQ is lower than their shoe size who go around vandalising content.

Salem 5,265 Posting Sage

If you find a C# example which calls APIs foo() bar() and baz() in that order, how much C# do you really need to know in order to call foo() bar() and baz() from a C++ program?

Figuring out enough C# (not much) just to get the general idea of what is required is all you need.

Plus if you ever need to use C# for real, you'll have head start.
Who knows, you might even like it.

Salem 5,265 Posting Sage

Sorry, without code, we can't help you.
Try http://www.psychic-programming-network.org instead.

Salem 5,265 Posting Sage

> int temp[MAX_PATH];
At line 224.

At line 250 onwards, you assume this has MAX_NODE elements

Salem 5,265 Posting Sage

You'd need to post the whole program, because the bug is somewhere else and this is just where it all went wrong.

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

Something like
"ntp client c source code"
in your search engine perhaps?

Salem 5,265 Posting Sage

Missing ; at end of typedef.

Salem 5,265 Posting Sage

Er, yes.

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

Or even use a debugger, and put the variables in the watch window, so you can see what happens as you single step the code.
So long as you can imagine what should happen next, that's all you need.
So that when something you didn't expect happens, you've found a bug.

Salem 5,265 Posting Sage

Just 6 tiny dots
And 8% is old news.

> Well, with the price of petrol getting closer to $2 per gallon, it looks like electric cars are out the window again
Try to plan more than a few weeks in advance. It's not going to stay like that forever. Consider the recent events as an early warning call for things to come.

Salem 5,265 Posting Sage

Heh.
Same 3 illiterate morons with the same messages here as well.
http://forums.devshed.com/mobile-programming-20/help-me-please-windows-98-dont-know-566239.html

Salem 5,265 Posting Sage

> je tru ;
tru immediately follows, so it does nothing in effect.
Besides, don't you want >= 2 ?

> sir2 db ?
IIRC, this only reserves 1 byte, not a string.

Salem 5,265 Posting Sage

Well since you missed this:

Our Software Development forum category encompasses topics related to application programming and software design. When posting programming code, encase it in [code], [code=syntax], where 'syntax' is any language found within our Code Snippets section, or [icode], for inline code, bbcode tags. Also, to keep DaniWeb a student-friendly place to learn, don't expect quick solutions to your homework. We'll help you get started and exchange algorithm ideas, but only if you show that you're willing to put in effort as well.

Failed to read any of these threads:
Read before posting
The complete idiots guide to using code tags
Hey, dickwad, use the fucking code tags

And completely missed the watermark at the back of the edit window telling you about code tags.

Did you even press "preview" to check that you weren't posting a pile of fetid dingo's kidneys?

Sheesh - are you blind, or just stupid?

It's not just you. You're just the latest in an endless stream of barely sentient noobs who rush to the great white telephone and basically puke all over the floor of the forum. Do you think the regulars and mods have nothing better to do than offer janitorial services to the incontinent?

Swing by here at some point as well.

Oh well, that's my Jagged Little Pill for you to swallow, I'm going to carry on listening to Alanis singing the same - ha!

Aia commented: Code tags? What tags? I ain't seeing any code tags. +11
Salem 5,265 Posting Sage

How lazy would that be?
How many times did you follow this link?

@ddanbe
He's lazy, why recommend a book which has more pages that TIC++?

Accelerated C++ on the other hand is less than half the size. That might work.

On Laziness
But that only works if you're loaded with the others as well.

ddanbe commented: Like your suggestions on reading +1
Salem 5,265 Posting Sage

> jne wastetime
Branch somewhere else, this keeps pushing stuff onto the stack and re-initialising your count.

Salem 5,265 Posting Sage

Ever consider using a search engine?
No wait, that's a dumb idea - you'd have to think what search terms to use :icon_rolleyes:

Salem 5,265 Posting Sage

> #define MAX_MSG = 100
A segmentation fault means you ran it, and it crashed.
Whereas the code you posted won't even compile (not with that #define).

Also, use fgets() to read a whole line for you (and fopen to open the file).

Salem 5,265 Posting Sage

What makes you think your creation mythology is any better than say the Babylonian Creation Myth, except that you have the internet to spread your rumors around.

Does the fact that there's no one around who believes it make it, let's say for the want of a better word - WRONG?

What are your views on other mythic creation stories? Do you consider them interesting points of view, or do you just laugh at them? Or do you just dismiss them out of hand without even bothering to research them? Perhaps there are other non-xtians which have the same view of your mythology.

And when christianity is dead and gone (like so many belief systems before it (oh look, evolution in action), will that finally make your mythology WRONG, as opposed to (in your mind only) plausible?

Personally, I prefer things based on EVIDENCE.
The observed facts are there for all to see, for the want of looking. The "theory" is the current attempt at explaining all the observed facts. If new facts emerge which challenge the "theory", then the "theory" will change. It may change a little, or it could be a radical rethink (like Newtonian Gravity to General Relativity, which in turn will be replaced by something else). But I'm damn sure that "god-did-it" will NOT be a part of any radical change.

And when scientists are arguing over the theory of evolution, it's down in the detail …

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

Maybe the - in your long path is confusing things.

Salem 5,265 Posting Sage

Because the high order bits are "more random" than the low order bits on simple PRNGs
http://c-faq.com/lib/notveryrand.html

But then if they run the program in a loop, then time(NULL) is also effectively a constant as well, so that doesn't really help either.

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

> I would like to get onto blocked websites on my school network whenever I want to.
Well while you're researching how to do it, also look into "computer mis-use" and what they're going to do when they find out.

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

Or your other post on the same subject
http://www.daniweb.com/forums/thread153215.html

Salem 5,265 Posting Sage

You can't declare arrays using sizes available at run-time.

Given that your function definition has a constant, how about

int board[100][100];
          if(OpenBoard(boardName, width, height, board))
          {
                
          }

//...
//function definition...

bool OpenBoard(std::string *boardFileName, int *width, int *height, int board[][100])

But since this is C++, how about std::vector< std::vector<int> > board;

Salem 5,265 Posting Sage

Something else you didn't do for a few seconds was look at the post dates.
Last post (before you) was 16th Feb 2006

Salem 5,265 Posting Sage

Just scope, that's all.

Inside main, only main() can call it.
Unless you copy/paste the prototype into other functions which need to call fun()

Salem 5,265 Posting Sage

Scandisk does a pretty good job of "moving" the data somewhere else if it can, before it marks a sector as bad.

If scandisk is detecting new bad blocks on a regular basis, you really ought to be making a really good backup and shopping for a new hard disk.

Salem 5,265 Posting Sage

There's plenty of info
http://clusty.com/search?query=gcc+cross-compiler+howto&sourceid=Mozilla-search

And no, it's not something I've ever done. I use cross-compilers all the time, but never actually installed a GCC cross compiler from scratch as it were.

Salem 5,265 Posting Sage

If you're using a crusty old compiler like TurboC then you're stuck.

On XP, DOS runs in a virtual machine (playpen, sandbox, whatever you want to call it). The point is, there is NO WAY it can affect the whole machine.

To do what you're suggesting, you need a Win32 compiler which is compatible with your main OS (and not just some emulation for the benefit of older things).

Salem 5,265 Posting Sage

Well yeah, you need a cross-compiler which runs on your machine AND outputs MIPS assembly.

Salem 5,265 Posting Sage

Is your real machine really DOS?

Because if you're running XP (for example), then you'll NEVER be able to turn off sound for the whole machine.

Salem 5,265 Posting Sage

get() will also add the newlines to your maze as well.
Read the char, then test it to see if it's a valid "maze" char, and then add it to your array.

Salem 5,265 Posting Sage

No doubt they'll be back with the "how to swap two variables without a temporary" lameness next week :icon_rolleyes:

Salem 5,265 Posting Sage

By assembly, you mean the .net thing right?

Or do you mean the real low level stuff which compilers produce, which represent your actual running code.

Salem 5,265 Posting Sage

Yeah, I was a csh fanboy long long ago, then I realised this made a lot of sense
http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

You're probably falling foul of one of the many parsing anomalies which csh has.

For one thing, if you use a proper shell, you'll be able to use cron (which would be ideal for what you describe).

Salem 5,265 Posting Sage

> Hi im trying to mess about with a microcontroller
Yeah, you'd need to specify which one, along which which compiler you're using to even begin to make any sense of that.

Also, posting more than one line of code would establish a context for better guessing, even if an absolute answer wasn't apparent.

Salem 5,265 Posting Sage

The solution would be to read the manual page for getopt again to see if you can tell it that -a has two parameters for example.

If not, them I guess you're stuck with the old fashioned way of doing it all yourself.

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

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

Gimme a break, what sort of lame-assed tutor thinks this is in any way teaching you anything worth knowing.

Oh, and you can't in any conforming C program do it, since the program has to inevitably end with

int main ( ) {
  return 0;  /* I got your ; right here! */
}
Salem 5,265 Posting Sage

> Christ is not mentioned anywhere in our constitution nor is god (or God)
> and religion is first mentioned in Amendment 1
But it is all over that other important document known as the dollar bill.
http://en.wikipedia.org/wiki/In_God_We_Trust
Now that's scary!

Salem 5,265 Posting Sage

> BIOS Date: August 18th 2004
Which means the board is probably older still right?

http://support.intel.com/support/motherboards/desktop/d845gvsr/

These products are no longer being manufactured by Intel. Additionally, Intel no longer provides interactive support for these products via telephone or e-mail, nor will Intel provide any future software updates to support new operating systems or improve compatibility with third party devices and software products.

THESE DOCUMENTS ARE PROVIDED FOR HISTORICAL REFERENCE PURPOSES ONLY AND ARE SUBJECT TO THE TERMS SET FORTH IN THE "LEGAL INFORMATION" LINK BELOW.For information on currently available Intel products, please see www.intel.com and/or developer.intel.com

In other words, it's so old that Intel have lost complete interest in it.

You're only going to get so far by putting racing slicks on a model T ford. Looks great, but all it does is really expose how weak the rest of the system is.

By the time you've incrementally (and sub-optimally) replaced several components in your machine, you could have bought a brand new one with all the latest (and matched to each other) components for basically the same money.

Yes your fancy RAM may make it quicker (eventually), but will you ever be able to run the RAM at it's true potential on that old machine?. If the answer is no, then you've paid for performance you're never going to use.

Salem 5,265 Posting Sage

> cout<< buf << "\n";
So each one of these outputs all the data, just not necessarily on a line by line basis?

Unfortunately, that's how it works.
You need to add another layer of code which takes raw message fragments, and turns them into lines ending in \n