• Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C Program - to accept 'n' strings from user and store it in a char array

    >int len = strlen(z[i]); >for(j = 0; j < len; j++) All `strlen` does is search for a `'\0'` character, so it's more efficient to simply do that yourself as …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C Program - to accept 'n' strings from user and store it in a char array

    You're testing `z[i]`, which is an array rather than a string. Try this instead: for (i = 0; i < 3; i++) { for (j = 0; z[i][j] != '\0'; …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C Program - to accept 'n' strings from user and store it in a char array

    Because Daniweb has rules. Specifically: "Do provide evidence of having done some work yourself if posting questions from school or work assignments" Your problem is clearly a basic exercise intended …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Get paid to answer questions

    > I'd be of a mind that if somebody was prepared to pay for a service and the task was not unreasonable for the amount offered, then why not? Money …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C Program - to accept 'n' strings from user and store it in a char array

    Yes, the vast majority of us can help. But we won't do it for you.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Get paid to answer questions

    I like the idea in concept, of course the details need to be hammered down carefully if money is involved. In particular I'd like to see a handful of things …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in animated gifs

    IIRC, provided it meets the size restriction, animated avatars are not a problem. However, the size restriction is pretty low, so it may be difficult finding a suitable animated avatar.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Am i vulnerable, Where?

    > Got some more help from a friend and he talked about "unlink technique" Sounds like non-standard terminology. Did he go into detail about what that means?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Junior C# Interview tomorrow Advice please

    > Not if they want a job, a lot of the answers on skillgun are wrong, and the questions are barely in english. Actually, that's perfect for the majority of …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Memory de-allocation of array of pointers

    The second is more correct. When you say `new[]`, you should use `delete[]`, when you say `new`, you should use `delete`. They can't be mixed and matched.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in User profile data line item for tutorials

    There already is one, provided the member has submitted an approved tutorial.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in pointer question of function

    The first function returns a pointer to `char`, the second function returns a `char`. The function itself isn't a pointer in this case, the return value is.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C++ vs Java for system programming

    Can Java be used for systems programming? Yes. Is it the best choice? That somewhat depends on the system, but I'd lean toward it not being the best choice.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Anyone in for homeopathy?

    > I think that warning labels advising against standing on the very top step of a ladder are completely unnecessary. Or the warning that the package may contain nuts on …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Files

    > my problem: is that the values are showing up in the file after excution What behavior were you expecting?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in does not implement interface member error

    Your interface methods don't match the implemented methods of the same name. The implementations have three arguments, the interface states that those methods should take no arguments. Therefore, these are …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Define static

    The method belongs to the class and not any single instance of the class.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C Pointer problem, print out done wrong,

    At the end of the first loop, `ptrBr` points to a memory location *before* `br[0]`. You need to either increment `ptrBr` or reset it: #include <stdio.h> int main(void) { int …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Anyone in for homeopathy?

    Agreed that homeopathy is largely crap. If you take the stuff that's been proven both through the ages and through science to be effective (honey, garlic, etc...), the collection of …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in User Input: Strings and Numbers [C++]

    Your pointer doesn't point anywhere meaningful. Allocate some memory to it first. Also, there's a [different getline](http://www.cplusplus.com/reference/istream/istream/getline/) for C-style strings that's a member function of `cin`.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in system.numerics namespace not recognized

    > See my original post -- it doesn't likeImports System.Numerics Imports only opens up the namespace for you so that you don't need a fully qualified name every time. You …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in system.numerics namespace not recognized

    The target framework for the project needs to be 4.0 or higher. With Visual Studio 2013, unless you changed the framework when creating the project, it'll be 4.5. Also, be …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in why switch to windows 8

    > The point is that Micosoft originally tried to force the Metro screen as the default and I believe that this was a boneheaded decision which they have been steadily …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in code correction

    Assuming the code is a snippet and not complete, there are only two direct errors (braces instead of brackets on line 6 and `endline` instead of `endl` on line 12). …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Unexpected Results From Mixed Datatype Division

    `num3` isn't a `float`, try using the correct specifier in `printf`.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in queue implimentation

    What do you mean by "multiple linked"?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in why switch to windows 8

    > Why couldn't they have made the improvements under the hood and left the interface alone? Clearly because of Microsoft's new direction into tablets and consistency across platforms. If the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in plz help

    Please read our rules concerning homework. We won't do it for you, and require some proof of effort before providing help.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Most efficient way of writing to a *.txt file

    File operations are inherently slow, relative to in-memory operations. I'd probably go with writing smaller blocks than dumping all of the file contents to a line for a single WriteAllText …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in why switch to windows 8

    > Is the Windows 8/8.1 interface significantly better than Windows 7 or is it just different? Therein lies the rub. "Better" is subjective. As a desktop OS, I would describe …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in why switch to windows 8

    > I installed Windows 8 and it's interface is so unfamilier. That seems to be the prevailing opinion. However, it strikes me as a little odd that people are so …
  • Member Avatar for deceptikon
    deceptikon

    Edited what is Internet Marketing?

    Dear Sir, please provide the information about Internet Marketing? Regargs
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Spacing?

    Since your items don't contain spaces, it's irrelevant, but I'd start with something simple and straightforward: richTextBox1.AppendText(Environment.NewLine + "upgrade cottage " + listBox2.SelectedItem.ToString().Trim());
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Spacing?

    Please read my previous post again. I *did* answer your question.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Spacing?

    Add a space to the string literal: "upgrade cottage " + listBox2.SelectedItem Will the selected item ever have a leading space? If so, you can add a condition to work …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Invalid argument supplied for foreach

    I wonder if that rogue semicolon one line 1 has anything to do with it. ;) My recommendation in general is to always use braces around a compound statement to …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in problem in accepting string via gets function in C

    > how can I quote a respose? There a question mark button on the editor that will take you to [this page](http://www.daniweb.com/community/syntax) describing our Markdown formatting. You can also use …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in A pointer is an iterator, or an iterator is a pointer?

    Iterators were designed based off of pointers, so a pointer is a form of iterator, but an iterator isn't necessarily a pointer.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in convert a number into capital word

    That doesn't make it any less of a homework assignment according to our rules.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in [programming practice] using const when needed vs always use it

    > I don't see people use const this way, adding const everywhere they can, let alone const pointers. Is there a reason for it? Probably best to ask the author …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in convert a number into capital word

    Please don't just post your assignment. Also post an honest attempt along with the difficulties you're having as proof of effort. Daniweb is not a homework service.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Start at the bottom or top rung?

    I've taught both ways, and high level to low level works better. Going the other way just results in an excessive amount of prerequisites to do anything meaningful, and the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in why switch to windows 8

    > I tried for over a week to get office 2010 to work on win 8 and every attempt failed. Finally bought office 365. That's seems odd, that a recent …
  • Member Avatar for deceptikon
    deceptikon

    Gave Reputation to naveen1993 in open file

    With reference to ur query, FILE*fp; int fopen(fp,char*filename,"w"); fp is FILE*, char*filename is filepath, w is file mode i.e., read, write, read and write.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in why switch to windows 8

    If you're happy with Windows 7, there's no need to upgrade. It's really that simple. Even folks who are still on XP choose to stay despite it no longer being …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Please Mark as Solved.

    > maybe @Dani could add a 'Please Mark as Solved' button that users could click to notify the owner of the thread that they should mark it as solved. The …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in please helpme i have small doubt in post and pre increment operators

    > jj++++j*j-- i got the answer 400 but how it is ?help me The answer you get is irrelevant since the entire expression is undefined due to modifying `j` multiple …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in reservation system

    Isn't that why restaurants have only a single person seating diners at any given time? If there's only one gatekeeper, concurrency isn't at issue.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Testing if the datagrid is empty or not and adding the data to database

    > if (POSDGV.Rows[j].Cells[2].Value == null) It really depends on how you're storing null values. Likely the check will fail because the cell value is actually DBNull.Value or simply an empty …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Do you think I have an obsession or a passion with tech and software?

    > Do you think I have an obsession or a passion with tech and software? Passion, yes. Borderline obsession too. Not that there's anything wrong with it as long as …

The End.