3,183 Posted Topics
Re: I think it should work on all pages. Consistency is important, for one thing. For another, I often move to another forum from within a thread and that currently involves jumping to the top of the page for the dropdowns. So it's also enlightened self interest based on my own … ![]() | |
Re: Pass the size in using two more parameters. There's no standard way to determine the size of an array when given nothing but a pointer to the first element. | |
Re: > I shot from pistols, but never from revolvers. My condolences. ;) | |
Re: > its a site that makes a registered user ask questions to the world, with interest points that links those questions to other users. and a user can also direct the question to another user... How is this different from, say, Stack Overflow? | |
Re: > The data inside the object is guaranteed to remain unchanged. Unless it's mutable, or the function does something tricky to bypass constness. Rule \#1 of C++ is that there are *no* guarantees. Stupid or malicious code can get around any language restriction. ;) | |
Re: > Is there any program out there where you can customize a programming language and compiler? What exactly do you mean by "customize"? | |
Re: Welcome. I'm sure you'll find our Java community both willing and adept at helping you reach your goal. | |
Re: *If* you're using C99 or later, then the underlying type is called `_Bool`, and you can include <stdbool.h> for macros that define the more convenient `bool` along with `true` and `false`. Prior to C99, there's technically no boolean type, though the integer types all work well as a facsimile. In … | |
Re: > OK Ive been able to post it but without the text that I put after. What is wrong with it? Cross posting your question makes it more likely that you'll miss the answer. Please see your *other* thread on the subject for my response. | |
Re: > Which require stronger social skills Programmer or Network Administration Having done both, I'd say suck it up and work on your social skills, or find a different field. In all seriousness, social skills are needed as either a programmer or a network admin. If you don't have them and … | |
Re: > How difficult will it be for a 41 year old, former CPA but recently graduated Computer Science major, to find a good programming job? Probably as difficult as it would be for anyone with your level of experience. Age generally isn't that big of a deal in our field, … | |
Re: You can, but it violates the EULA and thus constitutes an illegal action. Therefore discussion of such is not allowed on Daniweb. You can find plenty of information on Google. | |
![]() | Re: > The potential exists for someone to log onto my old account, and please don't tell me about passwords, since it would seem that the hack occurs down the line, so anything I enter is likely to be captured So your solution is to avoid fixing the actual security issue … |
Re: It really would be best to use word granularity rather than character granularity. Collect all of the words in a list and then you can use a simply greedy word wrapping algorithm to display them in a bounded area. For example: #include <algorithm> #include <fstream> #include <iostream> #include <regex> #include … | |
Re: I'm afraid that given the apparent attitude of your question I'm forced to say this for your benefit: **help yourself first**. | |
Re: On a side note, if you reply to a thread then that ties our hands in terms of deleting it (unless it's supremely offensive or flat out illegal), even if the thread should have been deleted in the first place as a violation of the rules. If you feel a … | |
Re: > In Assembly there's not going to be much insight on linked lists, B trees, arrays, etc. Um...what? > In fact those don't even exist at the bit level. They don't exist at any level. Data structures are an *abstract concept* that get implemented using available language features. You can … | |
Re: > What is your best high school achievement(s)? I tore down then rebuilt an automatic transmission...and it worked. | |
Re: One of my company's products is a check 21 scanning, processing, and delivery suite. I'd say it's one of the more complex projects I've worked on given the *many* moving parts, combination of scanning, OCR/ICR, image processing, X9.37 management, a robust plugin system for delivery, and finicky banks who reject … | |
Re: Unfortunately, that's what will happen if there's no place to deterministically place a word wrap. This is a case where you should proofread your posts in the live preview and make sure they're formatted the way you want, even if you have to add a space in that long line … | |
Re: > While you are in the development phase you can specify the connection string but when the application is on the client server you cannot determine the connection string there as you do not know the server name or ip address of the server. For a desktop application you can … | |
Re: Your question seems sketchy. However, I'll give you a chance to elaborate rather than simply deleting it as illegal activity. | |
Re: > In desktop mode it's so similar to Windows 7 I can't tell the difference. For the most part. The only annoyance I feel the need to voice when people ask is that I unintentionally invoke the charms bar when moving my mouse from screen to screen. It's just slow … | |
Re: > floating point constant cannot be stored in structure through scanf Sorry, but that's incorrect. | |
Re: The ultimate pickup line: "Hi." Rationale: Canned pickup lines are a fantastic way to fail early in the game. Just confidently approach the man or woman you're interested in and strike up a conversation. | |
Re: > I hope they weren't "Americanized". I've seen what they do to perfectly good anime. It's gotten better over the years, but I was turned off to any kind of modification ("americanizing", or even dubbing) since the travesty of Sailor Moon in the English adaptation. | |
Re: > they don't explain clearly what the benefit of using them is, why I need them Say you have two libraries, each in a separate assembly. Neither use namespaces, but both define a class called Widget. How do you know which Widget is which without some way to categorize them? … | |
Re: > why is it not necessary for a method to declare an exception when coding in C++? Because the designers of C++ chose to use unchecked exceptions rather than checked exceptions while the designers of Java chose the opposite. Attempts have been made to introduce checked exceptions into C++, with … | |
Re: > I did Google search on this, but could not find any algorithm/code by which I can do it. I imagine the best approach would be a lookup from a database of names and gender probability. At its simplest the gender neutral names would be 50% confident and the strongly … | |
Re: > Unfortunately, this season looks a bit meh That's what I thought when looking at the summaries, but I have 8 on the "3 episode" test right now, which is exceptional given that the last year or so I've only kept at most 3 on the line: * Yahari Ore … | |
Re: Yes, you can use nullptr everywhere as a replacement for NULL. Even in the places where NULL was actually a degenerate case and didn't work as expected...unless you *want* the degenerate behavior, of course. ;) | |
Re: fgets() includes the newline that terminated input for a successful call. If it's there you need to remove it: #include <stdio.h> #include <string.h> char *fgets_trim(char *s, int n, FILE *in) { char *p = fgets(s, n, in); if (p) { s[strcspn(s, "\n")] = '\0'; } return p; } int main(void) … | |
Re: If you're using LPCWSTR in the first place, you should also be using std::wstring rather than std::string. Then you can just use the c_str() method from std::wstring directly. It's certainly possible to convert the latter into the former, but it's fair to say that not having to do a conversion … | |
Re: I'd suggest [this](http://www.eternallyconfuzzled.com/tuts/datastructures/jsw_tut_linklist.aspx) tutorial as it covers a lot of information, but builds up to it with just enough code to get the job done. It's written in C, but a conversion to C++ is trivial. Concerning your immediate problem, I notice that you never modify `p`, even though it … | |
Re: > I was thinking that maybe I have to do something extra, like create a special case of the quicksort algorithm. What would you suggest? The problem is that the comparison callback accepts pointers to void, which then need to be cast into the correct type before you can do … | |
Re: As long as the vector object itself is in scope, it takes up memory. But if you want to well and truly destroy the items stored by the vector and release the allocated memory, you use the swap trick: vData.swap(std::vector<std::wstring>()); You could also copy assign an empty vector, which can … | |
Re: At a glance, ExpressionTree doesn't appear to respect whitespace. Try using "4+8" instead of "4 + 8". | |
Re: > i get many programs form different web but i didnt got it..... We won't do your homework for you. However, if you post the code that you sto^H^H^Hacquired from the web and point out the parts that you don't understand, we'll be happy to help you "get it". | |
Re: > Should be easy few lines of code but I'm a Beginner! I'd suspect that the problem is you don't understand how to reduce a fraction using the gcd, or normalize two fractions from the lcm. Like you said, it's an easy few lines, but if you don't know how … | |
Re: You probably want the SQLEXPRWT version for your OS, so depending on whether you're using 32-bit or 64-bit, choose one of these: [ENU\x86\SQLEXPRWT_x86_ENU.exe](http://download.microsoft.com/download/8/D/D/8DD7BDBA-CEF7-4D8E-8C16-D9F69527F909/ENU/x86/SQLEXPRWT_x86_ENU.exe) [ENU\x64\SQLEXPRWT_x64_ENU.exe](http://download.microsoft.com/download/8/D/D/8DD7BDBA-CEF7-4D8E-8C16-D9F69527F909/ENU/x64/SQLEXPRWT_x64_ENU.exe) They include the database engine and basic tools like Management Studio, so it's what I'd consider to be the minimum install for a server. You may … | |
Re: > how to write the code for show the data from the server using vb.net That's...a very vague question. What data? What server? How are the server and the application connected (eg. web service or local network)? Is this a web application or a desktop application? As ddanbe mentioned, what … | |
Re: No, ultimately the sequence you get is still bound by the randomness of the library. But if that process produces a reasonably random seed for the library, it's a net win, though I'm not sure it's worth the effort over something simpler and probably faster like taking a hash of … | |
Re: Please use our job offers forum, since that seems like what you want. Thanks. | |
Re: It sounds like you haven't read the [documentation](http://msdn.microsoft.com/en-us/library/xfhwa508.aspx) on the Dictionary class, because retrieving stored values by key is one of the most basic and fundamental operations. Specifically, what you want is the [Item](http://msdn.microsoft.com/en-us/library/9tee9ht2.aspx) property or the [TryGetValue()](http://msdn.microsoft.com/en-us/library/bb347013.aspx) method. | |
Re: > There might be option that only person in the conversation can downvote because if he/she is downvoting then they must have reason for that and solution for that. People outside of a conversation aren't allowed to have an opinion? |
The End.