• Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in retaining output window when using #include<stdio.h>

    Huh? There is no such c++ function as waitKey.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in How come I get an error registering to forums? Registration denied

    Name one of the sites that you can not register.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in What is the return type of function rankfun?

    >What is the return type of function rankfun? Look at line 3 -- it says it all.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Pirated Window XP

    >i think because updates are over you can use a key for xp(but not a crack) Microsoft wont be worrying about xp piracy anymore.Anyway its not legal!!! You're an idot …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in balancedparantheses

    Check spelling and capitalization of balancedparentheses. Is that function prototyped in one of the include files?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in private messages

    emails are blocked until you have been a member for a certain period of time and made several posts. I don't know how much time or the number of posts, …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in some questions about these code

    you could change it to \*.cpp and eliminate the warning.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in balancedparantheses

    You don't know how to fix what exactly?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in some questions about these code

    >ut why the double don't accept integers? It has to do with what the compiler pushes on the stack. Integers are 4 bytes on the stack while doubls are 8 …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in How come I get an error registering to forums? Registration denied

    How were you able to post this thread if you are not registered? >I tried formatting my Windows from beginning. You mean you really reformatted your hard drive? Why? >Tried …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in some questions about these code

    line 54 is sending 3 integers, not 3 doubles. Make them doubles and see if that solves the problem. `double a=average(3,10.0,50.0,6.0);`
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in warning: cast from pointer to integer of different size

    In that case calloc() is unnecessary. If all you want to do is make a copy of another string then just do this: `strings[hash] = strdup(mneumonic);`
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in some questions about these code

    post how you are calling that function.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in read from file and print output to a file

    line 10: No, you can't concantinate C strings like that char fname[255]; char *ptr; strcpy(fname,argv[1]); ptr = strchr(fname,'.'); // truncate extension if( strcmp(ptr,".txt") == 0) { printf("Error: can't write to …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in some questions about these code

    MessageBox() does NOT return a double. Look it up.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in some questions about these code

    When you get that kind of error just look up the function and see what arguments it expects. Simple use google to do that. In the case of _vscprintf() you …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Data Type Comperison

    We don't do homework for you. Post the code you have written and we'll talk about it.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Anyone in for homeopathy?

    This discussion reminds me of the [Geritol fiasco](http://en.wikipedia.org/wiki/Geritol) a few years ago (1960s). I remember those Geritol commercials -- it was the cure for almost everything.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Data Type Comperison

    > student enter his name in digits no dought it is wrong Not necessarily -- depends on where you live. In some places it might be perfectly legal to name …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in c++ code wanted

    >AD - you're being too M$-centric. LOL You're right :)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Why us C++ better for system programming than Java?

    One reason -- With C/C++ you can directly access hardware.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in some questions about these code

    >the _vsntprintf() link isn't working You're right -- I must have copied the wrong url into the clipboard. >but why use it? what means? I don't use it. there may …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in some questions about these code

    _cdecl is the default calling convention for Micosoft Visual Studio. There is no need to explicitly use CDECL. _vsntprintf() -- wrong. ([link](_vsntprintf )). How is _vsntprintf() supposed to know the …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in c++ code wanted

    >It is possible to use any number of characters '/' as a delimiter in path instead of one traditional '/'. FIt is possible to use any No. When in doubt …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Corba project in c++

    Didn't you google for it? ([link](http://www.microfocus.com/products/corba/orbacus/))
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in concatenate 3 string (char str[30]) using operator overloading

    If the assignment is to concantinate 3 or more strings at the same time then lines 45 and 46 do not test that problem. So if this is a class …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Corba project in c++

    Study [this tutorial](http://www.codeproject.com/Articles/24863/A-Simple-C-Client-Server-in-CORBA)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in error C4700: uninitialized local variable 's' used

    because on line 35 you are passing s and s has not been initialized. I would change input() to accept the parameter by reference and not by value. Why are …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Classes help

    line 84: flush the input stream here. You don't need cin.ignore() in the other places where you have it. Also, study [this thread ](http://www.daniweb.com/software-development/cpp/threads/90228/flushing-the-input-stream)how to flush the input stream. Just …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in concatenate 3 string (char str[30]) using operator overloading

    Change lines 45 and 46 back to the way you had it. There was no need to change that line. `z=x+(y+l);` Here is what I see when I run your …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in iostream.h why why ?

    `using namespace std;` is actually bad practice because it floods the program with everything in std namespace, and sometimes that causes name clashes with your own code. I cam across …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in iostream.h why why ?

    Which to use will depend on your compiler. Old Turbo C++ will use iostream.h but all recent compilers use <iostream> (without the .h extension) You also need a using statement. …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in concatenate 3 string (char str[30]) using operator overloading

    Did you bother to try what I told you? You're english is good enough and you express yourself very well. This is the code I'm trying to tell you about. …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in concatenate 3 string (char str[30]) using operator overloading

    solution is simple: just remove the second parameter to that operatopr function and delete line 23.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Removing row/column in matrix

    >Forgot to say that you can use real numbers in matix. That's ok -- you can't put irrational numbers in an int anyway. Finding the largest array of positive numbers …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Don't know how to solve this error

    that error means you failed to implement that function in your \*.cpp or \*.h file. Also recheck spelling and capitalization to make sure they are consistent.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in concatenate 3 string (char str[30]) using operator overloading

    line 18: operator can only have 1 parameter. line 3: uncluding all std like that causes a name conflict with your count class name. replace that line with `using std::cout;` …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Why does Windows XP refuse to die?

    See [this post in this thread](http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/news/294897/why-does-windows-xp-refuse-to-die/21#post2082821) for open source Windows (ReactOS)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in UVa (3n+1 problem) outputs wrong Answer!!!!

    Your program appears to be retaining one of the last answers 1 10 1 10 20 100 200 100 200 **125** 201 210 201 210 **125** 900 1000 900 1000 …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in UVa (3n+1 problem) outputs wrong Answer!!!!

    your answer for 201 210 is 174, should be 89 according to the example input/output in the instructions.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in UVa (3n+1 problem) outputs wrong Answer!!!!

    > wonder why UVA doesn't accept my answer How are we supposed to know that? You didn't even tell us what that program is supposed to do. And what is …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in What is the difference between MessageBox.Show and MsgBox

    You can do that with both functions.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in concatenate 3 string (char str[30]) using operator overloading

    The entire class is quite dangerous -- how can you be sure the results of line 43 will not overflow the size of str (line 7)? line 20: What is …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Binary File Input Bug

    There is no reason to do all that shifting. Forget shifting, it doesn't do you any good.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Why does Windows XP refuse to die?

    >its terreble if XP will be shut down No one said XP is being shut down. It's your computer, run it as long as you want.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Binary File Input Bug

    So, all you have to do is to read 4 bytes then reverse them. The whole problem of endian-ness disappears if you write out the file as plain text instead …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Binary File Input Bug

    >When I do it your way I get everything inverted I wasn't aware that endian-ness was the problem you want to resolve. My way is only useful if that isn't …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Removing row/column in matrix

    You can't just remove a row from a statically allocated array, and it's a little tricky to remove a row from a dynamically allocated array. For statically allocated arrays the …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in getting improper output- working with arrays of strings

    Or change line 13 to this so that token has a pointer to unique memory: `token[i]=strdup(buff);`
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Bad Grammar

    >but wrong because it happens to be a lie ;) And how would you know that unless you were there?

The End.