• Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in 12 knights to dominate all squares of chess board 8x8

    My suggestion is to start by playing the game on a real board so that you see how it works.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Random Facts

    According to [this ](http://www.oxforddictionaries.com/us/words/what-is-the-origin-of-the-word-ok)artcle origins of the word OK is unknown, but speculation suggests it came from the 1840 American presidential election. >The oldest written references result from its use …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in How to show search results in the databases in datagridview

    Why don't you just bind the DataGridView with the sql?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Database connectitvity

    line 7: why are you repeating the same character 22 times in currentLine? Isn't once enough? int j = 0; while ((c = fgetc(file1)) != EOF) { currentLine[j++]= (char)c; currentLine[j] …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Cannot receive complete string

    Looks like it is sending char\* (line 15) and receiving wchar_t\* (line 40)? Is that right? I don't think that will work. Suggest you change OnClickedBsend() to convert the string …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Problem in randomly accessing data

    what is ID? what is rnd(ID)? Is that generating a random number seeded with ID? Or something else? What SQL database is this for?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Checking for First, last and Maximum and minimum

    >// t-1 = second last and t-2 = secound first What?? The second last is t-2, the second first is 1. Why do you need loops to find the second …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in [c++] hide char

    what is not possible??
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in problem on c

    You really don't need that large if statement, just use the mod operator and replace lines 9-12 with just this one statement. `++counter[abs(input) % 200];`
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Parallel Matrix Multiplicator

    What compiler are you using? Try commenting out large sections of the code so that you can narrow down the location of the error.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Problem with arguments

    If you wrote that code then you should know what command-line arguments it needs. Looks like it takes 11 integers on the command line.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in problem on c

    No. array a is a one-dimensional array so a[i][j] won't work.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in problem on c

    In lines 14-23 you need to count how many times each number appears in the array. For example if the array contains 1 2 3 1 2 3 1 4 …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Database connectitvity

    use a timer to invoke the function then the time expires. How to do that might depend on the compiler. Usually you would create another thread which has an infinite …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in How it is working

    line 5 is undefined behavor, the value printed for i may be difference from one compiler to the next.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in How to include windows.h header file in linux gcc compiler?

    The header file will do you no good without the libraries. If you want to code Windows program on \*nix then you need a cross compiler. [Here](http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/475665/compile-windows-source-codec-under-linux#post2077386) is a related …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in IO write in middle of txt

    Yes, you can do it that way. And yes, it's pretty simple to do.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in contract template won't hold right margin

    What program are you using? Microsoft Word maybe? If yes, what version?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in IO write in middle of txt

    You have to rewrite the entire file in order to edit one of the lines. It is not possible to just expand a line like you would in memory. If …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in [c++] hide char

    Here's how to backspace int main() { int c; while ((c = _getch()) != '\n') { if (c == '\b') putchar(c); else putchar('*'); } return 0; }
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in How does one open an audio file?

    If on Windows then call [PlaySound()](http://msdn.microsoft.com/en-us/library/windows/desktop/dd743680%28v=vs.85%29.aspx). I don't know the \*nix equivalent, or even if there is one.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in programming code

    I doubt that is the exact assignment -- it's completely incomprehensible.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in [c++] hide char

    That's easy enough, but the problem is getting the string from the keyboard without actually displaying the plain text, display stars instead of the text.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in [c++] hide char

    There is no standard C or C++ function/class that will do what you want. So you can resort to non-standard functions, for example the functions in conio.h if your compiler …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

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

    >MS expects everyone to ONLY use their crummy software. That is clearly not true -- there are thousands, or even millions, of software for Windows that is not produced by …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Bad Grammar

    >This book is of me Only if the book is about you. >This book is of mine? I have never heard that one. >This book belongs to me. >This book …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in compile windows source code(c) under linux

    Why would you want to compile a windows program on \*nix? Why not just compile on Windows?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in problem on c

    post the program so we can see what you did.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Class roster, parallel array. Cannot get user input.

    multi-statement for loops and if statements require { and } around them for(i = 0; i < 10; i++) { // blabla } line 23: y < y will never …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in need new "c++ database" books or tutorial sites

    You can use c++ but it's somewhat complicated. A lot easier if you use C# or VB.NET. If you want to use MySQL database then they have a c++ class …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Burned DVD will NOT play.

    Is this the only one that's unplayable or are all the dvds you burn (using different files) unplayable?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in file handling

    That's what I suggested -- once you get the filename in output in order to compare it with the name of an actual file all you do is find out …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in curious!!

    Nothing.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in C# to Native Code

    I have not heard anything about that, [here](http://channel9.msdn.com/Forums/Coffeehouse/whats-stopping-C-being-made-as-a-nativeunmanaged-language) is a related article. >When will this compiler be available? If there is one in the works it will probably be several …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in I need some eBook

    Most programs are written in C and C++, but C# and VB.NET are used quite a bit too. If you are asking about websites then that another entire bucket of …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Gave Reputation to om314 in how to track in database

    I would do it like this: Keep your original table. New table visits - visit_id (autoincrement int) - no (FK) <--- refers to your original table - visit_date (datetime) - …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in file handling

    If you already know the name of the file to check, then there are several options. One option is try to open the file for reading, if that succeeds then …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in I need some eBook

    Do you mean win32 api functions? They are very old and mostly obsolete now, better to use .NET functions using c++/CLR, C# and/or VB.NET. If you still want to learn …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in why doesn't the unsigned long long work?

    >unsigned long long sum doesn't work because start is still an int. That shouldn't be a problem.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in problem on c

    What have you done so far? Do you know how to read a file? If not, then you need to read tutorials on ifstream (input file stream) and ofstream (output …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in file reading problem

    I ran your program and didn't get that problem. Here is the text file xx.txt that I used.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Using a function to get the sum of 1 row and 1 column

    line 3 is incorrect because it is indexing beyond the bounds of the array. You should initialize highest as the first item in the table `int highest = table1[rows][0];` The …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in why doesn't the unsigned long long work?

    Probably depends on what compiler you are using. Here's the output from VC++ 2013 1 1 2 3 3 9 4 33 5 153 6 873 7 5913 8 46233 …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Windows 8.1 App store stuck on splash screen

    I just tried it and had a similar problem, but I just hit the back arrow located in the top left corner and it returned to the correct screen. There …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Using a function to get the sum of 1 row and 1 column

    The first parameter should be identical to that of all the other functions. `array[][COLS]` Otherwise that function looks ok. To call it from main() you will have to prompt for …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in program code for analysis of four bar linkage by loop closure equation in t

    What is your question? Nobody here is going to do your homework for you. First you will have to know what "four bar linkage by ..." is. If you don't, …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in WMI and win32 classes

    Did you look up their descriptions on MSDN? [Win32_DiskDrive](http://msdn.microsoft.com/en-us/library/aa394132(v=vs.85).aspx) [Win32_LogicalDisk](http://msdn.microsoft.com/en-us/library/aa394173(v=vs.85).aspx) [Win32_Volume](http://msdn.microsoft.com/en-us/library/aa394515(v=vs.85).aspx) [Win32_DiskPartition](http://msdn.microsoft.com/en-us/library/aa394135(v=vs.85).aspx)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Using a function to get the sum of 1 row and 1 column

    The second parameter to getRowTotal() and getColumnTotal() is the row or column you need to work with. The code will be very similar to the one you did for getTotal(), …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Career path? (Microsoft dynamics CRM consultant)

    With your degree and experience you should have little problems getting a job. If you think the non-M$ job is interesting then go for it. Don't be stuck on just …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Burned DVD will NOT play.

    What did you burn? If it was pirated then that may be the reason the dvd won't play.

The End.