• Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Remove a key in registry

    https://msdn.microsoft.com/en-us/library/122bwwcc.aspx
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Declaration syntax problem , and switch case .

    In general if you're receiving an error, it's best practice to post the error. However, at a glance I see two potential issues, taking into account that Turbo C++ is …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in can't rid of error: 'else' without a previous 'if'

    Allow me to reformat your code in the way the compiler sees it. The problem should be easier to locate that way: #include <stdio.h> main(){ int order; int price=5; int …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in gcc vs code blocks with itoa

    Code::Blocks uses MinGW by default, which is a port of GCC. That said, `itoa` should be available, if I recall correctly. Normally I'd ask what your switches are and to …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in pointers question

    I suspect the confusion is the name `p`. You have two variables with the name `p`, which in this case is perfectly acceptable. However, it might be that you're seeing …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in About compiler warnings. Why do folk ignore or turn them off?

    > How about you? Got any good replies like that? The worst is when people assume that because the code compiles (ie. no fatal errors) then it's correct. Oddly enough, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in malloc error checking methods

    First and foremost, you don't need to cast the return value of `malloc`. In fact, doing so can hide legitimate errors such as failing to include `<stdlib.h>`. Second, `sizeof(char)` is …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in ul with malloc

    The comment tells you: "declared as an integer constant of type **unsigned long** int". The UL suffix explicitly tells the compiler that you want a value of type unsigned long.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in logical operators applied to a double

    > This code was coverted from VB by simply replacing the 'And's and 'Or's. One thing to note is that these are not comparable operators. `And` and `Or` are not …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in convert BST into an AVL tree with worst-case O(nlogn) and best case O(n)

    *Technically* the best case is the input tree is already AVL balanced, so the solution is legit from a complexity standpoint. The more practical problem with this solution is it …
  • Member Avatar for deceptikon
    deceptikon

    Gave Reputation to Beingmahendra in I have problem with Link List

    % C# program that uses LinkedList % C# program that uses LinkedList using System; using System.Collections.Generic; class Program { static void Main() { // // Create a new linked list …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in I have problem with Link List

    > This, `malloc(sizeof *new);` should be `malloc(sizeof(Node))`. It can be, but doesn't need to be. That call to `malloc` is correct as it stands, and actually best practice. `new` is …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Am I Qualified Based Off BSc IS & Five Years Experience?

    > Well, I was feeling under-qualified based on what I was seeing out there for available positions. Job "requirements" lie like a rug more often than not, and the actual …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in constructor const arguments

    > What am I missing here? Two things: 1. `Student s(pName)` is creating a variable called `s` via the `const char*` constructor of the `Student` class. I get the impression …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in binary trees

    Congratulations! You've found an inconsistency in terms with binary trees. :) There are actually a few of them, but counting levels is a notable one. As James said, each paper …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in infix to postfix math

    > how would you do the math with the expression? Push any operands. On an operator, pop the number of operands required, then push the result. Repeat until there's only …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Moving Message

    "More vertically" is too vague. Can you provide a sample of what your teacher is asking for?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How malloc will behave internally

    > Will the malloc for ptr2 or ptr3 will allocate the same memory that has been freed by free(ptr1).. Maybe, maybe not. It really depends on the memory manager `malloc` …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in c++ LinkList Implementation

    You have a circular reference in your includes. The easiest fix as-is would be to remove the include for LinkedList.hpp in your LinkedNode.hpp header.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Owner question

    Not a strange question at all, and we got it quite often when the TOS explicitly claimed copyright to any posts made (it doesn't appear to do so any longer). …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Add functionality to accept strings in avl tree

    > how would i need to change this code to accept strings insted integers in avl tree? Agreed with David W. Though the function seems entirely unnecessary. It's generally better …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in window 10 is good or not?

    From my experience thus far, Windows 10 is fine on a desktop, but frustrating on a tablet. In particular, the Edge browser is too incomplete to be usable at this …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in warning: passing argument 2 of ‘type_specifier’ from incompatible poin

    `program` accepts `big_boy_counter` and `lower_bound_of_big_boy_counter` as `int*`. You then pass the *address* of those to `declaration_list`, which makes them both `int**`. But `declaration_list` also expects `int*`, which means you're passing …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in passing the address of an array of strings to a function

    > @deceptikon I'm using C not C++ :(. Sorry to disappoint, but you're not. C does not allow multiple functions with the same name, overloading is not a feature current …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in passing the address of an array of strings to a function

    The array to pointer conversion you're probably familiar with only applies to the *first* dimension of an array. The only solution here is to dynamically allocate the strings as well …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C compile error Variable-sized object may not be initialized with char * pt

    > I'm not sure of the rationale behind not allowing VLA (variable length array) initializers It's a combination of not complicating the compiler and not hiding an extremely volatile runtime …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Best way to remove entity framework from a project

    > It could be the Framework or it could be how it has been implemented by my predecessor It's the latter, almost surely. The Entity Framework most certainly has its …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in infinite recursion

    > This is C right? With any luck it's C++ as best practice in C is to specify `void` as the parameter list. But yes, there's no termination condition in …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C: Books recommendations

    > What books would you recommend for data structures and algorithms in C language? I often recommend Algorithms in C by Robert Sedgewick. The concepts are well written and researched, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in What is your preference when checking boolean values in If statements?

    > Any reason why you would do it one way over the other? Three words: don't repeat yourself. Saying `if (x == true)` is redundant. The context alone tells you …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How does code porting work?

    > The problems I guess would be navigating from a language with a certain feature to a language without a certain feature That's one problem, yes. Another would be choosing …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Is OpenSource really that secure?

    > or cracker are going to crack it easier, steal people's data and people will start disregarding software as unsafe. Here's my take on it: insecure software will be insecure …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Are discussions hard to follow?

    > I'm probably a glutton for punishment, but are threads just a bit easier to follow now? ![thumbsUp.jpg](/attachments/small/3/e53d0b7ca442fd93a4fa625481099227.jpg "align-left")
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Are discussions hard to follow?

    'Lil bit, yeah. It's not a deal breaker, just something that takes getting used to. * I think the signature is out of order. You see the post content first, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Atoi help

    You've found one problem with `atoi`. Please read [this](https://www.daniweb.com/software-development/c/threads/465515/tribal-knowledge-atoi-is-evil) for more.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in segmentation fault in hash implementation

    > `unsigned long hash(char** str )` > `char *str[9]={...` > `key= hash(str[i]);` One of these things is not like the others. If you're not compiling at the maximum warning level, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Difference b/w ++variable and variable++ in loop

    > I think this is an old micro-optimisation thing that is irrelevant with modern compilers. It was irrelevant even in prehistoric times too, unless you were working with one of …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How to insert,update,delete data in datagrid view using c#(inline)

    I'd start by putting the database update logic into a few key events for the DGV, such as `Validating`. But keep in mind that with a real-time update, you need …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Deleting a file that raise exception " is used by another process"

    It's probably a timing issue. I've encountered similar issues when things happen too fast between closing the file and trying to delete it. A workaround would be to retry the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in DaniWeb going into read-only mode

    Does this have anything to do with James' new house? Are we hosted in a grungy suburbia basement!? ;p
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Was this task even more difficult in the early days of C in 1970?

    > What do you think? I think you have an overinflated opinion on the power of OOP. C still doesn't have OOP*\[1\]*, and it remains a very popular language. Further, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in General property

    You just said exactly the same thing, with the same non-conventional term. Show me a code example of what you think a "general property" is. Then I'll tell you what …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in General property

    Example please. While I can guess what you mean, you're not using conventional terms.
  • Member Avatar for deceptikon
    deceptikon

    Edited need help c++

    hello i have an adjancy matrix for example [0] 0,44, ( 0 : node / 0,44 it neighbors) [1] 1,3,12, [2] 2,33,40, i need to remove all of the neighbors …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Password

    > Actually, in C++, you can use C functions, or C++ stream functions, including doing things like turning off echo in input streams, so you can do the mapping of …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in socket

    Not enough information. Sockets have an easy and obvious way to set the port number, so I can only assume you're asking for something more involved.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Update Varbinary(max) column with Null value

    Try using `System.DbNull.Value` instead of `vbNull`. `vbNull` doesn't represent what you think it represents. ;)
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Beware of the bunny

    While I haven't personally hit that case (I'm neurotic about my own check-ins and thoroughly review anything I take from elsewhere), I *have* seen it with libraries. We had a …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Password

    > I always thought I had been programming in C++ :/ You have (probably). But it gets interesting when extensions and libraries are thrown into the mix. Here are the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in TDD C#

    You could just ask the questions and see what answers you get. ;)

The End.