5,237 Posted Topics

Member Avatar for eren

Whether or not he can help you doesn't matter. The fact is, he probably could help you. What is also a fact is that you've shown nothing which makes you deserving of help. A much better post would be "Here is my prime number code but it keeps showing 9 …

Member Avatar for Ancient Dragon
0
136
Member Avatar for tootypegs

What does this have in common with [URL="http://forums.devshed.com/c-programming-42/c-handles-491608.html"]this post[/URL]? That's right, neither show you've read the forum rules as both have been posted without any code tags.

Member Avatar for tootypegs
0
104
Member Avatar for boyz

> means 12 bytes are occupied in fact Nope, guess again. Arrays are not pointers.

Member Avatar for Ancient Dragon
0
269
Member Avatar for hellokitty88

Use your debugger and put a breakpoint on line 15 of the code you posted. When the breakpoint is hit, examine the various variables.

Member Avatar for Ancient Dragon
0
111
Member Avatar for cursedbyfreud

> *(Flights+i)=new int *[size]; > *(Flights+i)=flightNo; //this is the error place Well these two lines are both accessing the same thing, and only the first one is correct. > my problem is that Flights[a][b][c]=flightNo, this is the error So write it like that then [ICODE]Flights[x][y][z] = flightNo;[/ICODE] You're not buying …

Member Avatar for cursedbyfreud
0
169
Member Avatar for Jicky

You've asked before - [url]http://www.daniweb.com/forums/thread98050.html[/url] But you failed to engage in any kind of discussion, so there's no point you being here any more.

Member Avatar for Salem
0
68
Member Avatar for kiel19

> how to write c code function implementing the first heuristic algorithm That does look like C code, what's the question?

Member Avatar for Salem
0
142
Member Avatar for N_ss

You could look at the answers to previous "help, final year project" threads. There's some real gems from experienced users like Narue.

Member Avatar for ithelp
0
86
Member Avatar for boyz

How about reading your C book to discover that there is no operator overloading in C?

Member Avatar for vijayan121
0
105
Member Avatar for enuff4life
Member Avatar for enuff4life

Model your code on something like say strcat(), where you pass the array of where you want to store the result.

Member Avatar for Ancient Dragon
0
137
Member Avatar for tweedsmuir

The first thing to suggest would be to press "print screen" to take a snapshot of the entire desktop, and then save the result as a PNG file (using mspaint). This is to tell whether it's a problem with the physical display device (the same corruption isn't seen in the …

Member Avatar for tweedsmuir
0
96
Member Avatar for Biro

> adding 1/10 of an inch for each 2 years over age 28 So you need to subtract that before doing the rest of the calculations which depend on that condition.

Member Avatar for danzona
0
132
Member Avatar for boyz

How about posting your latest code instead of just moaning it doesn't work.

Member Avatar for Salem
0
97
Member Avatar for jaepi

There isn't one. The nearest thing to a "profile" would be the environment variables, which are accessible using getenv(). Or you could construct your own class based on using a file stream to parse a text file looking for [section] and name=value pairs.

Member Avatar for vijayan121
0
166
Member Avatar for ssriram
Member Avatar for ssriram
0
49
Member Avatar for mafarjeh

[url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] [url]http://www.catb.org/~esr/faqs/smart-questions.html#homework[/url] In fact, the whole ASQ should be required reading.

Member Avatar for ithelp
0
135
Member Avatar for wijitha

Asked already - [url]http://www.daniweb.com/forums/thread97727.html[/url] How about posting what you tried?

Member Avatar for ithelp
0
87
Member Avatar for ORA-MAN

Sounds like you need to settle in for a nice reading session. [url]http://dev.mysql.com/[/url]

Member Avatar for ORA-MAN
0
89
Member Avatar for Jicky

If you're using the same fossil compiler as in your other post, then you definitely need to upgrade. [url]http://www.lvr.com/usb.htm[/url]

Member Avatar for Salem
0
188
Member Avatar for Jicky

Use a compiler which is more in tune with your OS. What you've got is a horse-drawn Ferrari. Then visit. [url]http://www.lvr.com/parport.htm[/url]

Member Avatar for Salem
0
71
Member Avatar for Jicky

But unless your real OS is really DOS, then poking around in physical memory isn't going to work. The OP should begin by saying what OS/Compiler they have, then we can suggest a way forward.

Member Avatar for Salem
0
107
Member Avatar for boyz
Member Avatar for marvz

[url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] Read it, and learn how to not sound like a complete script kiddie wannabe loser. Do you hand your assignments in looking like you wrote them on your phone? Plus if your ultimate aim is a career in the tech world, then reasonable English is a must. Writing like …

Member Avatar for marvz
0
156
Member Avatar for mark0420

gets() is the one thing you should NEVER use. It's totally unsafe.

Member Avatar for mark0420
0
109
Member Avatar for boyz

He probably wants this [url]http://c-faq.com/expr/xorswapexpr.html[/url] Which is of course broken and pointless, yet some people still think it is somehow relevant to the modern world of programming in high level languages. It was nothing more than a neat trick you could pull off in assembler.

Member Avatar for Duoas
-1
127
Member Avatar for boyz
Member Avatar for doublex
0
92
Member Avatar for The Dude

Of course testing your hearing using an audio device with the response of a wet sock is going to give you the wrong impression. Do you test your eyes by holding up various glass bottles and jars to see which gives you the best "improvement"?

Member Avatar for bumsfeld
0
483
Member Avatar for johnnyjohn20
Member Avatar for boyz

> can you tell how and by whom this is decided what action to be taken Yes, the troll under the bridge eats your code.

Member Avatar for biswajit.bhuyan
0
64
Member Avatar for boyz

[url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] Not to mention [url]http://www.daniweb.com/forums/announcement118-2.html[/url]

Member Avatar for zandiago
0
90
Member Avatar for rxylion
Member Avatar for Ancient Dragon
0
124
Member Avatar for geckoo

Would you care to elaborate on which version of Borland C++ you have? Lemme guess, your programs begin with #include <graphics.h> and your OS is something like XP ?

Member Avatar for Sturm
0
141
Member Avatar for amnajvd

[URL="http://www.catb.org/~esr/faqs/smart-questions.html#writewell"]Don't Capitalise Each Word[/URL]

Member Avatar for Ancient Dragon
0
327
Member Avatar for powellinthesout

First 3 lines, 3 mistakes. iostream.h is not a standard header. If your C++ compiler doesn't understand #include <iostream> then it's too old. conio.h is an obsolete header from the days of DOS. And finally main doesn't return void, it returns int. All nicely(sic) presented without any code tags at …

Member Avatar for Lerner
0
76
Member Avatar for amitshukla

See your own thread - [url]http://www.daniweb.com/forums/thread97959.html[/url] Thanks for bumping a 3-YEAR old thread with your inane "me too" post.

Member Avatar for Salem
0
139
Member Avatar for samaru

> I would like to request the letter count and word count code in C programming I would like to request that you read [URL="http://www.daniweb.com/forums/announcement8-2.html"]THIS FIRST[/URL]

Member Avatar for Salem
0
401
Member Avatar for Salem

For a while at least. [url]http://www.vnunet.com/vnunet/news/2203284/application-attacks-idiocy[/url]

Member Avatar for vegaseat
0
75
Member Avatar for Knad

> for(int x=1; x < width; x++) Since your convolve involves looking at +/- 1 from the specified XY position, you're stepping off the right/bottom edge of your image and into big trouble. > return imgGrey.returnImg(); What exactly is this returning? Not a pointer to a local variable by any …

Member Avatar for Knad
0
292
Member Avatar for valdix

Have you got as far as say - extracting all the factors for a given number?

Member Avatar for Salem
0
156
Member Avatar for wambooman

> cin>>sa1; This will stop at the first space anyway. So use getline() to read a whole line. > for(i;i<49;i++) Use the length of the string, rather than the length of the array. For what it's worth, you don't need to copy your std::string to a char array just to …

Member Avatar for Duoas
0
125
Member Avatar for yashwanta

> what factors would you consider when selecting a SCSI drive? If you live in the northern hemisphere, you need to get one which spins clockwise, whereas if you live in the southern hemisphere, you need one which spins anticlockwise ;)

Member Avatar for Lardmeister
0
77
Member Avatar for n.aggel

1. Don't #include C files, otherwise you end up with "multiply declared" errors from the linker. 2. If you have multiple source files, as in this example, the command line would be something like [icode]gcc main.c func.c[/icode] In an IDE environment, you would add the two source files to your …

Member Avatar for n.aggel
0
98
Member Avatar for tumstech

[url]http://www.delorie.com/djgpp/[/url] This will get you a nice flat address space, and still be able to access DOS. The next bit depends on how portable your code actually is as to how much work it would take to compile with a new compiler.

Member Avatar for Salem
0
157
Member Avatar for ravenous

You could try reading a known mono TIF image to make sure you know what values are expected for the various header fields. Also, being a mono image, shouldn't it be just 1 bit per pixel, and not 1 byte set to 0x00 or 0xFF (just a guess)?

Member Avatar for ravenous
0
5K
Member Avatar for ice_tea_lemon

Pretty much everywhere, you have if ( var = value ) where you should have if ( var =[B][COLOR="Red"]=[/COLOR][/B] value )

Member Avatar for Salem
0
111
Member Avatar for n.aggel

Use fgets() for everything. So for example. [code=c] int Menu() { char buff[BUFSIZ]; int choice = 0; /* menu choice value */ /* with the following loop we force the user to choose * on of the 3 valid answers: 1, 2, or 3 */ do { fprintf(stdout, "Please choose …

Member Avatar for iamthwee
1
324
Member Avatar for Jishnu

If that is your code, then your compiler is broken. It does what it says with gcc. But if this is your code (note the 1-character difference), then "Hello" is printed once. [code] #include<stdio.h> int main() { for(;0;); printf("Hello"); return(0); } [/code] Now, did you paste what you tried, or …

Member Avatar for WaltP
0
98
Member Avatar for Salem

DW is very temperamental at the moment. I can read lots of threads, then it all lags up for about 5-10 minutes or so. Of course by then I've answered a few questions and then I get the "you must wait 30 seconds" between posts, which is a bummer since …

Member Avatar for Dani
0
70
Member Avatar for DREAMER546

How about [code] enum objType {stone,scissors,paper}; objType User1; objType User2; [/code]

Member Avatar for DREAMER546
0
114

The End.