• Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Parsing angle strings problem

    I'd just escape it: string[] items = str.Split(new char[] { '°', '\''});
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in path name is not legal;

    A blank string is indeed not a valid path. Either you need to account for the possibility of a blank string and act accordingly, or ensure that the blank string …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in So why is Databases under Web Development?

    Databases are pretty fundamental to both parent categories, and while I can guess why Dani put it under web development originally, our current push for tagging rather than categories means …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Default in switch

    > can it be omitted in this case? Yes, a `default` case can be omitted if you already cover all of the possible cases, or not executing any of the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in PLEASE help me with this Turbo C code

    Experiment with the following, and it's relatively easy to derive a solution by breaking down the number in a loop: #include <stdio.h> int main(void) { printf("%d\n", 1234 % 10); printf("%d\n", …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in PLEASE help me with this Turbo C code

    `%` is the remainder operator. It performs divison and returns the remainder, so `i % 10` only returns 0 when `i` is divided by 10 evenly.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in PLEASE help me with this Turbo C code

    You're thinking about it too hard. Just loop from 1 to 100 and add 10 at every multiple of 10 after updating your sum. for (i = 1; i <= …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in What am I missing?

    > if the str were to be an array of two dimensions, eg. str[][] format how would it look like? In a function declaration, only the first dimension size can …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Jagged Array Problem

    > DATA[0] = new int[100]; //this works Yup, as it should. > DATA[1] = new int[100][5]; //but this don't Of course it doesn't, because you're initializing an `int*` with an …
  • Member Avatar for deceptikon
    deceptikon

    Edited Decode Plz Files please Decode

    Decode Please REMOVED
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in discusion

    > A language expert Mr. ABC objects the designers of C++ on the bases of following two arguments I suspect this 'language expert' doesn't actually write code. Orthogonality is an …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How to Adjust to Coding Standards?

    It kind of depends on the parts you're finding difficulty with. If you can be more specific, I may be able to offer some advice. Though it's mostly just buckling …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in pointers

    Yes.
  • Member Avatar for deceptikon
    deceptikon

    Edited Help me out solving this Java Program

    Modify the previous program to read in a list of floating-point values. The end of the input is indicated by the user entering a sentinel value -999. The program will …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How to delete record from Access Database

    The command looks dicey to me. What is 'test'? If it's a variable, the string is constructed incorrectly: "DELETE FROM just WHERE folder = '" & test & "';" If …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in storing passwords, keys, etc

    Typically modern systems will use a cryptographically secure one-way hash to store credentials. Provided the password is strong, coupled with judicious salting, it can be quite difficult to break given …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Emptying picturebox

    > saying File not found exception was unhandled Okay, what's `a`, and how have you populated/verified the FileName property? Clearly it doesn't refer to a valid file, so you need …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How to make a tool to remove tempoary files from computer using C#.net?

    Is this just for practice, or is the disk cleanup utility that comes built into Windows not satisfactory?
  • Member Avatar for deceptikon
    deceptikon

    Edited An error occurred while parsing EntityName

    Asp.net c# xml RSS to sql insert. An error occurred while parsing EntityName. Line 36, position 58. Help XmlDocument ReadInDocument = new XmlDocument(); ReadInDocument.XmlResolver = null; ReadInDocument.Load("XML ADRES"); foreach(XmlNode node …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Write a function to swap two values using pointers

    But spamming your blog is a good reason, right? ...Right? *sound of crickets* ;p
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in how to use Struct as a Database for a phonebook

    You need a data structure that can hold anonymous (unnamed) objects of the `struct`. For an unknown number of records, I'd suggest a linked list. Here's something to get you …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in University

    It's generally frowned upon since reverse engineering has historically been used for black hat purposes. Further, due to some sticky legal restrictions, I can easily see it being troublesome to …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Decode Plz Files please Decode

    What is this and why do you want it decoded? Against my better judgment I'm giving you the benefit of the doubt rather than closing this thread given your posts …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Emptying picturebox

    When a picture box is empty, the Image property is null. I'd wager that however you're saving the data doesn't take into account that the image might be a null …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Feeling demotivated

    > The issue is all the programs I'm making at the moment are boring, they don't serve a purpose really so it's just learning that is the problem. I understand …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C: Find the longest word in a string

    You only update the longest word when it's longer than the current word. If you want the last instance of the longest word when there are multiple instances having the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Remembering Dave Sinkula

    Dave and I go way back, from cprogramming.com circa 2000 to flashdaddy (now entropysink, IIRC), and Daniweb. The banter and sharing of knowledge was top notch every time. :D I …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Feeling demotivated

    The bad news is that if you're not digging it this early, hardcore programming probably isn't for you. Casual programming can remain fun, of course, but any push into serious …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Is it moral to switch from one Q&A to another one

    > Should I be ashamed of myself Certainly not. I spent a number of years on cprogramming.com before moving to Daniweb. The choice was obvious: cprog had a lot of …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Member of the Month: nominations please

    How about a retroactive featuring of Dave Sinkula, sort of as a memorial to a good friend and a great member? Obviously there can't be an interview, but I think …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in 2d Array printing gone wrong!

    To answer your immediate question, `printf(" %d",ocean[ROWS][COLS]);` should be `printf(" %d",ocean[r][c]);`. The former is flat out wrong in that officially `oceanOne[10][10]` does not exist. In practice it does for your …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Replacing the for loop, using extensions

    > Also watch out @deceptikon, there is already a ForEach method on List<T> Yup, and *only* `List<>`, which is why the extension method is beneficial. ;) > I don't know …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Replacing the for loop, using extensions

    Hmm, I'm not sure I see the benefit in this case. Though variations on `ForEach` are relatively common. As an example, I have an extension method for `ForEach` over an …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in WINDOWS 7

    ...
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Why does Windows XP refuse to die?

    > As soon as i put 7 on im lagging all over the place!!! XP also had significantly smaller hardware requirements for responsiveness. Example, you could get away with 512MB …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Run time eror

    It's basically telling you `CustomerTBLs` does not exist under the `dbo` schema. My first step would be to carefully check spelling.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How to create a setup version of the application?

    It pains me to recommend [WiX](http://wixtoolset.org/), given that the learning curve is so high. However, if you want a free option that's not gimped, I think it's the best one.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Feedback

    > How much everyone of you has spent on daniweb.com??? I couldn't begin to guess how much time *everyone* collectively has spent. ;D Since 2005 I'd wager my time spent …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How to store users' info in a network app

    I'm not sure I see the benefit of P2P rather than having a controlling server if you're looking at having secured user access (since you mentioned a password). Sure, you …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Is SEO Unethical?

    > To me, the best type of SEO is popularity. The more popular your site is, the higher ranked you would be (based on backlinks, etc). Indeed. But you're neglecting …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C Progarm to compare two text files

    > of course i will read both of papers, and obviuosly i will know the diffrence where it is. That's not enough to write a program. You need to break …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Storing and saving data from sql database

    > Would that not lead to more calls to the db which will affect performance? This question suggests you're either doing more than you've said with the database, or there …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Need help how to use method of the object

    You change your class so that it's possible. As it stands, the interest can only be set from within the class.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in how to use * to appear as password character in c++

    Since you're working with raw keyboard data, there's more work to be done than simply calling `getch` and printing the mask character. You need to recognize a line feed starter …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Need help how to use method of the object

    InterestRate has a `private` setter, so it's not accessible to callers. AddInterest is a method with no arguments, so the correct call would be: ((DepositAccount)obj[1]).AddInterest(); However, since your interest rate …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in become a reseller or create my own software

    The big question is whether you can get into the industry with a completely new application. If other companies are so far entrenched that it would be very difficult to …
  • Member Avatar for deceptikon
    deceptikon

    Edited Difference

    How do C and C++ and C# differ
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Difference

    At this point I'm sure your goal is to stir up shit. Thread closed.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Difference

    I like how you carefully worded the question to make us all look like assholes. Obviously the preference and normal behavior is to help, *within reason*. Ridiculing one's existence, as …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Difference

    > wasnt this site meant for learning It is. But some effort is expected on your end. Asking easily searchable or vague questions and expecting no snark in return is …

The End.