6,741 Posted Topics
Re: It's usually just a port of an existing compiler to the new system. It's possible to compile code on one machine for another, you know. That's called cross-compiling. | |
Re: >Turbo C is a good one too. It's totally free Turbo C is [b]not[/b] a good one, especially on Windows XP. If you're getting a compiler, actually get one that can handle your modern OS. Then we'll be able to avoid those annoying questions: "Why doesn't my C compiler that's … | |
Re: >Some thingthat we can do in C and Not in C++ Compile on certain embedded systems. :) | |
Re: >1) Why do prototypes of some predefined functions in >ctype.h(ex- tolower(ch)) has 'int' as the data type for formal arguments? Because they're allowed to accept EOF as a valid argument. Since char can be either signed or unsigned, and EOF is a negative quantity, if char is unsigned and EOF … | |
Re: Name: Julienne Nickname: Jewel Height: 5' 6" Weight: Less than average Hair: Blond Eyes: Green Location: GA, USA Age: 26 Hobbies: Reading, rock climbing, frisbee, martial arts. Relationship Status: Married Fav Music: Soundtracks Education: Computer programming Work: Software engineer Favorite Movies: Ocean's Eleven, The Last Samurai, anything with Jean Claude … | |
Re: >2) Is there any special reason of- Why most C compilers include >most of the header files implicitly, but in C++ we have to include them explicitly? A correct and portable program [b]must[/b] include the headers it uses explicitly or otherwise provide a compatible declaration for everything it uses from … | |
Re: >Does anyone know the code to show the critical count for a quick sort algorithm. Use a global variable, and realize that all of the work is done in the partitioning step of the algorithm. Beyond that, it's pretty simple to add a critical counter to quicksort. >Also does neone … | |
Re: A green box is good rep that adds to your points. A red box is bad rep that subtracts from your points. A grey box is either good or bad rep from a person that doesn't have enough power to affect your points. >and what is the criteria of reputation … | |
Re: We don't take kindly to people just posting their homework problems without any proof of effort on their part. | |
Re: >Maybe there could be a way to auto lock old threads after a certain period of time? This is a classic example of fixing the symptom rather than the problem. But if you want to press the issue, is it really bad enough to warrant an implementation change that severely … | |
Re: >As far as I knew gcc stands for GNU Compiler Collection and >it should invoke appropriate compilers on its own. It does invoke the appropriate compiler, but gcc doesn't know how to link C++ libraries while g++ does. I'd be willing to bet that the errors you're getting are linker … | |
Re: WOW! That's the best Daniweb news and/or feedback I've ever seen! I bow before you Michelmik, we are not worthy! :rolleyes: p.s. In case you didn't know, that was sarcasm. | |
Re: >Where can I download C++? You don't download C++, it's a programming language. You don't download Java or Perl either, they're just languages. What you download is a compiler for C++, or an interpreter for Perl, or the development kit for Java. Too many people mistake their compiler for the … | |
Re: >The source code should be in Borland C++ Builder 5 or 6. That's gives us the impression that you want [b]us[/b] to write it for you, which isn't going to happen. Show us what you've tried so far instead of just posting your requirements, and we'll help you get it … | |
Re: >can yo give me some example of virus because i like to learn more about. 1) This request has nothing to do with the topic of the thread. 2) The chances of someone giving you the code for a virus are slim and none. Let me put it this way. … | |
Re: This reeks of homework, so I'm closing the thread. If you feel I've done so in error, please PM me with your case. | |
Re: >Or use Ruby or Python that do not have these narrow limits. The only difference being that the arbitrary precision types are built into the language instead of offered as a library. I always enjoy when someone goes into a random thread and suggests that people use their favorite languages … | |
Re: I've come to the conclusion that any thread which tries hard to have a vague and useless title is probably breaking the rules in one way or another. | |
Re: > Dude, This is just an example of traversal. There are plenty of better examples (much better) out there already. [url=http://www.eternallyconfuzzled.com/tuts/bst1.html#traverse]For example[/url]. :) Thanks, by the way. If not for your post I'm not sure how long it would have been before I noticed that my coloring was messed up … | |
Re: Welcome, but we have a forum created especially for introductions. It's not hard to find, being right above this one. | |
Re: >how i print the output of the c programming code in a printer and using c code? You would be better off asking this question in the C and C++ forum. People who know and are good at C are more likely to visit there than here. >please get me … | |
Re: >Ya but how do i get it to print hello on paper. Start by being more specific about your compiler and OS. To do it "right" is a lot of work, but most of the time you can do it pretty easily with a compiler/system-specific solution. | |
Re: >I had one programmer who took my notes & started coding & didn't ask ONE bloody question. Now that would be the kind of person I would classify as a bad programmer. I can't think of [b]anything[/b] that can be understood and written well without asking at least one question. … | |
Re: >I have been searchinf for around 5 hours!! Where have you been searching? Mama May's quilting extravaganza? In less than ten seconds, I loaded both the Intel website and the AMD website and surfed over to their respective product information for the processors you mentioned. | |
Re: Protected data is convenient because it's easy to access, but it breaks all kinds of good programming practices in the process. >Hint: Perhaps you gain efficiency by one method, but lose information hiding. Translation: Perhaps your instructor has no idea what an inline function is. This has nothing to do … | |
Re: IIRC, C++ Builder requires you to create a project for the file to be a part of before you can build it. Though I don't recall the steps to do it, they should be similar to what you're doing with the added step of first making a project. | |
Re: Ongoing debate? It must be held in secret, because this is news to me. ;) | |
Re: A type cast causes a type conversion, so conversion is the effect and casting is the cause. They're not the same thing because you can have conversions without a cast if an implicit conversion is allowed. | |
Re: >I am required to add functions on the Log class If you want them to be treated polymorphically, yes. But templates can't be virtual, and writeLog is best written as a template. Annoying little impasse, isn't it? :) Whatever will you do? How about moving the template up a level, … | |
Re: >can anyone here help me kick start this 3 page report You have to write a 3 page report about how linear search has linear time? :?: I can summarize in two sentences. Linear search performs O(N) comparions in the worst case, and O(N/2) comparisons in the average case. The … | |
Re: I'll give you a hint. Think in terms of the heap invariant rather than a strict "swap with the largest child" algorithm, which the second solution given does less efficiently (even though it's easier to visualize). | |
Re: >i m waiting 4 ur reply Campkev You're not going to get a reply because I'm closing this thread. Please don't post another until you've read our rules and understand how to post a coherent question in understandable English. | |
Re: >reading "illegal else without matching if" It's pretty straightforward. To have an else clause you first need an if clause. Since the closest match is a while loop, you've created a syntax error. | |
Re: >There's really no need any more to view a full forum index. So rather than scrolling down, you want us to go back to the top of the page, then find and click the tab that we want to go to? Repeat six times for those of us that browse … | |
Re: Stop posting your homework for other people to do. | |
Re: Stop posting your homework for other people to do. | |
Re: Okay, what have you tried? We're not going to do it for you, so start pulling your weight. | |
Re: >Isn't the above code shows flaw/hole in the language?? No. If C++ were designed to avoid both stupid breaking of the rules [b]and[/b] willful/malicious breaking of the rules, the language would be a beast that nobody wanted to use. C++ protects you from your stupidity, but if you know how … | |
Re: What algorithm? Which article, and can you post the relevant parts? I know that log V is relatively common with graph algorithms where V is the vertex count, but I've never seen an asterisk in there. It could just be a typo. | |
Re: >His notes said to format it like I had %.2f Just for other people's reference, your instructor was talking about output with printf, not input with scanf. scanf doesn't use the precision modifier because there's really no point. >I have figured it out! Did you figure out the other two … | |
Re: >How Can i Create a final class in C++? A "final" class in Java is a class that cannot be derived from, it's quite literally a concrete class that will never have subclasses. In C++ you basically can't do it without making the class harder to use. Are you doing … | |
Re: >Um...I think I did not post clearly... i think u mA b correct in ur assessment. ppl who use dumb abbr. r hard 2 understand. | |
Re: >but I am not satisfy completely And you're never going to be if you keep asking off-topic and ridiculously vague questions like that. | |
Re: >I want to know what is the logic used for generating a random number. There's logic to generating random numbers? :p >Can anyone tell me the algorithm for random number generation without using standard library functions? There are a lot of algorithms for random number generation that vary from simplistic … | |
Re: Ooh, ooh! How about a filter that cleans up those lame abbreviations that make you look like a retard? ;) But seriously, what was the primary focus of your studies? What part of the courses did you enjoy most? You should be able to find a good project that falls … | |
Re: >i would love to try to beat catweazle since he has 3000 posts Then 100 posts a week should be the norm for you. ;) You can do it in less than a year if you really try. But please don't spam, we hate that. | |
Re: >I think at least a little excerpt on an about page would be great for everyone to learn a little bit about yourself and your site. I think it's pretty obvious what Daniweb is all about. What's not obvious is whether Dani even [B]wants[/B] everyone to learn a little bit … | |
Re: >Then a sequential lookup of the linked list contained in Arr[I] is done, and Z is found. It takes O(3). That's still O(1) because it's a constant time. But if the hash function is good, the extra cost of a sequential search is negligible since the lists will all be … | |
Re: >I would like to know if it is possible Yes. >I've searched all over the net and I seem to find ODBC with MFC tutorials The code to work with ODBC is the same whether you wrap it with a pretty graphical interface or not (which is why I assume … |
The End.