5,237 Posted Topics

Member Avatar for seeker55

Well since none of us attended your course, and apparently, neither did you, what exactly are you hoping to learn in the next 48 hours? Without knowing the syllabus ("algorithms" is just too vague), we could tell you some good stuff, but it would be still useless for your immediate …

Member Avatar for seeker55
0
98
Member Avatar for saraabasi

And we need some more effort from you. [url]http://www.daniweb.com/forums/announcement125-2.html[/url] Dumping your assignment, saying "thanks" and posting a smilie doesn't cut the mustard.

Member Avatar for Salem
0
36
Member Avatar for K1Kingy

[url]http://www.lvr.com/usb.htm[/url] Plus you'll need a reasonably new C++ compiler, and not some crusty old fossil like Turbo C.

Member Avatar for Salem
0
64
Member Avatar for SonxQ7

What do you mean 'represent' [ICODE]double myVar = 1.45E-15;[/ICODE] should be fine.

Member Avatar for jephthah
0
127
Member Avatar for rob_xx17

Try [ICODE]fprintf(pFile,"[COLOR="Red"]%f[/COLOR] ",State[STATE_SONAR_0+i]/255[COLOR="Red"].0[/COLOR]);[/ICODE]

Member Avatar for jephthah
0
96
Member Avatar for narendharg

> but how can we print a statement without using a printf in LINUX. Well given say [inlinecode] char *p = "this is a message"; [/inlinecode] You can have [inlinecode] puts(p);[/inlinecode] or [inlinecode] while ( *p ) putchar(*p++);[/inlinecode] or [inlinecode] write(1,p,strlen(p));[/inlinecode] > Could Some one tell me the addresses of …

Member Avatar for jephthah
-1
820
Member Avatar for daviddoria

Well strcat does modify the string, and as written your code would almost certainly segfault if allowed to run. Stripping out (or avoiding) const because it's inconvenient is the wrong way to go.

Member Avatar for Narue
0
106
Member Avatar for joma4real

[url]http://www.microsoft.com/express/vc/[/url] [url]http://www.thefreecountry.com/compilers/cpp.shtml[/url]

Member Avatar for Narue
0
57
Member Avatar for devaradhan

Are we to assume that you're programming for a Windows GUI as opposed to say a Mac GUI or a Linux GUI or a .....

Member Avatar for Duoas
0
72
Member Avatar for chico1st

thisLibrary.lib -lmingw32 You need to check the naming convention, and whether (or not) you need the initial -l For example, saying [COLOR="Red"]mingw32[/COLOR] could really mean lib[COLOR="Red"]mingw32[/COLOR].lib Any libraries of your own would need to follow the same naming convention.

Member Avatar for lich
0
84
Member Avatar for JochenM
Member Avatar for gilly_kumar

What is your basis for ruling out a memory leak? 250K * 8000 is 2GB, which is close to the upper limit of what common 32-bit operating systems allocate to the user address space. > Memory overwrite or overflow, if it had happened, it should have crashed initially itself. Whilst …

Member Avatar for lich
0
274
Member Avatar for bgbnbigben

> if (f == 1||3) This doesn't do what you think it does. It's actually [ICODE]if (f == 1 || 3 != 0 )[/ICODE] The latter being trivially true all the time. Second, a DFS search may be simplified by using a recursive function. I notice that you just have …

Member Avatar for bgbnbigben
1
177
Member Avatar for Phan

[url]http://en.wikipedia.org/wiki/Rogue_%28computer_game%29[/url] Using ncurses.

Member Avatar for Ancient Dragon
0
120
Member Avatar for jbennet

What marks the end of the string? IIRC, some of the really low level interrupt routines used '$' to mark the end of the string.

Member Avatar for jbennet
0
118
Member Avatar for k2k

Perhaps [ICODE]cp -r /home/henry/originalDir[COLOR="Red"]/*[/COLOR] /home/henry/newDirectory[/ICODE] > by the way, what is the difference between cp and hard link? A hard link isn't a copy of the file, but two directory entries pointing at the SAME part of the disk. Changing the file via one of them also changes the file …

Member Avatar for Salem
0
93
Member Avatar for alannabrittany

Well at last you've posted what you're going to use to implement it. Post your attempt in this forum. [url]http://www.daniweb.com/forums/forum9.html[/url] Evaluating RPN expressions typically uses a stack and goes like this - see a number, push it onto the stack - see an operator, pop the required number of operands …

Member Avatar for Stereolad
0
164
Member Avatar for Crushyerbones

I would suggest you make everything else work before getting over elaborate on the user interface. Look at what you're required to do for the assignment and make sure you do that much first. If you've got time left at the end, then you can have fun making it look …

Member Avatar for Salem
0
111
Member Avatar for Traicey

Make a backup of your code. Then keep chopping down the code until you've got something which is small, can be posted and still replicates the problem.

Member Avatar for Nick Evan
0
77
Member Avatar for cebubinary

> FILE *fp=fopen("c:\\documents and settings\\test.txt","w"); Lemme guess, you're using Turbo C. It's no surprise really, everyone seems to for all the wrong reasons. One of these reasons being that it was written WAY (WAY) before long filenames, and spaces were allowed in filenames. This (and many other) compatibility horrors await …

Member Avatar for Nick Evan
0
253
Member Avatar for toolbox03

It would be a hell of a lot easier if the code had some indentation (or indeed any).

Member Avatar for Nick Evan
0
146
Member Avatar for Salem

[URL="http://www.daniweb.com/forums/thread124478.html"]Designer[/URL] [URL="http://www.daniweb.com/forums/thread104338.html"]Elephant[/URL] [URL="http://www.daniweb.com/forums/thread83726.html"]thinks[/URL] [URL="http://www.daniweb.com/forums/thread90244.html"]"eat[/URL] [URL="http://www.daniweb.com/forums/thread92901.html"]the world"[/URL] That pretty much sums up all that happens in the lounge. I suppose you could always [URL="http://www.daniweb.com/forums/thread103190.html"]vote elephant[/URL] as well. Brought to you by the letter [B]Ω[/B] and the number 42.

Member Avatar for GrimJack
1
121
Member Avatar for C-+

How about doing your calculation AFTER you've input all the parameters which the calculation depends on.

Member Avatar for n1337
0
140
Member Avatar for Onixtender

> char recordd[sizeof(record)] = {0}; > It isn't doing what you think it is. It's doing the same as your memset.

Member Avatar for Onixtender
0
141
Member Avatar for Magic Hands

[url]http://en.wikipedia.org/wiki/Signal_processing[/url] Unless you can find a library to do all the work, get really comfortable, there's some serious math involved.

Member Avatar for Magic Hands
0
86
Member Avatar for k2k

[ICODE]chmod u+x shellProgramming [/ICODE] To make it executable [ICODE]./shellProgramming [/ICODE] To run it.

Member Avatar for eggi
0
160
Member Avatar for Sairobi

> C'mon people I don't want you to do my work for me, just give me some help with ifstream! Lesson number 1 - Don't bump your own threads with such comments only a couple of hours after your first post. We're not paid to be your 24/7 support, and …

Member Avatar for Sairobi
0
87
Member Avatar for nanodano
Member Avatar for Salem
0
184
Member Avatar for mghmgh

I think I'll just ignore you for 24 hours then. [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url]

Member Avatar for n1337
0
292
Member Avatar for Eulerito

Then there are bugs in your code! > at every turn loop messages their values changed randomly The function is called with WM_CREATE someread contains trash, as it's an uninitialised local variable The file read function initialises someread The function then exits (and the changes to someread are lost) The …

Member Avatar for Asat232
0
117
Member Avatar for harsh2327

> not knowing the in-built functions. The only functions worth knowing are those in stdio.h, stdlib.h etc. Anything else (say conio.h and dos.h) has to be re-learnt every time you change OS/Compiler (which you'll do many times, so get used to it). Learning the boundary between "portable" and "implementation specific" …

Member Avatar for tesuji
0
207
Member Avatar for edek

[url]http://en.wikipedia.org/wiki/Arithmetic_Logic_Unit[/url] [url]http://en.wikipedia.org/wiki/Front_side_bus[/url]

Member Avatar for azwiz
0
121
Member Avatar for xyinyangx
Member Avatar for xyinyangx
0
763
Member Avatar for Beemer

> You could write a condition statement also so that the variable is on the right side Enabling enhanced compiler warnings would tell you the same no matter whether you had a constant there or not. Plus, you'll get to find out a lot of other problems as well. Swapping …

Member Avatar for Salem
0
103
Member Avatar for nagaa
Member Avatar for Salem
0
74
Member Avatar for hocuz pocuz

I'm assuming that warning came with a line number? > will always evaluate as `true' It means that if you've done something like [CODE]if ( anExpressionWhichWarnsOfAlwaysBeingTrue ) { } else { // do something important }[/CODE] Then it's telling you that something important isn't going to happen. Oh, and split …

Member Avatar for hocuz pocuz
0
111
Member Avatar for Prabakar
Member Avatar for paltech
Member Avatar for Salem
0
107
Member Avatar for gogoc
Member Avatar for hapiscrap

> I was told by the compiler log that I have 1 error and I cant figure it out! Post your error messages then.

Member Avatar for Nick Evan
0
123
Member Avatar for Aleczz

> fp = fopen( str, "w+b" ); This (in all probability) returned NULL, which you then passed on (unchecked) to another function. Where on receiving NULL, it asserted and told you what was wrong.

Member Avatar for Aleczz
0
314
Member Avatar for guest7

Single quotes disable substitution, so perhaps [icode] sed "$target,$lines d" s27.cnf > f2.cnf sed $target','$lines' d' s27.cnf > f2.cnf [/icode]

Member Avatar for eggi
0
88
Member Avatar for jesseb07

Asking on the relevant forum / mailing list for that project would be the sensible thing to do IMO. You'll find the highest concentration of people able to fix the problem, and who may have experienced something similar very recently (and thus be able to tell you what to do).

Member Avatar for jesseb07
0
152
Member Avatar for hapiscrap

> system("pause") Where's the missing ; here? Why isn't this code a reply to your other thread containing the same code, which I've just wasted my time responding to :icon_mad:

Member Avatar for Salem
0
346
Member Avatar for ara_neko25

So read your book / lecture notes on loops and conditionals, and give it your best shot. Just dumping your assignment without a line of code very seldomly gets you what you want (the answer on a plate).

Member Avatar for Salem
0
113
Member Avatar for alok mukim

I don't understand a word you're saying. [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] If you're serious about reengineering, why are you starting with the assembler (the last step), as opposed to the new/changed requirements (the first step).

Member Avatar for Salem
0
162
Member Avatar for Salem

I'm seeing some of these on occasion. "This forum requires that you wait 15 seconds between posts. Please try again in 14 seconds." But I always see my reply below it, but somehow the board though I tried to post it twice. Seen on both Vista and XP machines, both …

Member Avatar for Dani
0
136
Member Avatar for Kevin Baker

[url]http://cboard.cprogramming.com/showthread.php?t=103202[/url] Lesson 1 - [URL="http://www.catb.org/~esr/faqs/smart-questions.html#forum"]Choose your forum carefully.[/URL] Broadcasting your homework all over the net is NOT choosing carefully, it's claiming [URL="http://www.catb.org/~esr/faqs/smart-questions.html#urgent"]Urgency[/URL] by proxy.

Member Avatar for Salem
0
138
Member Avatar for Lotus_2011

So what's wrong with it? - no results - all the numbers the same? - it isn't sorting at all? - sorts in the wrong order? - it doesn't compile (hint, void main is wrong to begin with). Show some analysis of the problem as well, don't just dump the …

Member Avatar for Lotus_2011
0
121
Member Avatar for alikoli

> Because I am a very bigining in C++. So do the very beginning thing of reading in 10 names and printing them out again. That at least would mean you've made a start, and not just another homework sponge looking for a free ride through life. Also, read all …

Member Avatar for scarface3288
0
788

The End.