• Member Avatar for deceptikon
    deceptikon

    Replied To a Post in restrictions that appy to class members

    It largely depends on your compiler and switches. C++11 (the latest standard) added this feature, and some compilers prior to that offered it as an extension. Your book is old, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Exception standardization in C++

    > Usually you specify what exception type(s) it may throw. Noting of course that exception specifications have been deprecated because they're stupid. Support for exceptions themselves is still standardized and …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How to find ANCII value in C

    What kind of "help" are you looking for? Daniweb requires proof of effort for homework questions, and I don't see any such proof. Please give it an honest try, and …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in My 2¢

    > I hope that once in a while you visit non-English pages, don't you ? Only with translation unless it's a language I can reasonably read. ;)
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Someone, please help!

    > You can not test two floats or doubles for equality due to possible rounding errors in memory variable. [You can](http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm), but it gets hairy very quickly.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Loan Calculation

    > For working with money, always best to use exact (large) whole numbers. Oddly enough, I *just* chastized a customer for implementing financial amounts as single precision floating point in …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Passing String

    What other languages support is irrelevant, this is C. While I can understand the confusion, that doesn't change the importance of making it clear what's standard C and what's not.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in how to get the middle word of string?

    > actually till now we dont use string::size_type :( Till now, that's what we call learning. ;) `size_type` is the type `string::find` returns, and it's the type `string::substr` accepts.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in how to get the middle word of string?

    Reading the documentation for `substr` and `find` would be helpful, it highlights that the second argument is a count of characters, not a position in the string. `find` gives you …
  • Member Avatar for deceptikon
    deceptikon

    Edited question I am having difficulies with help pls

    I had a programme to write for college in Java. I have missed the class so I won't be getting marked on it but wanted to get it done as …
  • Member Avatar for deceptikon
    deceptikon

    Edited admistrator key

    how can i get free online product key for window 8
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in admistrator key

    > how can i get free online product key for window 8 Discussion of illegal activities is not allowed on Daniweb.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Passing String

    > I think it is possible to do that, only that, the nested function is only been seen within the function in which they are defined. Not in standard C. …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Speech synthesis in .NET, very easy!

    What version of the framework are you running in your project? This library was added in .NET 3.0.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Recommended PC specs for running software application used for programming.

    32 or 64 bit? With 32 bit you have a hard 4GB limit, 3GB and change of which would be usable to applications. For 64 bit that physical limit is …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Good second programming language?

    I'd actually recommend against learning your first two languages simultaneously because you're *also* learning programming in general at that time. Too much information, some of it guaranteed to be conflicting …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Timer

    You might be able to find something on codeproject.com, but for very specific tasks like this it's unreasonable to expect there to be a walkthrough. The most significant part of …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Timer

    Yes.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Blocking and unblocking of part of a website

    Yes, you can do that. The controller that delivers your page can check the date and either deliver the voting page or an error page depending on whether the date …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in What is a delegate?

    Try helping yourself next time. Your question is easy to answer with *any* C# reference. Generally we don't look kindly on what appear to be supremely lazy questions.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bunch of novice going into the world of programming

    You specifically mentioned gaming. While it doesn't hurt to learn web development, it's not directly relevant to your goals.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Allow only positive integers

    When used as an expression, `cin` results in an istream reference that can be used in boolean context to determine its state. `if (!cin)` is basically the same as `if …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Good second programming language?

    Okay, so let's examine why Python isn't doing it for you. Since you seem unsatisfied, why is that?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Asp.net vs mvc

    > But by comparison to ASP.NET IDE development, Mvc requires the coder to have a better knowledge of browser resident languages, - html, css and javascript primarily. I'll have to …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Recommended PC specs for running software application used for programming.

    Those specs are fine, though more RAM never hurts. My dev machine at work has 8GB and my home PC has 16GB. A stronger CPU would be your second upgrade …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bunch of novice going into the world of programming

    C++ and C# are both imperative languages, so if you learn one, learning the other will be straightforward. The goal is to learn logic and problem solving; language syntax and …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Allow only positive integers

    Here's a starting point: #include <ios> #include <iostream> #include <limits> using namespace std; int main() { unsigned value; cout << "Please enter a positive number: "; while (!(cin >> value) …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in 0% sent / Activate Super powers

    The starting point is always the same: pick a language that interests you, and get a trusted resource (such as a book) to learn from. When you have specific questions, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How do I write a C++ program that converts from 24-hour notation to 12-hour notation?

    > its a perfect program of time conversion Well, it's not horrible, but I wouldn't use the word "perfect" as a descriptor. You could start by learning to format your …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in classes

    Modern education at its finest. The field's founding members are weeping.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in c#

    I use `sealed` for utility classes that have no business being extended. Some people go so far as to seal any classes that aren't explicitly intended to be extended, which …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Good second programming language?

    By second programming language do you mean a language you know but don't really use? It seems kind of silly to think in terms of first, second, third, etc...; you …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in static functions

    Do your own homework, please.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Constructor

    Do your own homework, please.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in MVC

    What is Google?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Difference between abstract and partial classes

    > but can an abstract class be instantiated ? No. That's the point, you're forced to derive from an abstract class.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Parsing a date

    > Also, DO NOT use leading underscores for local variables. That construct is generally reserved for system libraries and such. Only at file scope in normal and tag name spaces. …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in weird int declaration

    > And it doesn't work in VS because Visual Studio's C support is completely outdated. So are standard VLAs. ;) You'll notice that C11 made them optional for the implementation. …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Learning programming

    I learned by reading books on programming and teaching myself. These days the web is rife with tutorials, examples, tools (compilers and such), and pretty much any resource you need …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in computer architecture

    Good luck! If you have any specific questions, feel free to ask. By the way, "I don't know where to start" is *not* specific.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in error while adding elements in arraylist in C#

    You're missing a `Main` method. Without getting too into detail about the nuances, any executable statements must be in a method. They won't work at the class or namespace level.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Want C++ code

    Please read our rules concerning homework.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in NEED HELP! FSTREAM LOOP

    You need to open the file with a new name each time: for (int x = 0; x < 10; x++) { stringstream filename; filename << "trial" << (x + …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Version Control

    > Instead I just create a new revision with a folder name plus an incremented number on the end. That's all well and good...until you want to know what changes …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in conflicting declaration

    > `TextQuery(inFile);` You're not defining an object there. Try this instead: TextQuery tq(inFile);
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in #include<conio.h>

    What compiler are you using and what stuff from the header are you using? `conio.h` isn't a standard header, so it won't be supported by all compilers, or in the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in any one help me

    More information is needed. Moschops' answer is legit, but it would help greatly to know exactly what you want to do so that the answer can be tailored to your …
  • Member Avatar for deceptikon
    deceptikon

    Stopped Watching to the admin (again)

    i don't want any of my daniweb notifications to be notified to my email address since i can keep track on them via Watched articles.so what i have to do??or …
  • Member Avatar for deceptikon
    deceptikon

    Began Watching to the admin (again)

    i don't want any of my daniweb notifications to be notified to my email address since i can keep track on them via Watched articles.so what i have to do??or …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Decipher Broken English

    Such is the way with spellcheck. *Never* accept a suggestion blindly, or you might end up posting something as embarrasing as it is amusing. ;)

The End.