• Member Avatar for deceptikon
    deceptikon

    Replied To a Post in System.Windows.Forms

    > It is not common to use a messagbox in a console application, that's why the reference to Forms is not included by default. A library project doesn't reference `System.Windows.Forms` …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in please help to understand

    > I am missing something in pointers? Yes. Pointers have both a value and a type. The value is the address you're talking about, but the type says how you …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in please help to understand

    `p` is a pointer to an array, not a pointer to an element of the array. You'll need to dereference the pointer, then treat the result like an array: printf("%d\n", …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Use of Unassigned Variable Error, but the Variable is Assigned

    > I hadn't built any fault tolerance in. Not a good habit to get into. "What if this fails?" or "what if the user doesn't enter what I expect?" are …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C++ Map Iterator - Order of Iteration

    > For example, if key 0 contains a vector containing a b c d and key 1 contains a vector containing 1 2 3 4, would there be any way …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in recursion

    I want some questions that aren't hopelessly vague. But apparently getting what you want is a rare occurrence. Can you be more specific?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in how to bind value from one database to combobox

    Rather than bind the combo box values directly to your table, built a list in memory with the contents of the table and any other extra values you want. Then …
  • Member Avatar for deceptikon
    deceptikon

    Edited C: Find member of sequence

    Hi. I need help with the following C program: How to print first member of sequence so that condition `|a(n)-a(n-1)|<EPS` is true, where *EPS* is a random input precision (double …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in "no instance for overloaded function"

    > Which "external tool" ? The one you created. That whole process was to make a new external tool to cmd.exe and link it to the output window.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in pack the application

    Yes. Depending on the version of VS, you may have a setup project available either built in or from a plugin. Otherwise, something like InstallShield LE, InnoSetup, or WiX can …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Using map iterator with vector nested into map

    Please post the whole of your relevant code. My guess would be the counter is being incremented incorrectly, or the condition of the loop doesn't check the counter the way …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in "no instance for overloaded function"

    > Trick didn't work, it opens in cmd.exe, not in output window :| It works for me. The "trick" might be version dependent. I tested it on Visual Studio CE …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Using map iterator with vector nested into map

    The `auto` keyword is compiler magic from C++11 that interprets the type of a variable from its initializer. It's not a dynamic type or anything, so as an example if …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in class and examination scheduling system

    Wow. Just...wow.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Using map iterator with vector nested into map

    `vector<vector<double> >::iterator` and `vector<double>::iterator`, respectively for the nested loops. Just like you're doing with `miter`, which is why I didn't mention it...
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in "no instance for overloaded function"

    > is there no such thing for Windows? It depends on the IDE being used and how it handles program output. I'd be surprised if there weren't an IDE that …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Using map iterator with vector nested into map

    Forget that you're dealing with `miter->second` for a moment. How would you display the contents of a vector? We know `cout` doesn't have an overloaded `<<` operator for collections, so …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in "no instance for overloaded function"

    > I've never used C++/CLI, but it looks like std::string is a distinct type from System::String and presumably Console::WriteLine only works with the latter as it is a .net method …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Initialization of dynamic memory in c++

    In socratic fashion, I'd ask where does `x` point at the start of the second loop?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in how to properly flush the input stream (stdin)

    > That is a fantastic solution Eh, I'm not a fan of it. It's tied heavily to `fgets`, requires a special buffer that can easily cause name conflicts, lacks flexibility …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in software engineering versus programming

    Please define your terms. I've seen a number of different, conflicting, and overlapping definitions of "programmer" and "software engineer". It's difficult to answer your question without first understanding what those …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in CodeFirst Entity Framework - Where's the database?

    > hes doing codefirst so the code will generate the database That's an unwarranted assumption. Code first doesn't unconditionally generate a database; how you've defined your context specifies what EF …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in CodeFirst Entity Framework - Where's the database?

    Depends on what tutorial you've been following. You can code against an existing database (in which it's your job to create it) or you can code against a new database …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in window form

    > `m==textBox1->Text;` Two things: 1. `m` is declared as `std::string`, while the `Text` property is declared as `System::String^`. The two types are not directly interchangeable. 2. `==` does a comparison, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Dynamic creation of array of strings in c

    `arrayofstr = malloc(9 * sizeof (char*))` is misplaced. Move it outside of your first loop.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Find the path of an embedded resource file

    > Yes, but it is imperative that the method accepts a path as a parameter.. I cannot change it. 1. Get the stream. 2. Create a file from that stream. …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Find the path of an embedded resource file

    The file is embedded in your assembly, it has no path. If you want a file you can work with outside of the resource interface, then consider `GetManifestResourceStream` from the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Registering callback in C++

    [Clickie](https://isocpp.org/wiki/faq/pointers-to-members#fnptr-vs-memfnptr-types) to learn about the difference between a pointer to a function and a pointer to a member function. They're not even close to the same thing.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in "What do you enjoy/like about programming?

    > Do you enjoy programming? If yes, why? I like solving problems, creating something useful out of nothing but an idea, and I seem to be good at it.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in convert image

    Most image processing libraries let you do the work using memory streams. I'd start by looking through NuGet for popular libraries to help.
  • Member Avatar for deceptikon
    deceptikon

    Edited Need help in c++

    hello friends i need help in c++ programe i want to print the diamond of the type shown in picture any one help me in this regards............................ if possible then …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Singleton class issue

    > what about Static functions? What about them? The only similarity is the `static` keyword. > How will you explain that thing? An arbitrary decision by the language designers. Sometimes …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Singleton class issue

    > But I am declaring it in the class right? Yes, but a declaration is not necessarily a definition. In the case of non-const static data members, the declaration is …
  • Member Avatar for deceptikon
    deceptikon

    Gave Reputation to Reverend Jim in Moderators On DaniWeb Becoming Abusive

    This is about an exchange between Shark_1 and me. Upon reviewing what I had posted I want to apologize to Shark_1. I was too hasty in my deletion and I …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in advanced understanding of a struct

    It's not really that advanced, but conceptually, structures are stored and accessed as a punned array with padding between the "objects" to facilitate faster individual access by the CPU (which …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in [Bug] PHP tags out of code formatting.

    Yep, that looks like a bug in the Markdown processing to me. Markdown can be a little tricky when it comes to lists and code blocks. In this case, you …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Digital clock

    ...so you said the same thing with more words, and it's still not enough information. Please post an example of the expected output of this program.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in quicksort

    > Quicksort is implemented in C with the qsort() function. The interesting thing is the C standard doesn't in any way require that `qsort` be implemented as quicksort, nor does …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Code Refinement Help

    I'm unable to reproduce that output with the posted code.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Digital clock

    Not enough information, can you be more specific?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Operations on bits

    > `k = n & andmask;` The [bitwise AND](http://en.wikipedia.org/wiki/Bitwise_operation#AND) will set each corresponding bit to 1 if the same bit in both arguments is 1. Otherwise the bit will be …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Error while passing 3-D array to an function

    > `void print_all(int [][][],int,int,int);` All but the first dimension requires a size. > `print_all(arr[][2][3],degree,row,col);` No indexing is required here, just use `arr` as the argument.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Difference between char and char *

    > char names[100]; - its just a character array which can hold 99 characters and the last one will be '/0' Yup. > char \*names[100]; - All the 100 array …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C strlen() segmentation fault

    First and foremost, the `argv` array always ends with a null pointer, so there's a possibility that either `argv[1]` won't exist, or it's `NULL`. You really need to check `argc` …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in do while and while do loop

    > Wheres as, > > IN C ... > > one ALWAYS needs to return an int value in main, and to code that in explicitly, if the compiler conforms …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in do while and while do loop

    > Not all compilers are so compliant... That sounds reasonable on the surface, but has an undertone of irrationality if you think about it. Where do you draw the line …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in question about fopen

    > And i donĀ“t know why the program returns can't open file. `fopen` sets `errno` on failure, which you can query to find out why. The easiest way here would …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in help so confused

    > im still working on it i was going to post what i have been working on Cool. We'll wait. :)
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Moderators On DaniWeb Becoming Abusive

    We're clearly the devil's spawn, being all objective and fair. ;) I'd wager this complaint has something to do with not being able to differentiate between enforcing the rules as …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in help so confused

    Why are you confused? What have you done? What have you considered? What are you having problems with? Did you try anything before running for help? Simply posting your homework …

The End.