-
Replied To a Post in Cores or frequencies?
It's impossible to answer your question as asked because the benefits of cores versus clock speed are situational. What's the average use case of the intended machine? -
Replied To a Post in Fractional Decimal to Binary gives wrong value (sometimes garbage value)
What compiler are you using? -
Replied To a Post in How to make Setup Project
> You can't do that. There is no way other people can use your "project" without also having purchased and installed MS Access. I'll be sure to let my clients … -
Replied To a Post in ok. that's me leaving daniweb
> let me reword that a little better, they d ont hate me but they don't exactly care for me They have to warm up to you, which can take … -
Replied To a Post in Tips for Better UI Designing
You joke, Richard, but it's not quite so clean cut. ;) For example: > Don't be reluctant to try different things with colors! I got laughed at by coworkers for … -
Replied To a Post in Monitro flickering
Sorry to hear that. Perhaps if you offered something significantly less vague, someone might be able to help troubleshoot. -
Replied To a Post in strings and pointers
> I need to be able to take a string and put it into an array of chars, how can i do this? If the string is a literal, it's … -
Replied To a Post in Tips for Better UI Designing
> what tips have you learned over time? The technical stuff is easy. My biggest wins in UI design have come from end user feedback. Things I find to be … -
Replied To a Post in ok. that's me leaving daniweb
> Haaaa 'weenie points' Everyone seems to like my peen points terminology. :D > I'm 33 guys, im not fussed about reputation. Same age as me. I'd be lying if … -
Replied To a Post in ok. that's me leaving daniweb
In terms of e-peen points, you're doing okay. What really matters is the intangible reputation you earn that is what people who matter think of you. And that kind of … -
Replied To a Post in Beginner's Assembly Problem
Imagine an array: {1, 2, 3, 4, 5, 6} Now imagine dividing it up into pairs: {1, 2} {3, 4} {5, 6} Then swap each pair: {2, 1} {4, 3} … -
Replied To a Post in Need Help Now Please!
> Need it in 15 mins Yeah...15 minutes would be *really* pushing it even for an expert who knows exactly what to write and doesn't require any debugging. I'm happy … -
Replied To a Post in Good Algorithm Reference Book
> Internet recources on algorithms are suprisingly sparse, especially compared to "regular" programming. Ironically, my go-to quick reference for algorithms and data structures [is a website](http://xlinux.nist.gov/dads//). It's the most complete … -
Replied To a Post in Inheritance
in·her·i·tance (n) 1. money, property, etc., that is received from someone when that person dies 2. something from the past that is still important or valuable 3. the act of … -
Replied To a Post in C Program to swap two numbers without using third variable
Nope, you pretty much nailed it. When swapping floating-point using arithmetic, there's a strong chance that rounding errors will muck up the original values. This problem doesn't exist with a … -
Replied To a Post in Why do I need headers at all?
> So, why are we dividing the thing in headers(declarations) & cpp (defintions) ? We can write defintions in headers also. That introduces the problem of multiple definitions. C doesn't … -
Replied To a Post in C Program to swap two numbers without using third variable
> The solution I gave will work for the int surely but it might give wrong for the double. Am I right? You are correct, sir! And why is that? … -
Replied To a Post in What is the exact meaning of namespace?
> Actually, I am confused that what the problem was there in C and how c++ has solved it. Let's say you have two libraries with a `print` function in … -
Replied To a Post in Why ++ operator overloading expect (int) ?
> but how is it resolved by compiler that which function to call? Compiler magic. `++T1` gets converted to `T1.operator++()` and `T2++` gets converted to something like `T2.operator++(0)` under the … -
Replied To a Post in What is the exact meaning of namespace?
> I have updated my comment. I have added one problem in the last comment. Please see that also. It would be better to do that in a new reply … -
Replied To a Post in C Program to swap two numbers without using third variable
"Number" is ambiguous. Let's throw a wrench into the mix: double a, b; Beware, the answer isn't as simple as you think. :D -
Replied To a Post in Why do I need headers at all?
> Why will I need to update each and every source file? For fun, let's use `printf` as our example even though it's unlikely to change for the forseeable life … -
Edited terminal
do u know how install fedora software -
Replied To a Post in Why ++ operator overloading expect (int) ?
> Why does it need int in postfix and not in prefix? This is a case of Bjarne Stroustup being *too* clever. The two member functions need a different signature … -
Replied To a Post in What is the exact meaning of namespace?
> But, when I use using namespace std, then I also have to use "string" header file. So what is the difference between them? The header provides you with declarations. … -
Replied To a Post in Bad computer habits
> - my fingers are on "A", "W" and "D" keys Yup, I've got that one. Another is that I have a tendency to end sentences with a semicolon due … -
Edited Error - String Compare
void password(){ string fpass; string pass; cout << "Type the password " << endl; getline(cin,pass); cin.ignore(); ifstream fin(FILENAME1); string str; getline(fin, str); fpass = str; cin.ignore(); if (pass.compare(fpass) == 0){ … -
Replied To a Post in UTC to local time
Is that a Julian date format? I was assuming you had something like an ISO 8601 formatted date, but this complicates matters. -
Replied To a Post in Email sending error Transport code Error 0x80040217
Double check that your credentials are correct. I've seen this happen when the password expires or is changed. -
Replied To a Post in extra hard drive suggestions
If it's just a data drive, it should work straight away. Depending on the OS, you may have to mount it first, but Windows will detect the drive automatically. Depending … -
Replied To a Post in Program - To find the longest word from a sentences
> Just try out this code. Hope it may be useful for you. That code is pretty awful, even after adding reasonable indentation. Let's hit the low hanging fruit first. … -
Replied To a Post in Storage class in C
Yup, variables in a nested scope hide variables with the same name in parent scopes. -
Replied To a Post in UTC to local time
Since you're already using C++/CLI, why not initialize a `DateTime` object with the `String^` and then use the `ToLocalTime` method? What exactly does the string contain? Is it a standard … -
Replied To a Post in besides ::malloc() what alternatives for Windows?
I think a better question is why did you reach the point where `malloc` is failing? With virtual memory being standard operating procedure in modern OSes, it should be extremely … -
Replied To a Post in structures VS unions
> Playing with the structure examples in the book reminds me of accessing attributes to a python Class That's not a bad analogy. A structure in C++ is just a … -
Replied To a Post in If not exist query
Well, yes. I used a SQL variable since it's a better idea to use parameters to your query rather than glue everything together directly as in your first example. But … -
Replied To a Post in How to make my own library and use it for my programs?
> May be any platform, any compiler, I just want to do the complete procedure myself. The complete procedure really does vary between compilers and operating systems and the documentation … -
Replied To a Post in If not exist query
For this I'd select the count of matching records: select count(*) from tblSchoolYear where schoolYear = @schoolYear If it's greater than 1, you have duplicates and can show a message … -
Replied To a Post in Command Line Arguments with integers
> What about this part? How do you handle this? All of them are under the programmer's complete control. I handle it by not writing stupid code. ;) > No-throw … -
Replied To a Post in Command Line Arguments with integers
`atoi` invokes undefined behavior if the converted integer cannot be represented by the `int` type. There's no workaround other than explicitly validating the string before calling `atoi`, and since `strtol` … -
Replied To a Post in Usernames
Ah pronuciation. T'was the bane of my existence (not really, just mildly annoying) with a previous account. -
Replied To a Post in Command Line Arguments with integers
Command line arguments are always strings. What those strings represent depends on your code and how you use them. But yes, if an argument represents an integer and you want … -
Edited Command Line Arguments with integers
I know this works as expected if your command line arguments are strings. #include <stdio.h> int main( int argc, char *argv[] ) { printf("Program name %sn", argv[0]); if( argc == … -
Replied To a Post in Featured answers
> Am I using the +1 wrong? There's not really a way to use it wrong, barring full out abuse like automatically downvoting every post from a member regardless of … -
Replied To a Post in Convert String to Integer using arguments from command line
What arguments are you planning on supporting? Are they the strings to convert or switches that alter how the conversion happens? The first step is to solidify your understanding of … -
Replied To a Post in Range of signed integers question
> Assuming the size of the register is 8 bits and the leftmost bit is reserved for sign shouldn't the size be -127 to +127. It is. Well, that's the … -
Replied To a Post in Multiple definition of 'main'
> But try again after including the library function #include<conio.h> as well. Not only will this not solve the problem, it also destroys code portability by requiring the compiler to … -
Replied To a Post in i want to split arratlist of any size into chunk size if 4
This is an extension method I use for that purpose: /// <summary> /// Separates a list of items into sub-lists of chunkSize chunks. /// </summary> /// <param name="items">The original list … -
Replied To a Post in Color Code
> True, but an IT consultant specialising in networking would, you might imagine, know the basics about networking... It depends somewhat. Sure, if you've taken classes on networking or electical … -
Replied To a Post in help with replacing part of char array w/ new one
> Now before you all go with strstr I'm not sure I'd recommend `strstr` for this anyway. ;) > i dont want to use <string> You mean `<string.h>`? That's where …
The End.