• Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Joining to chars in c++

    a+b adds the two ascii values. Look at [any ascii table](http://www.asciitable.com/) and you will see that 'a' == 97 and 'b' == 98, so a+b = 97+98 = 195. Now …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Deleting node from nested list

    It's pretty simple, exactly like deleting the client node from the linked list. The item list is just like the client list. If current is the node to delete, then …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Reversing an answer

    [Here'](http://www.programmingsimplified.com/c/source-code/c-program-convert-decimal-to-binary)s one way to do it.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in several weird problems in a Windows network

    Have you read [this article](http://www.microsoft.com/security/pc-security/conficker.aspx)?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in remove coming as error "permission denied"

    line 5 is wrong -- notename[x] is a single character and c_str() returns a string. Maybe line 1 is incorrect -- `string notename[10];` which would mean notename is an array …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Read the last modified file from a directory in C++

    duskoKoscica: why are you making this soooo difficult for yourself??? 1. include stdlib.h header file 2. redirect the output the string you put in the system call to a file. …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in class help

    create another class for those two then you can make an array of that class. See the examples posted in your other thread.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in help in arrays

    If you have not yet studied structures then declare two arrays, one for 10 student names and the other for the sections. This assumes the names book1, book2, etc never …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Deleting node from nested list

    You shouldn't have to allocate any new memory -- it's alredy there, just overwrite the fields of the pointer that FindToAdd() returns. I'd also change the name of that function …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Deleting node from nested list

    That looks right, if the intent is to delete the entire client list. To do edits you don't need to delete anything. Just search for the client you want then …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Deleting node from nested list

    To delete the inner list just iterate through the list and delete each node one at a time, something like this: It assumes head->item_data pointer is NOT NULL, so you …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in loto game

    what exactly is your question(s) about how to write that program. You will need to use functions srand() and rand() which generates the random numbers, then save the values in …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Interesting Question / Challenge

    [Here](http://msdn.microsoft.com/en-us/library/aa389769(v=vs.85).aspx) is how to create a process remotely on MS-Windows. I don't know about \*nix.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Interesting Question / Challenge

    What event is supposed to cause the program to run? If the program only needs to run once or twice a day then use the operating system to schedule it …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Adding Database file into my Application

    It's just an ordinary text file. I assume you already know how to read text files. You will know the format of the file because you will have to tell …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Adding Database file into my Application

    you can't just read from it like an ordinary text file, because it isn't. The smallest SQL compliant database I know of is Sqlite (click [here](http://www.dreamincode.net/forums/topic/157830-using-sqlite-with-c%23/) and [here](http://www.sqlite.org/cvstrac/wiki?p=DocumentationSqliteNet) ) Even …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Adding Database file into my Application

    The file will do no good without the server. The target computer must have the server software or the server must be on a computer that the target computer can …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Nested singly linked list

    Function AddClient() doesn't return anything. Either make it return something or make it a void function. Try this, where I've remove redundent code. Try this version, where I removed redundent …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Bad Grammar

    > "vous" and "tu" Never heard of either -- are those English words?? >"while / whilst" I don't recall ever using or hearing the word whilst. And "whom" is rarly, …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in string to ascii

    >Will the while loop get confused by multiple NULL characters No, it will stop when it encounters the first NULL character, all others are ignored. >will fscanf be able to …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Bad Grammar

    "The vast majority" is another such phrase I dislike, although its more common today than it was 20 years ago.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Bad Grammar

    You might like [this from Victor Borge's](https://www.youtube.com/watch?v=lF4qii8S3gw) standup skit about phonitic pronunciation.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Numbers in identifiers?

    >Is there any reason I should rename it to eulerTwo? You can, but it's not necessary. There is nothing wrong with using numbers in function names -- it's actually pretty …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Looping Using Recursion

    >Some implementations can grow the stack to use all available memory, same as the heap But it is still limited -- there is no such thing as an infinite amount …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in ARROW KEY SCROLL HELP

    @Gensk: You didn't say what operating system you are uing. The sugestion by deceptkion works only on MS-Windows. If you are using \*nix then you will have to do something …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Read the last modified file from a directory in C++

    You can call the basic linux command from within c or c++. For example you could use pipe() to run the ls -rt command and instead of displaying the results …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Developers Say 'Hello World' to IT

    IBM -- It's Better Manually
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Possible Bug?

    I also had failed submit issue the other day -- I pressed Submit and nothing happened, so I pressed it a couple more times. I left the thread for a …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in fgets FAIL to read first char of string

    You can just remove initArray() because it's not necessary to initialize the string before calling fgets(). And there's a much easier and quicker way to do it too -- `memset(word1,0,sizeof(word1));`
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Writing data from binary tree to file in language C

    The only thing I see wrong with line 19 is \*\*file\*\* insted of just file.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Possible Bug?

    I thought normal behavior was to hit Refresh after Submit. I seem to recall this behavior has been discussed before.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Possible Bug?

    It has been happening probably every since you switch from vBulletin to this. I always thought it was just a normal behavior of the editor you use.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in fgets FAIL to read first char of string

    what is inarray()? You have too much duplicate code in that function. This is the recommended way to write such functions, not that it does not call feof() at all, …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Created Jokes

    A cat has 9 lives -- what has more than 9 lives? Answer: Frogs because they croak every night. (Duck Dynasty)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Possible Bug?

    I've noticed similar problems quite often, so I got into the habbit of refreshing the page after pressing the "Submit your Reply" button. If I don't sometimers the edit I …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Writing data from binary tree to file in language C

    You need to post the structure. Is left and right pointers to ITEMTREE structures? > but proposed code notice failure You need to be more specific about the erors. compiler …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Read the last modified file from a directory in C++

    Since you already use Linux you probably have use ls from the shell many times. Look at the man pages for ls and you will find all it's options. I'm …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in New Life after Death Theories

    Not to mention the scientific tests done on Ghust Hunters TV show :)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Read the last modified file from a directory in C++

    run the ls command and redirect the output to a file or pipe.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in findfirstfile

    You can also do it with [_stat()](http://msdn.microsoft.com/en-us/library/14h5k7ff.aspx)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Using static & extern

    >@mike so simply by using static in every function we mean that we want this variable to be related to the function only No -- variables declared within a function …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in string

    You should just delete lines 24-34 and do everything within the same loop that begins on line 17. On line 21 you know you've found a vowel and the i …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Linked list problem

    You are using way to many unnecessary parentheses and duplicate code For example dodaj() can be simplified like below, where the allocation is only done once at the beginning of …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in string

    I wouldn't use strtok(), just modify the code previously posted to keep track of the position of each vowel, the loop's i counter is the location within the string. Now …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in string

    You will probably have to use two arrays, one array for the letter and within that an array of each location number. Something like this. struct location { char letter; …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in string

    That's a microsoft compiler thing -- it supressed warning number 4996, which is a warning about deprecated functions. Just delete that line if you use another compiler. > how can …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Count the number of text numbers in a txt file using c++..

    Is there always just one number on a line, or can a line have more than one number? If only one number, then just count the number of lines in …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in gotoxy function in turbo c++

    gotoxy is indeed a text mode function. You didn't say you wanted graphics mode so I assumed you wanted text mode. My error. I don't know enough about graphics.h to …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in c++ movie rental sysytem

    what about it??
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Problem with c programming!

    He doesn't have any choice but to use that formula, his instructor gave it to him.

The End.