5,237 Posted Topics

Member Avatar for sara khan

> 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 …

Member Avatar for sara khan
0
205
Member Avatar for BattlingMaxo

The directory specified by the environment variable TEMP or TMP is a good bet.

Member Avatar for Salem
0
59
Member Avatar for nizar-t

[url]http://www.catb.org/~esr/faqs/smart-questions.html#bespecific[/url] [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url]

Member Avatar for essential
0
93
Member Avatar for yara naser

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 …

Member Avatar for Salem
0
215
Member Avatar for dilake

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 …

Member Avatar for Salem
0
255
Member Avatar for patrick k

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.

Member Avatar for Salem
0
81
Member Avatar for sohil.shivani
Member Avatar for slayerace180

> nextArray(); You said it needed a parameter, but you didn't pass any! Try nextArray(life);

Member Avatar for slayerace180
0
104
Member Avatar for tarakant_sethy
Member Avatar for Leila1

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]

Member Avatar for Salem
-1
145
Member Avatar for dgr231

> will the value of counter automatically change as well? a) no b) did you try it?

Member Avatar for Salem
0
133
Member Avatar for carlcarman
Member Avatar for rbrt13

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 …

Member Avatar for Salem
0
320
Member Avatar for 4101

> 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 ;)

Member Avatar for siddhant3s
0
95
Member Avatar for mat1989
Member Avatar for Salem
0
138
Member Avatar for compubaba

> 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 …

Member Avatar for Salem
0
168
Member Avatar for Lfmoncur

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 …

Member Avatar for Salem
0
121
Member Avatar for gretty
Member Avatar for mrnutty
0
120
Member Avatar for lecotti

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.

Member Avatar for lecotti
0
2K
Member Avatar for Shriyan_hello
Member Avatar for Shriyan_hello
0
22
Member Avatar for ithelp

> 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 ;)

Member Avatar for ayoungpretender
0
104
Member Avatar for bczar13

> 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?

Member Avatar for checkitout
0
133
Member Avatar for coollife

So what's wrong with the answer on your other thread? [url]http://www.daniweb.com/forums/thread209172.html[/url]

Member Avatar for Ezzaral
0
82
Member Avatar for Salem
Member Avatar for ahihihi...
1
239
Member Avatar for gretty

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. …

Member Avatar for mrnutty
0
217
Member Avatar for invisi

> 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 …

Member Avatar for mrnutty
0
906
Member Avatar for jewelpervez
Member Avatar for ithelp
0
93
Member Avatar for adelphe

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.

Member Avatar for adelphe
0
167
Member Avatar for nuar046

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 …

Member Avatar for nuar046
0
210
Member Avatar for rmirmi

[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 …

Member Avatar for Salem
0
67
Member Avatar for brodie.a

[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?

Member Avatar for MosaicFuneral
0
69
Member Avatar for yeshkadiyala

> 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 …

Member Avatar for Salem
0
168
Member Avatar for alvalany

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 / …

Member Avatar for Salem
0
106
Member Avatar for Stefano Mtangoo

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.

Member Avatar for Hiroshe
0
121
Member Avatar for Software guy

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]

Member Avatar for Software guy
0
2K
Member Avatar for Lukezzz

You need a different protocol. Say [url]http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol[/url]

Member Avatar for Lukezzz
0
180
Member Avatar for tomtetlaw

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.

Member Avatar for Salem
0
101
Member Avatar for wizkids157

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.

Member Avatar for Salem
0
89
Member Avatar for EvilOrange

Also consider the lack of usefulness of a string containing only one char (a \0)

Member Avatar for EvilOrange
0
121
Member Avatar for jake43

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 …

Member Avatar for Salem
0
204
Member Avatar for yellowSnow

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 …

Member Avatar for yellowSnow
1
288
Member Avatar for shampoo

> 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?

Member Avatar for Salem
0
88
Member Avatar for beatdown_master

> 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 …

Member Avatar for Salem
0
146
Member Avatar for hardikvd

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

Member Avatar for mrnutty
0
89
Member Avatar for Katvillan

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 …

Member Avatar for wildgoose
0
198
Member Avatar for raseel
Member Avatar for raseel
0
85
Member Avatar for iammfa

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!

Member Avatar for Salem
0
65
Member Avatar for Pavan_

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.

Member Avatar for Salem
0
129
Member Avatar for clxkzj

[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.

Member Avatar for Flower
-1
127
Member Avatar for xfreebornx

Just wondering if you felt like reading the intro threads, and HOW TO POST CODE anytime whilst waiting for an answer.

Member Avatar for mrnutty
0
115

The End.