5,237 Posted Topics
Re: > The second line [COLOR="Red"]starts with the number of basins n (3 £ n £ 200), a space[/COLOR], and then[COLOR="Green"] n > integers in the range 0 to 99, separated by single spaces, > representing the water levels in the tanks.[/COLOR] You read the spec wrong > In the first … | |
Re: The directory specified by the environment variable TEMP or TMP is a good bet. | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#bespecific[/url] [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] | |
Re: It's a bit [URL="http://www.thefreedictionary.com/chutzpah"]much[/URL] to dump 650+ lines of badly formatted code without any clue as to what it's supposed to do, then demand we fix it for you in the next 24 hours! When was the first test? 5 minutes before posting the code here. Read this before your … | |
Re: Are you sure it's not skew in your printer as the print head tracks left/right? Create some known test images using say mspaint to check. [attach]11158[/attach] Say something like this. If these come out fine, or other printing applications come out fine, then you may have a software problem. If … | |
Re: I would probably suggest that you have mis-matched braces, and that you don't have the scope you think you have. A small and COMPLETE compilable example would be a lot better than the .... abbreviation you've posted. | |
Re: No, you read the rules first, then make an effort. | |
Re: > nextArray(); You said it needed a parameter, but you didn't pass any! Try nextArray(life); | |
| |
Re: They're just a helpless skiddie wannabe, trying to do something or other with someone else's malware kit. I've seen it, it's rubbish. [url]http://www.daniweb.com/forums/thread194496.html[/url] [url]http://www.daniweb.com/forums/thread195594.html[/url] | |
Re: > will the value of counter automatically change as well? a) no b) did you try it? | |
Re: Are you allowed to use recursion? | |
Re: How about beginning with learning about memory allocation, and use of pointers? explode(), pm(), msg() and get() are all a disaster area. Eg. output[0] = tok; where does this write tok? You didn't allocate any space for it. > msg ( strcat ( "PASS ", pass ) ); PASS is … | |
Re: > thank you...hope you can help me with this... I need it tomorrow... But tomorrow is Thursday. I'm Robinson Crusoe, and all my work is done by Friday ;) | |
Re: [url]http://www.daniweb.com/forums/thread70096.html[/url] | |
Re: > In you case f()+g()*h(), g()*h() will be done first coz * has higher precedence than +, > but which one of the two g() and h() will be called is entirely dependent on the compiler. Read Dave's link, there is nothing which says that f() won't be called first … | |
Re: First, your code with decent indentation. FYI, turn off TABS in your editor, and set it to use spaces all the time. [code=c++] // CO1401 Reassessment 2008/9 //Liam Moncur BSc Computer Networking #include <iostream> #include <fstream> #include <string> using namespace std; double max(const double *data, int N); double min(const double … | |
Re: What happens if you just swap the first and last elements of the array? | |
Re: You only enter a string, not a number. Typing in 123 will likely get you 49 50 51 as output. If you were expecting 123 to be printed, you need more code. At the moment, you just print the decimal value of ASCII character codes. | |
| |
Re: > It seems USA army is going to try such veg robot in afganistan shortly Have you seen Afghanistan? The place is a desert where it isn't a mountain. Robot's gonna starve. It should really plant trees as it goes for full sustainability ;) | |
Re: > I have for software related to television programming Well that could be anything from the PVR at home to record programs to the scheduling of program delivery at the transmission site. Care to elaborate? | |
Re: So what's wrong with the answer on your other thread? [url]http://www.daniweb.com/forums/thread209172.html[/url] | |
to post in this thread, wins. You're already too late - losers! I WIN! | |
Re: You shouldn't be calling strcpy() AT ALL in a C++ program using std::string to store strings. The only time you need to do it is for the case where you're calling an historic interface that requires a "char*" pointer. Historic interfaces which accept "const char*" are not a problem. Eg. … | |
Re: > But at the end of the run it comes up with an Debug Assertion failed. > WHY??? In your case, you're deleting what you didn't new. If you don't call new for a pointer, don't call delete. Examples. [CODE]int *p = new int ; .... delete p; int *q … | |
Re: [url]http://www.daniweb.com/forums/announcement8-2.html[/url] | |
Re: You're reading AND writing the same file at the same time. Read from the old one, write to the new one. When you're done, delete the old and rename the new. | |
![]() | Re: well that's a bit vague. What do you know already? - I've heard about dev-c++ and apparently it's the thing to use - I've written "hello world" for the console - I've written "hello world" as a win32 GUI - I know how to create simple classes - I know … ![]() |
Re: [url]http://clusty.com/search?query=company+formation+chennai+india&sourceid=Mozilla-search[/url] Find a specialist company that deals with company formations. a) it will be a lot quicker. Here in the UK, you can buy a new company off the shelf in less than 24 hours, for the cost of a mornings work on your part. b) it will be cheaper … | |
Re: [url]http://www.nondot.org/sabre/os/articles[/url] > If any one willing to help me design a os i'll probaly find them here. And what exactly would be your contribution? | |
Re: > main() or void main() or int main() it worked for me Understand that there is a difference between the language and a compiler. The language states that main returns int. Your compiler (just one of many) is an implementation of that language. All compilers extend the language in some … | |
Re: What kind of network do you have on the LAN side? Does everything connect to your machine, and your machine connects to the internet, using ICS [url]http://en.wikipedia.org/wiki/Internet_Connection_Sharing[/url] Do you all plug into a broadband router, and it connects to the internet? [url]http://www.homenethelp.com/router-guide/index.asp[/url] If so, what sort is it (manufacturer / … | |
Re: How about burning a few CD's worth of less listened to music (or unseen photos) that you might have? If you're scratching for a few MB, then you've got bigger disk space issues. | |
Re: ImageMagick is a program AND an API [url]http://www.imagemagick.org/script/index.php[/url] Command-line Tools Processing Options Usage Program Interfaces MagickWand MagickCore PerlMagick [COLOR="Red"]Magick++ [/COLOR] | |
Re: You need a different protocol. Say [url]http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol[/url] | |
Re: Source code goes in .cpp files, not .h files! Two files include that .h file, and you have TWO copies of the same function name. This is what "multiply defined" means - more than ONE. | |
Re: The bin version is if you just want to run the programs. The src is if you want to actually edit the program, read what it does, figure out how it works, make changes, fix bugs immediately etc etc. | |
Re: Also consider the lack of usefulness of a string containing only one char (a \0) | |
Re: Many of the commercial coding standards I've come across insist on using braces in all contexts, even the optional braces in 1-liner statements. If you're using a syntax-driven editor, they come for free anyway, so removing them is work. It also prevents "Arrgg!" moments, when attempting to add debug to … | |
Re: It's a nice idea. But there are at least 6 places where code tags are mentioned, and still about 99% of noobs fail to use them on the first post. People get +ve rep just for proving they can read - it's that rare! Some continue to fail to use … | |
Re: > but i've got problems doing that and i cann't read the bitstream Are we still on the PC using VC++ at this point? | |
Re: > connecting my computer directly to my modem (bypassing my router) seems to make my connection > return back to its original state. I take it that you're using some kind of ADSL over telco lines then? Does making a normal phone call have the same effect as using a … | |
Re: If you want to store 3.14 (and no more), then you need a different data type than a float. You're always going to end up with either 3.139999999 or 3.140000001, depending on which is the nearest representable form to the value 3.14 | |
Re: Example [code] #include <stdio.h> int placeShip ( int sea[][10], int id, int bowx, int boy, int sternx, int sterny ) { // checks the sea to see if a ship can be placed between // the stated coords // yes, place the ship and return true // no, return false … | |
Re: [url]http://www.daniweb.com/forums/announcement118-2.html[/url] | |
Re: How about coming up with your own answers? You can read all the cookery books you like, but until you've set the kitchen on fire at least once, you're never going to be a great chef! | |
Re: You answered it yourself. You overran the array. You then trashed i, and i got a new value. There is no guarantee that the program will fail if you do anything wrong. If you want that kind of safety net, use another language. | |
Re: [url]http://www.webmasterforums.com/search-engine-optimization-site-promotion/25730-what-difference-between-keywords-meta-tags.html[/url] Same questions, different spam links, never responds to peoples replies. | |
Re: Just wondering if you felt like reading the intro threads, and HOW TO POST CODE anytime whilst waiting for an answer. |
The End.