-
Replied To a Post in Console App - How to make new object person for each new data entry(person)
If you find yourself naming variables with incrementing numbers, use a list: List<Person> peepls; -
Replied To a Post in c tutorial
http://www.lysator.liu.se/c/bwk-tutor.html Do you have anything specific you're interested in or just C in general. -
Replied To a Post in C++ problem!!!
Did you terminate your Salaried class with a semicolon? -
Replied To a Post in inline function
> INLINE FUNCTIONS DON'T USE STACK. THEREFORE, EXECUTION TIME IS LESS.HOWEVER, THE STATEMENTS IN THE FUNCTION ARE SUBSTITUTED WHENEVER THE FUNCTION IS CALLED.INLINE FUNCTIONS ARE ALWAYS SHORT. Many assumptions there, … -
Replied To a Post in Collection glitch
> I can't figure out how to clear the "MathDep" - previous collection of items before importing the collection of items again. MathDep.Clear() Since you're using a hardcoded collection, you … -
Replied To a Post in C++
> `int y = (a - b++)*--b;` > `int y = a-(b++ * --b);` Both of these still invoke undefined behavior. Parentheses won't save you. -
Replied To a Post in Counting positive and negative...
What are the contents of `findNum`? That's somewhat critical as to your results. However, it strikes me that you'd want to split it into two loops to get a more … -
Replied To a Post in short,long,typedef,const
> Yes, it was off, the range is -128 to 127 You're still off. The standard doesn't assume two's complement, so the minimum required range is 127 to 127. Your … -
Replied To a Post in what is the best and optimised way to load controls dynamically in winforms
I understand that. What I want is an actual number that you expect *on average*, because that can affect the performance of your user control. -
Replied To a Post in short,long,typedef,const
> Only char has a guarenteed size, which is 1 byte with a range of -127 to 126. Off by one. The guaranteed size is -127 to 127. -
Replied To a Post in C++
> manually I get the answer as 6 , but the compiler gives as -4 . how? Because modifying a variable multiple times between [sequence points](http://en.wikipedia.org/wiki/Sequence_point) is undefined behavior. The … -
Replied To a Post in what is the best and optimised way to load controls dynamically in winforms
How many buttons on average are you generating? -
Replied To a Post in Sharing the light | Agile Under Waterfall
> We use it at my company, but it doesn't get any more work done than the less "structured" methods we used in my previous position Agile is a buzzword … -
Replied To a Post in c++ codes
[Do provide evidence of having done some work yourself if posting questions from school or work assignments](http://www.daniweb.com/community/rules) -
Replied To a Post in (.xml vs .txt)saving
Let's start with one quick clarification, XML is a *text* format. So technically you can save XML to a .txt file. ;) > I just can t see xml being … -
Replied To a Post in three separate programs that generates each of the following patterns
Good luck. Feel free to ask for help when you have a question other than *nothing at all* or "I don't know where to start". :rolleyes: -
Replied To a Post in C++
> I have done something but got confused along the line. Don't you think it would be better to post what you've done and then explain the confusion you have … -
Replied To a Post in NULL pointer - why i didnt get any errors ?
This is a quirk of the C++ object model. Since the member function isn't virtual, the compiler knows exactly what function to call and doesn't depend on the object instance … -
Replied To a Post in Forums Problem in registering
> That's either sweet or creepy. What makes the difference for the OR clause? ;) -
Replied To a Post in Insertion & Deletion
> I can make the insertion and deletion programs but not with these Can you elaborate on what you mean by "but not with these"? The pseudocode is very specific … -
Replied To a Post in Removing object(with their event) safely
If you don't add any code to the event handler, simply resetting it in the control properties will delete the code as well. If you *do* add code (even if … -
Replied To a Post in Insertion & Deletion
Since you're posting to a C++ forum, I'm assuming you know at least rudimentary C++. So the good news is that when you need a program, you can write it. … -
Replied To a Post in PLEASE HELP UPDATE STATEMENT
In your debugger, copy the contents of `sqledit` and run the query manually from your database. This makes it easier to spot check queries because it eliminates the obscuring of … -
Replied To a Post in mariesim
Then make best effort at explaining what you don't understand, why you don't understand it, and where clarification will help you understand. Just posting your homework assignment looks like you … -
Replied To a Post in mariesim
Please show some proof of effort as per Daniweb rules. Thank you. -
Replied To a Post in help with 3D array
> then why when I run program all I get is endless 0's ? Simple math says that many of the cells will contain 0 since x, y, or z … -
Replied To a Post in C++ header
Headers provide declarations for the library objects and types you use. C++ requires a declaration to exist, and because it would be a pain (not to mention non-portable) to declare … -
Replied To a Post in i/o stream
Pasting the contents of the header into your file would do it, assuming you use the same header that came with your compiler. But all in all, that would be … -
Replied To a Post in Your boss is making you do what?
Being the go-to guy is a good thing. Be careful not to close doors on yourself. You never know what might happen by saying "yes" to a request. -
Edited Homework Help
Create a basic cash register program that is capable of accepting an arbitrary number of prices and then prints a receipt containing the name of the store, the prices entered, … -
Gave Reputation to noah_2 in C Program Help :(
This is just awful -
Replied To a Post in Homework Help
> It looks a lot like you just assumed I haven't started my homework because I didn't post what I have done. Yup. I can only work with the available … -
Edited plz write a programe for me
write a programe to input any year and cheak whether it is leap or not -
Replied To a Post in plz write a programe for me
No. Do your own homework. -
Replied To a Post in Homework Help
I have an idea, how about you do *something* first, then ask for help. Because it looks a lot like you're trying to cheat by having other people do your … -
Replied To a Post in Reversing an answer
> I'm not sure what the other answers looked like, but division and modulo may not be the best way to print this stuff out, especially in C where prepending … -
Replied To a Post in fscanf newline vs space
> Is this a bad idea? Can you be more specific? -
Replied To a Post in C++program
Please ask a [smart question](http://www.catb.org/~esr/faqs/smart-questions.html). Just posting your homework assignment is insufficient. -
Replied To a Post in Read an inconsistent file
> Sometimes the file is "word number" and other times it is just "word". That's actually very consistent. All you need to do is look for two potential line cases, … -
Replied To a Post in help in arrays
I'd create a class or structure for a course, then a class for a student that has a vector (or array if you so choose) of courses. Finally, I'd create … -
Replied To a Post in simple i/o error with string names
What's the value of `x`? Neither of the values in `notename` suggest a valid file name, and if they do, you'd need to verify that the file is in the … -
Replied To a Post in fscanf newline vs space
Possible, yes. However, for clarity sake, I'd recommend following up your call to `fscanf` with `fgetc` and check the result for the character you want: while (fscanf(pFile, "%99s", nam) == … -
Edited Java Programing
hey i need help once i run it will proceed to next one it will show error message package test1; import javax.swing.JOptionPane; public class Test1 { public static void main(String[] … -
Replied To a Post in Numbers in identifiers?
> As long as they do not begin with numbers. Is this standard functionality? Yes. > but then it is rather vague about what identifiers are, exactly. You might be … -
Replied To a Post in Multi user vb.net program (client-server)
What does the server do? If all your clients need is database access then hitting a database on another machine is simple. If clients connect to a server that handles … -
Replied To a Post in Where to get PI?
> And if not, it would be good idea to have it, there are some constants that people use very often, so you cold try to writte them and then … -
Replied To a Post in ARROW KEY SCROLL HELP
Actually, it's dead easy. Against my better judgment, since you haven't posted any code of your own, I'll give you a more complete sample. #include <conio.h> #include <iostream> #include <string> … -
Replied To a Post in ARROW KEY SCROLL HELP
> but thats not what i want I'm aware of that. It's only a part of what you want, the part that recognizes arrow keys. You also need to move … -
Replied To a Post in ARROW KEY SCROLL HELP
[Here](http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1048384015&id=1043284392) is something I wrote up years ago, but it should still be relevant to your needs. -
Replied To a Post in Your boss is making you do what?
> I am a programmer. That's why I'm receiving a paycheck. I sit alone in a small cubicle and do my work. That's an interesting description of a programmer. I …
The End.