6,741 Posted Topics
Re: I have a battered old notebook with scribbles all over it. :) | |
Re: >So, any other females here besides myself and Dani I'm having trouble deciding how to categorize your motivation in asking that. I've settled on one of these three: 1) You couldn't think of anything better to talk about. 2) You're trolling by subtly bringing up a topic that will divide … | |
Re: >And I'm only going with the boy/girl guess based on the name. And I wouldn't be so cruel as give a boy a girl's name. >Will she return to daniweb after the baby or will she take a while out? I lurk when I have a spare moment, but Daniweb … | |
Re: No, I'll get it included in the package as a Microsoft Partner. | |
Re: [url=http://search.microsoft.com/search/results.aspx?qu=LNK2022&View=msdn&st=b&c=0&s=1&swc=0]Documentation is a good thing.[/url] | |
Re: 1) I like cream soda. 2) Despite being small and weak, people fear me. 3) I like reading about Japanese history. 4) I have an inch long scar on my leg from when I was 12 and got hit by a spear. 5) I'm hopelessly addicted to Everquest 2. | |
Re: FASM Assembly: [code] format PE console entry start include 'C:\fasmw\include\win32a.inc' ;====================================== section '.data' data readable writeable ;====================================== num_fmt db '%d',10,0 ;======================================= section '.code' code readable executable ;======================================= start: mov ebx,10 .again: lea eax,[ebx-11] neg eax ccall [printf],num_fmt,eax dec ebx jnz .again stdcall [ExitProcess],0 ;===================================== section '.import' import data readable ;===================================== … | |
Re: That's an admirable goal. You'll probably want a good book (I recommend Accelerated C++), a good compiler (Visual C++ 2005 Express is good and easy to use and it scales well as you learn), and a good community (such as this one) to help you with tougher problems. | |
Re: Daniweb is a way for me to help people more easily learn the things that I've had to struggle through. | |
Re: >it is very clear that is no one can help me When you ask such incoherent questions, it [i]should[/i] be obvious that no one can help you. | |
Re: >There's only one private function in B. What made the size to be 4? Member functions don't generally apply toward the size of an object. If they do, I would question the quality of your compiler. The thing that made the size be 4 is the internal object stuff that … | |
Re: >What is your favorite comfort or theme food? What do you like about it? What are your memories of it? A glass of milk reminds me of family and the beach because when I was a kid, my grandmother always made me drink milk at meals. Now I don't need … | |
Re: >My header file time.h is being corrupted.. Dare I ask how you managed that? >I can't find it on the internet... It's an implementation header. Reinstall your compiler, because you can't just ask someone to paste theirs and expect it to work. | |
Re: We're not going to do it for you. Please try it yourself and see what you can come up with. You'll learn more that way. Also, the algorithm is called QuickSelect, if you want to do some research on it. | |
Re: Did you even try to do it yourself? I'm not against borrowing code to get the job done, but this is clearly homework, and homework is meant to be solved so that you can learn to be a better programmer. | |
Re: >one problem i m getting is it's only reading 19 numbers (0 to 19) If you're only expected to read up to 20 numbers, that's correct. 0 to 19 is exactly 20 numbers. >and the rest i think u can see from the output (preety messed up) Reading from a … | |
Re: >I downloaded the microsoft visual studio and it confused the hell outa me. Anything will at first. Either you have to deal with the complexity of an IDE (that's a compiler, debugger, editor, etc.. all rolled up into one graphical application), or the complexity of learning command line tools. You … | |
Re: >i dont know how to write the code ? Do you know how to do a preorder traversal? Once you have that, it's just a test whether both children are either null or not null. It's a short solution, so I can't give you example code without solving the problem … | |
Re: >I really think this should just work. It takes work to get things to work. Your pieces don't fit together because you don't define functions. The default constructor, destructor, and operator>> are never given bodies. That's the core of your problem. | |
Re: Why are you using recursion for this? A loop would be trivial. | |
Re: Printing in .NET is funky, but simple. Once you get the hang of it it's no problem, but that first hurdle is figuring out how the heck the parts all fit together. Printing multiple pages is handled inside the PrintPage event handler. The handler selects which page to print and … | |
Re: >return(intFirst, intSecond, intThird); This doesn't actually return three values, it just seems that way because intFirst, intSecond, and intThird are global. What this expression actually does is evaluate (and subsequently ignore) all but intThird, which it then returns. So only intThird is returned, but because all of them are global, … | |
Re: >usingnamespace I'm reasonably sure you need a space between those two keywords. :) Actually, you have tons of similar syntax errors. This compiles: [code] #using<System.dll> using namespace System; using namespace System::Diagnostics; ref class B { public: virtual void F(){ Console::WriteLine("B::F"); } }; ref class D : B { public: virtual … | |
Re: >What is the situation at your location? We adhere closely to standards and enforce correct behavior. >Does this lack of control really hurt? It can, very easily. One of the most important guidelines in programming style is consistency. That includes project-wide consistency even when multiple people are working on different … | |
Re: >Which is your favorite Star Wars and why? Return of the Jedi. Because. :) | |
Re: >the only way to be sure that your code is completely portable is to return 0 when the program exits. EXIT_SUCCESS is completely portable. The language standard defines it as such, along with EXIT_FAILURE and 0. | |
Re: The SET clause can be a comma separated list of assignment expressions: [code] string command = @"update Appointments " + "set [startDate] = @Start" + " , [endDate] = @End" + " , [title] = @Title " + "where ([appointment_id] = @Record)"; [/code] | |
Re: >I think that you shouldn't be that mean. There was nothing mean about his post. It was politely worded as far as I can tell. The problem is that when you create a new thread for the same problem as your other thread, we basically lose all of the work … | |
Re: >Well after two semesters and three absolutely 'horrible' teachers I've >decided to drop my C, C++ courses and move over to a different line of study at college. To be perfectly frank, if that's all it takes for you to quit, you wouldn't have made a good programmer anyway. >If … | |
Re: >i just read a thread here that had some interresting talk and people...it was called 'Virus Programming' I'm sure it was interesting if it's the thread I'm thinking about. ;) >Do i have to be in uni to learn a programming language Most certainly not! Anyone with a computer and … | |
| |
Re: >Does anyone know why Unix developers seem to have an obsession with the words foo and bar? [url]http://catb.org/jargon/html/M/metasyntactic-variable.html[/url] | |
Re: >I am not so good at the whole function thing so Functions are very simple. You can think of them as a named block of code. Let's walk through a few steps of factoring your code into a function. First, take the code you want in a separate function and … | |
Re: >I still have some errors and I can't seem to figure out the mistakes TY for all your help I refuse to read your code until you format it and put it in code tags. | |
Re: >can anybody gimme an algo for reversing the words in a string in O(n) time.... Recursively copy the words to a new string. ;) | |
Re: Try using the random numbers as indices into an array of words. | |
Re: There are essentially two ways to extend a language. The first way is through libraries and other modules that don't break the rules of the language but still add functionality. An example of this is the Python/C API that let's you use Python from a C or C++ program. The … | |
Re: >i am trying to make the program to ask user if he or she wants to continue >when they click anywhere on the program. That's extremely unconventional behavior. If I may offer a recommendation, how about using a progress bar and a cancel button? Naturally the encryption should be done … | |
Re: >and it HAS to use a recursive function to insert the new node into the list Just so you know, recursion is a piss poor way to work with linked lists. As for the algorithm, it would go something like this: [code] node *add_end ( node *list, int data ) … | |
Re: >What is the coding standard here? Different people/standards do different things. It's a stylistic issue. >And what could be wrong with the first version? Well, it adds unnecessary clutter that distracts from the meat of the code. I would also ask why that information is important enough to add [INLINECODE]this->[/INLINECODE] … | |
Re: >* What is your favorite genre(s)? Science fiction/fantasy, technical, manga, history, and the occasional mystery. >* Who is your favorite author(s)? J.R.R. Tolkien, Orson Scott Card, Anne McCaffrey, C.S. Lewis, and Tom Clancy. >* How much do you read per week? 20ish on average, more if I have a book … | |
Re: >whether me being from a management background is it advisable? Lessons learned from management will be very beneficial as a software developer. Actually, that can easily be a selling point for you because a lot of developers looking for jobs are a little weak on the social skills that you … | |
Re: >Well, they were wrong. It depends on what they were referring to, but I'm going to assume they were correct if it was comp.lang.c. Wrong information doesn't last long on that group. >Name one. I can name three: 1) Take the sizeof a dynamically allocated array. 2) Take the address … | |
Re: >I've heard C is pretty popular to program in. For the enlightened, yes. :) >I want to make a simple window, with a search bar. By putting in either >Hiragana, Romanji or English, it brings a pop-up with all 3. You can certainly work toward that goal, but it's best … | |
Re: >Each node is like "00343068", etc. when it's suppose to be like 123 Those are addresses. You're printing the value of the node itself rather than the Value member: [code] cout << temp[COLOR="Blue"]->Value[/COLOR] << endl; [/code] | |
Re: >Who celebrates Hanukkah and who celebrates Christmas? How do YOU >celebrate the holidays and what do they mean to you? I celebrate Christmas largely because I was raised to a Methodist family. However, due to my atheist leanings, the holiday really doesn't mean anything to me beyond a chance to … | |
![]() | Re: >what does using namespace std mean. Please tell me. haven't taught about it yet. In 1998, C++ was standardized. The old headers that end with .h (iostream.h, fstream.h, etc..) were removed and replaced with headers of the same name without the .h extension. Also, a feature called namespaces was added … |
Re: >What's your favorite cartoon....? Just about anything anime. :) For more cartoonish cartoons, I couldn't help but enjoy any X-Men series. | |
Re: That's twice this thread has been bumped unnecessarily. :rolleyes: | |
Re: >I believe sarcasm was supposed to be out of Daniweb.. What made you think that? >And ya, if i need sarcasm , i would go, listen to my boss. What you quoted wasn't sarcasm, it was a legitimate complaint about the readability of what you posted. Since we'd rather assume … |
The End.