• Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Convert string to an int.

    Is input[1] just a single numeric digit? If it is, then you don't need any conversion program, just subtract '0' to convert it to integer. For example: char input[] = …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

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

    Microsoft has no intention of telling anyone they can't use XP. They just said they will no longer support it. Users can still use it for as long as they …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Random Facts

    The gun tax was applied in 1937, long before today's gun problems. >Statistically, one of the primary uses for firearms is to commit suicide Where did you get that bit …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Bad Grammar

    >You would never say there were 17.5 people at the party. According to the US Census Bureau the average family is 2.5 people ([link](http://www.marketingcharts.com/wp/traditional/american-households-are-getting-smaller-and-headed-by-older-adults-24981/)). >The average population per household now …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Microsoft SkyDrive is dead and the hard of thinking killed it

    If anyone owns the intellectual property of "Sky" is has to be American TV [NBC who ran the TV series "Sky King" in the early 1950s.](http://en.wikipedia.org/wiki/Sky_King) It was a ratio …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Why doesn't my programm work? I need help

    "%c" only gets one character from the keyboard. I see the structure contains several character arrays, so "%s" is probably more appropriate. Also, it's not necessary to use & before …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in input iterator optimisation

    The problem with that is FindFirstFile and FindNextFile know nothing about std::vector, or even c++. Those are just C functions. In order to make your suggestion work you would first …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Voting online

    [Here's](http://www.americanthinker.com/2013/09/for_those_who_dont_believe_in_election_fraud.html) an article about a year old that you might find interesting about Democrat votor fraud.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Gave Reputation to Ewald Horn in Anticipated Hard Disk Consumption

    I was just trying to point out that it's not a simple guessing exercise, it requires some kind of measurement.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Help needed in Registerpowersettingnotification function

    What and where were the errors?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Russia vs Ukraine vs The World

    If there is a WW3 it won't last long. There's enough nukes in the world to destroy the planet several times over in just a few minutes. So you won't …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in A DOUBTFUL QUESTION..

    There are lots of sorting algorithms, c++ even has one. Are you allowed to use the standard c++ std::sort function? If not, then probably the simplest one to code is …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in coding

    No -- there's no one here that knows how to program :) And if you believe that I have some shares in the Golden Gate Bridge that I'll be glad …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Syntax error (missing operator) in query expression

    you might want to display those two strings or write them to a temp file so that you can see exactly what is being sent to the database.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Random Facts

    The world's longest living married couple are Karam and Kartari Chand, living in Bradford, UK. They have been married over 88 years! ([link](http://en.wikipedia.org/wiki/List_of_people_with_the_longest_marriages)) The only nation in the world to …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in gdb debugger

    [Tutorial here.](http://www.cs.cmu.edu/~gilpin/tutorial/)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Gave Reputation to David W in passing double arrays to functions

    Oops ... I think you meant to use ... int main() { /* your code ... */ return 0; }
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in MVC

    Did you try [this](http://lmgtfy.com/?q=mvc+programming+c%23)?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in interface classes

    [Link](http://lmgtfy.com/?q=interface+class)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in sealed class

    [Link](http://msdn.microsoft.com/en-us/library/88c54tsw.aspx)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in inheritance

    There is no limit.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in implementation of cd function in C

    You can't unless you also write your own file system, which I doubt you will want to do. The CD command is only good while the program is still running. …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Recieve Data From Serial Com Port C# In One Line And Convert To integer

    Do you mean the function on line 154? What constitutes end-of-line? Does the machine sending the weights append '\n' or something to indicate end-of-line? You don't have any control over …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in coding for a video

    what's wrong with skype or something like that?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in backup database

    What coding? Just copy the files to another hard drive.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Skipping scanf and wrong scanning of input

    >what should I use if I'm going to scan for integers The same as for single characters, no different. >Is there something wrong about the scanning of my input? No, …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Open txt file in C

    It's still just fopen() regardless of where the file is located, for example `FILE* fp = fopen("c:\\documents\\test.txt","r");` In your program you will need to get the string as a character …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Skipping scanf and wrong scanning of input

    reverse lines 4 and 5, then lines 15 and 16. The purpose of lines 4 and 15 is to remove the '\n' from the keyboard buffer after calling scanf(). You …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Anticipated Hard Disk Consumption

    If he doesn't have access to the server how is he supposed to calculate consumption? That's like me wanting to make similar approximation of the DaniWeb servers -- no way …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in [Linker error] undefined referance to... vtables and static members

    Because c++ standards stay that's the way it has to be done. Just declaring an object static in the class declaration isn't enough -- the static objects also have to …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in [Linker error] undefined referance to... vtables and static members

    You have static data in some of the classes that also need to be declared globally in one of the \*cpp files. Static class data is just like normal global …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in How software is converted into electrical states in computer?

    > how software is converted into electrical pulses or 0's and 1's in computer. How does the computer do it? The computer itself doesn't do it, it's converted from human …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

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

    >I'm hearing alot of crap about Linux being command-line based with no REAL GUI support.. That may have been the case 30 years ago, but times have changed a bit. …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in cd command not responding

    what do you mean cd doesn't work ? Explain more about the behavior that you think is wrong.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Voting online

    It's all right [here](http://en.wikipedia.org/wiki/Florida_election_recount) -- Bush would still have won had there been a recount. But this is 15 year-old news and not worth repeating.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Switch statement

    You can't make it into a switch statement. switch only works on integers, never stings.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Voting online

    >While the other networks waited for official results, Fox News just went ahead and called it for Bush. How can you claim Fox elected Bush when what they did doesn't …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Help me

    >cannot recognize the method group(String) Does matcher have such a method?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Voting online

    >in which George Bush was elected by Fox News That never happened.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Help me

    what is the error?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

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

    According to Law and Order (the gospel on legal matters) in USA anything left on the street is considered public property and can be taken by anyone who wants it. …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in functions

    Change the return type of each function to return the value of c and y, then in the third function you can get those values to compare them. Something like …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Things I hate about TV shows

    >Per head of population it must have been murder capital of the US! I've always thought that amusing too :) Then she went off to teach college -- AFAIK she …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in How is the weather today in your country?

    It's pretty warm here today. I think sprint has finally sprung because all the birds are chirping loudly.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in c++

    Study and work full time with c++ for about 10 years and you will become a master at it.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in I need help with string

    You didn't do it like I showed you. line 13 is wrong. Re-read all the code I posted.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Voting online

    Wasn't it in Iraq when Saddam Hussein held free elections he got 100% of all the votes :)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Parsing my command from input

    There are a few errors in the code you posted, such as lines 17 and 23. Line 24 is inside the if statement that begins on line 23.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in passing double arrays to functions

    Or just do it like this: void zeroMatrix(float arr[][2]); void main() { float e[2][2]; zeroMatrix(e); } void zeroMatrix(float arr[][2]) { int i, j; for (i = 0; i<2; i++) { …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in How to use single client.h for multiple c program

    Some compilers complain if the include files you create are in quote or angle bracks `#include "client.h"` Use quotes if client.h is in the same folder as your \*.c file(s) …

The End.