5,727 Posted Topics
Re: The description is quite exhaustive. I suggest you read it and try yourself while waiting for someone to write your code for you so you can in the last 5 minutes before your homework is due slap something together which has a passing chance of coming near to working because … | |
Re: If the code contains as many spelling errors as your username I'm not surprised. | |
Re: don't start a new thread when dealing with your old problem... [url]http://www.daniweb.com/techtalkforums/thread13701.html[/url] and use code tags and hopefully indentation to make your code somewhat readable. Have you tested what the value of your "enter_operator" actually is after the input? Should it even go into one of your if-statements? | |
Re: To prevent duplicating the responses you got at cprogramming.com, I advise you to check out your thread there where your questions have been answered in considerable detail. [url]http://cboard.cprogramming.com/showthread.php?t=58702[/url] | |
Re: int main() {} should work fine. void main() {} should also be accepted even though it's not good practice. Your initial code is either posted incomplete or is way wrong. | |
Re: now why did you alert him to the fact that he shouldn't just submit that code as his assigment? Don't we want people who're too lazy to do their own work to get burned? | |
Re: you can in your javascript (which is triggered on onclick in your case) do a submit of the form by simply calling the submit() function on the form. | |
Re: In Java you would write .4f to force the floating point literal into a float instead of a double datatype. Don't think C++ works like that. | |
Re: have you ever taken any course in highschool mathematics (most of the stuff you're asking is primary school math even)? If not start there. If yes practice what they taught you. If you can't see the code in your head, do the calculations on paper and determine an algorithm from … | |
Re: If you don't know what debugging is you should look up about that first and start to practice it... | |
Re: We've been through this before. 1) look at the answers you got elsewhere 2) crossposting and repeat posting the same question is not appreciated. 3) we're not here to do your homework for you. If you have specific questions about specific parts of your assignment we may be able to … | |
Re: Variable names make a difference in how easy your program is to maintain and how many bugs you'll introduce writing it. They'll also affect the way your colleagues will treat you, whether you'll get a pizza or a one way trip out the 3rd floor window during the next crunch … | |
Re: Quite simple. The execution "mycat file2 2>file3" places the error output from "mycat file2" into the file "file3". As file2 doesn't exist this new file will contain the text "file2 doesn't exist". Remember the assignment says to print error output to stderr? What you do with 2>file3 is redirect stderr … | |
Re: Visual Studio includes not only VC++ but also C#, J# and Visual BASIC. VBScript is included in MS Office, maybe in Visual Studio as well (it's pretty generic in MS products as a macro language). Depending on the version of VS you purchase it may also include things like Interdev, … | |
Re: so what have you actually done to read the data? You've declared the file, but that doesn't read the data... Show some initiative first, try it yourself. | |
Re: Step 1: what do you have? Step 2: what do you want to have? Step 3: how do you get from the data in step 1 to the data in step 2? It's really really simple, you have a set of data and want to transform that into another set … | |
Re: so you've already described the system. Now "all" you need to do is turn that into code. If you have problems with specific areas of that post what you have and maybe someone can help you overcome those problems but please don't think we're going to write your entire program … | |
Re: You know what a factorial is I hope? Then you know you need multiplication to calculate it. The simplest program would use a for loop, something like [code] long fact = 1; // request is the number of which the factorial is requested for (int i=1; i<=request; fact *= i++); … | |
Re: [quote]Now that is strange, we're being teached this way of programming and you say that it's the old way, can you explain this a bit more [/quote] It's been that way since the introduction of C in the 1970s and only (relatively) recently been replaced (2000 or so) by the … | |
Re: Most tutorials on multithreading in Java use this scenario (or a similar one) as an example. | |
Re: I've no experience with Java2D but I know something of JPEG :) JPEG uses lossy compression which can lead to poor results if you get the image compressed too much. Try finding a command to set the compression ratio and select the lowest compression (largest file) it supports. That should … | |
Re: Go to the nearest bookstore selling computer books. If they're halfway decent they'll have a shelf of books related to C including tutorials. Also pick up a copy of the standard work "the C programming language" by Kernighan and Richie | |
Re: More correct C++ usage is to omit the .h from the standard includes. Using the #include <x.h> instead of #include <x> turns on C compatibility mode for the module. Depending on your compiler you'll get a warning or not about it. | |
Re: For a corporate website intend on bringing customers to the company I'd say any 3rd party advertising should be avoided like the plague. If the site doesn't bring income to the company, maybe it should not exist. It's that simple. I understand that income can be hard to gauge if … | |
Re: compiled your code using BCC55 and it does nothing like you claim. what does happen I quote here: [quote] put 1 MAIN: cmd = put, d = 1 put 2 MAIN: cmd = put, d = 2 put 3 MAIN: cmd = put, d = 3 put 4 MAIN: cmd … | |
Re: first: You're not closing your constructor, check your braces! second: count the arguments to String.format(). Your template string takes 3 arguments, you supply only 2. | |
Re: Borland has several compilers free for download. These include the 5.5 version of their C++ compiler (one of the best around!) as well as a number of old versions of their C++, C and Pascal systems. [url]http://www.borland.com/products/downloads/download_cbuilder.html[/url] (choose "compiler"). [url]http://bdn.borland.com/museum/[/url] free registration required for both. Borland doesn't send anything you … |
The End.