3,183 Posted Topics
Re: > This would be to prevent people from trying to legally urge daniweb to remove content that the author wanted to revoke. Pretty much. The only pressure we tend to receive as concerns deletions is from schools and students. And the answer is always the same: members who post in … | |
Re: > need help writing pseudocode You've already done it. Barring a minor inconsistency where you create one variable name but use another (ie. origprice/price and finalprice/final), what you've posted is legitimate pseudocode. | |
Re: You realize when you have an actual exam, you won't be able to run for help, right? | |
Re: `catch` is a keyword in C++ (part of the exception handling mechanism), you can't use it as an identifier at all. | |
Re: > The default colomns in a datagrid are textboxes. Annoyingly substandard textboxes if you need more than default behavior, but yes. ;) It's also an interesting exercise in frustration if you want to write an extension of the standard textbox column. I'm not surprised there are so many replacements for … | |
Re: > i wanna know about what they represent ? There are a number of barcode symbologies that have different data restrictions. Here's a quick overview of some common ones: * **Code 3 of 9**: Alphanumeric data. These are 1D barcodes in that they only have a series of vertical bars … | |
Re: TextChanged fires every time the text changes, which means you're doing a *lot* of unnecessary work. Keeping it simple, I'd add a search button that fills in your combo boxes so you have more control over exactly when it happens. Following that, unless you have strong binding going down, you'll … | |
Re: > frmMain has a tabControl on the 12 tabs (1 for each month) and a datagridview showning the days and the times and hours worked frmEditMonth (used as a edit Dialog pop-up) allows the user to edit the hours worked Minor design nitpick: If you find yourself with more than … | |
Re: The only situation I can think of where this might be useful for immediate mod attention is spammer bot naming and profile patterns. With the current system that's too rare to justify the cost of implementing a new feature. | |
Re: DataGridView only binds to one table at a time. Third party controls (such as Infragistics' UltraGrid) support multiple table binding, but if you want to go with standard controls the old DataGrid has some options you could find useful, or your could combine something like a TreeView with a DataGridView … | |
Re: > what should i know to develop a library like the C standard library You should have a strong foundation in C, but not necessarily the uncommon features. As an example, [here's](https://code.google.com/p/c-standard-library/source/browse) a simplified partial implementation of the C library that I wrote. In my estimation, anyone with decent knowledge … | |
Re: After a cursory reading, it looks like the problem is to eliminate adjacent whitespace and enable word wrapping. This is clearly a homework assignment, and it's also an instructive exercise in string handling, so we'll require that you make an honest attempt first. If you get stuck, feel free to … | |
## Disclaimer ## Full disclosure, this is a problem I've recently encountered at work. I couldn't find a reasonable solution and ended up recommending a logistics approach rather than a full code approach to solve it. The code performs a subset of required functionality to give users more options, but … | |
Re: Well done. However, you have two glaring errors in the modified code. See if you can find them. | |
Re: Are you asking how to write your own or how the .NET ArrayList class is implemented? For the latter, that's [easy to show](http://referencesource.microsoft.com/#mscorlib/system/collections/arraylist.cs#3e3f6715773d6643) because the code has been open sourced. | |
Re: C# or VB.NET are both freely available. There are free compilers for C++ and Java as well. Those are among the most popular languages. | |
Re: We require proof of effort when helping with homework assignments. Further, don't expect anyone to do the work for you. If you do, you're not going to meet your deadline. | |
Re: It's really the difference between a [value type (`struct`) and reference type (`class`)](http://msdn.microsoft.com/en-us/library/t63sy5hs.aspx). For types that are suitable to both, I tend to prefer reference types for consistency. But that's more of a stylistic choice than anything. | |
Re: > To be honest I don't know, and never knew there was a max. That's because it's high enough that if you reach it, you're doing something very very wrong. ;) | |
Re: My preference is to store options in a settings object (application-specific) and then serialize it to an XML file in either the ProgramData folder or isolated storage. This accomplishes three big things, in my opinion: 1. The file is located in a place that isn't under tight security (like the … | |
Re: The first thing I notice is that the following accomplishes nothing (unless by "nothing" you wanted an infinite loop): } while(*str != '\n'); // if empty str inputed -> stop do-while You're using the `>>` operator to populate `str`, and that operator is delimited by whitespace. In other words, `'\n'` … | |
Re: Welcome aboard. We have similar roles at work. I started out as a pure developer but now have been moved to a support manager who can also pick up the slack in development needs. I guess I was too good at handling support calls. ;) | |
Re: Good luck with that. On a side note, simply posting your homework assignment is unlikely to produce useful replies. We don't help students cheat. | |
Re: > Recent changes to the C and C++ standards allow for variables as array size declarators. C++ still doesn't support non-const array sizes. C has technically supported it since 1999, but compiler support is currently sparse and promises to remain so. Further, C14 has made VLAs optional even for hosted … | |
Re: Note that `cin` and `cout` are objects with a number of input and output methods on varying types. `<<` and `>>` are overloaded operators for those objects that "simplify" the calling of I/O methods. See also Nathan's reply, as it's a less pedantic and more practical answer. ;) | |
Re: > mostly because we had no one on the dev team who was able to figure it out :) I lacked sufficient time to figure it out and sufficient approval from you in editing the base parser. IIRC, the argument was that significant changes to the base library would make … | |
![]() | Re: > What, no comment on the changes? :) It's jacked up to the point of being useless now. :( The times are all jumbled rather than in order, and it's difficult to tell what's current. Also, the update is too fast to properly investigate what's happening in realtime. |
Re: I'd go with a loop as well. You could do it using more advanced methods, but since this exercise is at the beginner level, it's better to keep things simple. | |
Re: Don't use `eof()` as a loop control because it introduces a fencepost error. `eof()` returns true only *after* you try and fail to read from the stream. Instead, the `>>` operator will return a value that can be used as the condition without any operation ordering issues: while (openfile >> … | |
Re: > I thought about change resizing step from 1 to 10, but I have to ask whether is it allowed. Of course it's allowed, provided you don't have unusual restrictions from the assignment. If you're required to resize by a single element every time you grow, then there's not a … | |
Re: > what's difference b/t polymorphism andinheritance Polymorphism is an optional feature of inheritance. Your question suggests that you think they're independent, which they're not. Without inheritance (or a significant amount of hackish workarounds), polymorphism doesn't occur. That's assuming of course that we're talking about polymorphism through virtual member functions rather … | |
Re: http://en.cppreference.com/w/ http://www.cplusplus.com/reference/ | |
![]() | Re: I wouldn't bother qualifying the languages you know as being academic experience. Experience is experience, even if you weren't paid for it. However, I'd refrain from including languages that you don't feel you can comfortably hit the ground running with yet. You're not expected to be a guru, but you … ![]() |
Re: > As a first language I think c++ could be easier and faster to learn then C#. If you have never learned a programming language before there are lots of concepts that C# assumes you know. Um...dafuq? How does C++ not have lots of concepts you're assumed to know? Further, … | |
Re: Yes, the vast majority of us can help. But we won't do it for you. | |
Re: You're not the first to mention that. It's certainly not very intuitive as far as I'm concerned, but Dani makes the final decision. Let's see if she weighs in. | |
Re: 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 "remedies" drops to a fraction and only covers what we'd consider to be minor illnesses and traumas. Better yet, a … | |
Re: You don't. That's why it's called Adobe *Reader*. To edit PDF files you need something like Acrobat or LiveCycle, but note that those options aren't free like Reader. | |
![]() | Re: 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. ![]() |
Re: 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 i, j; float ar[5] = {12.75, 18.34, 9.85, 23.78, 16.96}, br[5]; float *ptrAr, *ptrBr; ptrAr = ar; ptrBr = &br[4]; … ![]() | |
Re: Your code performs precisely zero length, existence, or success checks, so it's absolutely vulnerable to malicious use. It's also brittle in the face of legitimate use. Let's add a few checks to make it better: #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { char *first, *second; first = … | |
Re: > I interviewd for a position about 6 months ago and they said they love me as a person and what i could do but I didn't praise the company enough Wow. Sure, you should be interested in aspects of the company that pertain to you determining if it's a … | |
Re: 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. | |
Re: There already is one, provided the member has submitted an approved tutorial. | |
Re: 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. | |
Re: 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. | |
Re: > my problem: is that the values are showing up in the file after excution What behavior were you expecting? | |
Re: 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 unrelated methods to those declared in the interface. |
The End.