3,183 Posted Topics

Member Avatar for ddanbe

> 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 …

Member Avatar for Dani
0
202
Member Avatar for marylw24

> 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.

Member Avatar for deceptikon
0
97
Member Avatar for tomeika.griffith

You realize when you have an actual exam, you won't be able to run for help, right?

Member Avatar for Suzie999
-1
214
Member Avatar for Subhasis giri

`catch` is a keyword in C++ (part of the exception handling mechanism), you can't use it as an identifier at all.

Member Avatar for deceptikon
0
65
Member Avatar for CasianSushin

> 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 …

Member Avatar for swadeep.kujur
0
187
Member Avatar for Learner010

> 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 …

Member Avatar for Pregger
0
209
Member Avatar for james.lu.75491856
Member Avatar for GagaCode

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 …

Member Avatar for arunkumars
0
423
Member Avatar for Trevor_3

> 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 …

Member Avatar for arunkumars
0
445
Member Avatar for <M/>

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.

Member Avatar for happygeek
0
242
Member Avatar for jj.dcruz

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 …

Member Avatar for deceptikon
0
238
Member Avatar for Ghost0s

> 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 …

Member Avatar for Ghost0s
0
329
Member Avatar for Sterben

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 …

Member Avatar for deceptikon
0
73
Member Avatar for deceptikon

## 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 …

Member Avatar for ddanbe
1
581
Member Avatar for prerit
Member Avatar for deceptikon
0
331
Member Avatar for Nikusha.Kalatozi

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.

Member Avatar for deceptikon
0
73
Member Avatar for Mya:)

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.

Member Avatar for Mya:)
0
131
Member Avatar for Fatma_2
Re: help

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.

Member Avatar for deceptikon
0
237
Member Avatar for owenransen

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.

Member Avatar for owenransen
0
346
Member Avatar for ram619

> 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. ;)

Member Avatar for ram619
0
3K
Member Avatar for BogdanCov

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 …

Member Avatar for deceptikon
0
132
Member Avatar for Auroch

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'` …

Member Avatar for Auroch
0
260
Member Avatar for aatifriaz

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. ;)

Member Avatar for Mya:)
1
171
Member Avatar for Gerald_2

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.

Member Avatar for deceptikon
0
116
Member Avatar for kickbass6

> 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 …

Member Avatar for vmanes
0
5K
Member Avatar for summary
Member Avatar for shumaila akbar

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. ;)

Member Avatar for Vikram Sehgal
0
153
Member Avatar for peter_budo

> 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 …

Member Avatar for Dani
3
236
Member Avatar for iamthwee

> 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.

Member Avatar for pritaeas
0
231
Member Avatar for liamfriel

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.

Member Avatar for castajiz_2
0
232
Member Avatar for Sarkurd

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 >> …

Member Avatar for Sarkurd
0
173
Member Avatar for bejfake

> 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 …

Member Avatar for rubberman
0
1K
Member Avatar for rizwan anjum

> 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 …

Member Avatar for Loosipher
0
169
Member Avatar for Rubinder singh
Member Avatar for vmanes
0
3K
Member Avatar for lithium112

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 …

Member Avatar for lithium112
0
119
Member Avatar for M_I_K_E_911

> 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, …

Member Avatar for M_I_K_E_911
1
353
Member Avatar for wayne.nishant
Member Avatar for Ketsuekiame

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.

Member Avatar for Ketsuekiame
1
424
Member Avatar for ddanbe

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 …

Member Avatar for jwenting
0
734
Member Avatar for HunainHafeez

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.

Member Avatar for alva114
0
429
Member Avatar for iamthwee

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.

Member Avatar for iamthwee
0
129
Member Avatar for nekoleon64

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]; …

Member Avatar for iamthwee
0
375
Member Avatar for Netcode

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 = …

Member Avatar for deceptikon
0
206
Member Avatar for Que336

> 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 …

Member Avatar for deceptikon
-1
311
Member Avatar for amt_muk

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.

Member Avatar for amt_muk
0
237
Member Avatar for Reverend Jim
Member Avatar for Reverend Jim
0
118
Member Avatar for COKEDUDE

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.

Member Avatar for sepp2k
0
124
Member Avatar for nhrnjic6

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.

Member Avatar for deceptikon
0
505
Member Avatar for nitish.mohiputlall

> my problem: is that the values are showing up in the file after excution What behavior were you expecting?

Member Avatar for vmanes
0
206
Member Avatar for pirat4e

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.

Member Avatar for pirat4e
0
329

The End.