• Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Where to get PI?

    > Try to see it in limits.h It might be there, but if it is, it's a library extension unique to your compiler.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in findfirstfile

    > because the MSDN program still uses errror.h, and hendels the error in old fasion way! You mean `errno.h`? `_stat` and `FindFirstFile` are both C-based API functions, so errno and …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Refer to a particular post

    > I said that already :-P I had my post composed and got distracted. You had replied by the time I clicked Submit.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in PLEASE HELP HOW TO DO THIS

    The assignment uses a lot of words for not a lot of work. That's a good thing, because it's very detailed, and all you need to do is put it …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Program - To find the longest word from a sentences

    The trick with this program is defining what's meant by a "word". You can't just take whatever is separated by whitespace and call it good, because that will incorrectly include …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Refer to a particular post

    The date-time stamp on a post gives you a hard link to it that can then be pasted into another post. [For example](http://www.daniweb.com/community-center/daniweb-community-feedback/threads/471397/refer-to-a-particular-post#post2057253)
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C

    Contact the ISO standards committee and submit a request to have your function added. Since that's not likely to happen, you'd be better off creating your own library that gets …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in read file character by character for char and the number set for numbers

    > Why are you using getc? Does it play nicer with numbers than fgetc? They do exactly the same thing. The only difference is that `getc` may be implemented as …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Configuracion Tarjeta Nvidia 720M en ubuntu 12.04

    English, please.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Starting " C "

    > It's nice only if you also like driving a Model-T automobile made 100 years ago. Orwell is the current and maintained build of Dev-C++. If we were talking about …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in reading tab delimited file in C

    > I tested your code, and as it turns out "%1023[^\t\n]" is no different than "%1023s" because with %s scanf() stops converting when it encounters the first white space (space, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in iterating through, and assigning properties, to controls on a form

    A control can be a container for other controls, so such an algorithm should be recursive: Private Sub SetControls(ByVal Control As parentCtrl) If TypeOf parentCtrl Is Label Then ' Set …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in reading tab delimited file in C

    I wouldn't recommend using `%s` unless you can guarantee that the fields won't contain embedded whitespace. Further, you should always use a field width for string specifiers in `scanf` to …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in read file character by character for char and the number set for numbers

    You need to build up the number as digits are read, but not if non-digits are read. The trick is handling input so that you don't miss anything such as …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in hashmap explanation

    I'll also link you directly to [here](http://eternallyconfuzzled.com/jsw_home.aspx). A hashmap by definition is almost surely implemented using a [hash table](http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx), but mapping data structures also commonly use balanced binary search trees …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C program compiles but stops working - infix to postfix

    The debugger is called gdb. A quick Google search for "gdb tutorial" will get you started.
  • Member Avatar for deceptikon
    deceptikon

    Edited image

    hi, My project contains a folder images.One Frame contain Jlabel.I want to display the images (at a time one image) from the folder images to the jlabel.could you please answer …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in New Life after Death Theories

    > What is the purpose of death? Is it an evolutionary trait? If so, why? Our bodies wear out eventually such that old cells can no longer be replaced with …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Random Algorithm Do's and Don'ts?

    > I've noticed that when generating random numbers they repeat. It sounds like you want a random shuffle rather than a random selection. The former will give you a randomized …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Most important things in C# Sharp

    > Example, I started off with console apps, I became comfortable with it. > I then started playing around with forms, the code stayed the same. > Then i created …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in New Life after Death Theories

    My finite brain has no trouble with it: we die, we're gone. It doesn't take much intelligence to realize that the most likely scenario is that this life is all …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C++ two dimentional array

    Please do your own homework. We'll help you work through specific problems in your code or understanding of the question, but won't do the work for you.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Create Array Using Pointers

    > `pointer= new T;` This allocates *one* instance of `T`. To create multiples, use the `new[]` syntax with your size: pointer = new T[size]; > `pointer++;` Very bad idea. You …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in idea of a simple project?

    Luckily for you, a lot of students try to cheat on these forums by posting their homework assignment. Just look through those to get ideas, but please don't post your …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Anchoring form

    How exactly do you want the child anchored? Absolute position? Relative percent?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Most important things in C# Sharp

    "Expert" is a tricky word. I wouldn't expect anyone to be an expert in *one* of those, much less all of them. However, being competent in all of them or …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in finding a element in a vector using std::find

    > Your issue may be that std::cin >> name; does not remove the newline char from the resulting string. The `>>` operator is delimited by whitespace, so it would never …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in New Life after Death Theories

    An interesting, if optimistic, hypothesis.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Code Posts

    Code highlighting doesn't run after a post is submitted. If you reload the page, your code will be displayed with highlighting.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in What does C stand for?

    Currency. `{0:C}` says that the first argument after the format string is to be formatted with the standard currency formatter.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in c++ finding same record

    Sounds like a good place to use a map: vector<string> v = { "Jan2013", "Jan2013", "Jan2013", "Jan2014", "Jan2014", "Jan2014", "Jan2014", "Feb2014", "Feb2014" }; map<string, int> freq; // Loop through the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in TabControl

    Also of note is that user controls themselves have overhead in terms of maintenance due to the boilerplate required. It's not much, but enough to give one pause for small …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in function call missing argument

    Just the function or member function name won't do, the argument list is required even if it's empty. For example: obj2->Landline(); // Notice the parentheses Also note that you'll immediately …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in how to convert from vb.net to C# ?

    While there might be a tool out there to do the conversion, I wouldn't trust it. The appropriate way is to know both languages and convert manually. However, since assemblies …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in using std::find with vector objects

    > Thanks for your kind advice and suggestion but may I know why does the error shows For the same reason you can't say `classObjects("foo") == classObjects("bar")`. User defined types …
  • Member Avatar for deceptikon
    deceptikon

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

    > I'm not too sure about that -- the OP never said which one he/she wants. I can't divine what the OP wants, but the first post clearly *said* items: …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How do I generate a non-distorted thumbnail

    The thumbnails still take up contiguous memory. Usually when you get an out of memory exception in image processing, it's due to fragmentation. Have you considered using a window of …
  • Member Avatar for deceptikon
    deceptikon

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

    > Well if I think for just a second the size of int is possible to obtain by sizeof(int). True, but how do you know that the `sizeof(int)` bytes you …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in using std::find with vector objects

    The default `find` uses relational operators overloaded by the contained type (`operator==` to be precise). If you don't have those, you can either add them or use `find_if` with a …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Windows "Threshhold" a possibility?

    So...Windows 8.1 with a proper start menu? Running Metro apps on the desktop seems interesting, but not really a make or break feature. Having the two IE versions talk to …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Console Application Redim Array

    > ReDim Preserve marks(10) is important to be written here? Preserve retains existing values in the array, so if you want to keep the values of indexes 0 through 2, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How to create Trial

    I'd probably go with a simple licensing mechanism: using System; using System.Globalization; namespace BasicLicense { public class License { public string ProductCode { get; set; } public DateTime ExpiresOn { …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in New Category for Software Development

    Just post under Software Development with a tag for Microsoft Dynamics AX. :) Dani wants to move toward more of a tag-based system anyway, so new categories are unlikely.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Iterator Method for Binary Trees in C

    [This article](http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_bst1.aspx#traverse) may be helpful. It describes both recursive traversal and an iterator based design. > But I've no idea how to implement it in the program. You mean calling …
  • Member Avatar for deceptikon
    deceptikon

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

    The good news is that your choice of database largely doesn't matter if it's compatible with ADO.NET. The Entity Framework has a database factory that will create the appropriate objects …
  • Member Avatar for deceptikon
    deceptikon

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

    Since you have free options of SQL Server, I see no reason to rely on Access databases. They're too restricted to be worth it most of the time. > p.s: …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Passwords and encryption question

    > But why do some websites insist that my password HAS to have letters AND digits? Mindless tradition, probably. For the longest time the bare minimum password policy was at …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Passwords and encryption question

    Because '!' and '}' have to be included in the try set. I'll put it a different way. Why is this loop? for (int i = 0; i < 27; …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Passwords and encryption question

    Put simply, the larger the character set used, the longer it takes to do a brute force crack of the password. If you just use letters, or even just lower …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Forums Problem in registering

    Sounds like a CAPTCHA failure. You should be able to refresh the images to get something you can easily recognize. CAPTCHAs are used to restrict registration to actual humans and …

The End.