• Member Avatar for Ancient Dragon
    Ancient Dragon

    Began Watching Password Generator in C

    Hi all... I've been asked to write a password generator in C for a project. the guidelines are very vague and all I've been told is: Password must be 9-15 …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Password Generator in C

    Well, maybe I didn't. In any event, it's identical to the others. `33 + (rand() % 15)` 15 because there are 15 different symbols that appear in consecutive sequence in …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Password Generator in C

    yes, I already posted an example of it.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

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

    I'll bet there aren't very many birds flying around either :)
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Getting length of an unknown file for an array

    If your goal is to find out how many numbers are in the file then you can't use the method I suggested. But if you want to file out the …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Why we should use Sql or Access?

    >MSSQL is no longer the behemoth it used to be and is actually very fast now. I was referring to SQL-compliant databases in general, not a specific one.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Keylogger

    Delete those line, they are not valid c or c++.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Created DaniWeb email accounts

    Is it possible to get <myname>.daniweb account?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Password Generator in C

    you should call srand() at the beginning of main() so that rand() will return a different set of random numbers each time your program runs. `srand( (unsigned) time(0) );`
  • Member Avatar for Ancient Dragon
    Ancient Dragon

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

    It's snowing heavily here today, started last night. There is about 6 inches on the ground and still snowing. Temp is good though, only 23F.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Password Generator in C

    >I hope its an acceptable way of doing it. Yes, you have exactly the correct approach.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Why we should use Sql or Access?

    >what about storing data in a txt file with our own rules? SQL is not the only kind of database -- in fact SQL can be very very slow when …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Keylogger

    >Can someone please rectify the mistakes in the following code? What specific problems?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Why we should use Sql or Access?

    Why would you even want a cracked version when you can get it free (Express version) from Microsoft?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Password Generator in C

    >'1' - '9' + 1) Wrong -- that will produce a negative number `c = '0' + rand() % ('9' - '0' + 1);` You're missing requirement to generate at …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Reply via email

    Test reply.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in if else C

    what compiler are you using, and what version of windows?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Reply via email

    Oh, I didn't realize there were two threads with the same title. But it appears to have worked ok when replying from desktop.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in if else C

    >why this erorr? What error?
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Reply via email

    > > This is reply from desktop Thunderbird client. > >
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Storing element of a string on Linked List

    You used it on line 5 of your original post so I thought it was already declared somewhere. If not, then pass it as a parameter to the funciton struct …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Pls can some one help to debug this command interpreter

    > it complain during compilation. Post error message and line numbers where the errors occur.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Problem with my conditions

    Is this the same program you posted in the C forum? >It tells me "Ordered comparison between pointer to integer (char to int)" Which line does that error message belong …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Storing element of a string on Linked List

    As you read each line of the file create a node of dict_word and fill in the struct with the information from the line. After that you can add the …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Getting length of an unknown file for an array

    first call seekg() to move the file pointer to the end of the file, then call ftell() to get the file size, allocate a buffer of that size or larger, …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Would you like to live for 1000 years?

    Yes, Dani I think you are right.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Storing element of a string on Linked List

    I'm now a little confused about what it is that you need help with. Do you need help reading the strings from the file, separating them, saving individual parts in …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in What is the best game development C++ tutorial? (I'm on a mac)

    I read somewhere that you need to learn Objective C in order to write games/programs on MAC. I know nothing more than that about it, so I can't answer any …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Would you like to live for 1000 years?

    I saw a sci-fi movie once where people were sacrificed to the gods on their 25th birthday (they were considered too old after that I suppose).
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Storing element of a string on Linked List

    >(word)_#_(year)_#_(definition)_#_(diff synonyms) Huh? Why would you want to input that string??? It would be helpful if you posted the actual text of the first couple lines of the file. >i'll …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Password Generator in C

    >int ch = 33 + (rand() % 126) I posted this 2 days ago! Look at any ascii table, such as [this one](http://www.asciitable.com/). You should know that an unsigned char …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in C++ Books

    Before buying any book read the [reviews at amazon.com](http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords=C%2B%2B%20How%20to%20Program) -- they might save you some money by not buying a useless book. For example: >You are looking at the most …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Password Generator in C

    Sometimes it's better to just start all over (I've done that before too). Create a new program and code what I said before. Forget about the menu for now, just …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Looping Using Recursion

    >But if things are really moving to the "cloud" From what I can see, "cloud computing" is nothing more than distributed computing over the internet. Several programs, such as Folding …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Search name using linked list

    It helps a lot if you learn to use your compiler's debugger, assuming it has one. If yours doesn't, then get a different compiler because yours is pretty useless in …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Search name using linked list

    add() is wrong void add(struct node *newp) { if (head == NULL) head = newp; else { struct node* temp; for (temp = head; temp->next != NULL; temp = temp->next); …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Password Generator in C

    First, write a function that generates a random number between two values. The two values should be parameters to the two function. For example, if you need to generate a …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Would you like to live for 1000 years?

    I don't consider it a fault of the universities for cranking out too many Ph.D.s, but for mankind in general. I don't know, but I suspect the number of Ph.D.s …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in What movie have you seen lately?

    Probably because the lone ranger was a wimp (Eastern lawyer), the movie was more about tonto than it was the lone ranger and was a comedy, not drama. [Don Knotts](http://en.wikipedia.org/wiki/Don_Knotts) …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in How to convert C++ to C?

    Or you could just write your own clrscr() function, it's not all that difficult, just a one line function.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Bad Grammar

    The use of also is ok, but it should refer to something that was previously said. Since it doesn't, then also should have been omitted.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Looping Using Recursion

    > In any case, I still prefer writing well-performing code regardless, even if it's just for the elegance of it. Yes, I agree. Just because programs can be bigger and …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Scilab and C++

    I couldn't find much about it on their web site, but if the libraries have \*.a or \*.lib extension then you just link with it just like linking with any …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

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

    Tolerable -4C (24F) right now -- expecting lots of snow Saturday night, largest snowstorm in over 15 years. Weather casters have said that before but it went around us and …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Looping Using Recursion

    >That "performance doesn't matter because hardware is so good now" argument from the 90s has largely been dispelled in the latest years (5-10 years) for those reasons I just mentioned. …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in What movie have you seen lately?

    The Lone Ranger -- good movie, but nothing like the original tv series from the 1950s.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Can't call VB6 function from C/C++

    I think addressof returns the offset of the function from the beginning of the executable, not the absolute address in memory. [ Here](http://msdn.microsoft.com/en-us/library/office/gg264347.aspx) are some invalid uses of the AddressOf …
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Bad Grammar

    burrr
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Bad Grammar

    [Here](http://miresperanto.com/en/why_so_hard.htm) is why English is to hard to learn.
  • Member Avatar for Ancient Dragon
    Ancient Dragon

    Replied To a Post in Can't call VB6 function from C/C++

    What makes you think the function is loaded at 0x00401B90 ??? Under MS-Windows you never know where a dll or program is loaded and any attempt to guess will most …

The End.