5,237 Posted Topics
Re: 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 … | |
Re: 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. | |
Re: [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. | |
Re: What do you mean 'represent' [ICODE]double myVar = 1.45E-15;[/ICODE] should be fine. | |
Re: Try [ICODE]fprintf(pFile,"[COLOR="Red"]%f[/COLOR] ",State[STATE_SONAR_0+i]/255[COLOR="Red"].0[/COLOR]);[/ICODE] | |
Re: > 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 … | |
Re: 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. | |
Re: [url]http://www.microsoft.com/express/vc/[/url] [url]http://www.thefreecountry.com/compilers/cpp.shtml[/url] | |
Re: 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 ..... | |
Re: 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. | |
Re: What format(s) of documents are you expected to deal with? - DOC - PDF - etc etc | |
Re: 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 … | |
Re: > 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 … | |
Re: [url]http://en.wikipedia.org/wiki/Rogue_%28computer_game%29[/url] Using ncurses. | |
Re: What marks the end of the string? IIRC, some of the really low level interrupt routines used '$' to mark the end of the string. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: > 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 … | |
Re: It would be a hell of a lot easier if the code had some indentation (or indeed any). | |
[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. | |
Re: How about doing your calculation AFTER you've input all the parameters which the calculation depends on. | |
Re: > char recordd[sizeof(record)] = {0}; > It isn't doing what you think it is. It's doing the same as your memset. | |
Re: [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. | |
Re: [ICODE]chmod u+x shellProgramming [/ICODE] To make it executable [ICODE]./shellProgramming [/ICODE] To run it. | |
Re: > 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 … | |
Re: Look at the errno which open sets, when it returns with a failure? | |
Re: I think I'll just ignore you for 24 hours then. [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] | |
Re: 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 … | |
![]() | Re: > 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" … |
Re: [url]http://en.wikipedia.org/wiki/Arithmetic_Logic_Unit[/url] [url]http://en.wikipedia.org/wiki/Front_side_bus[/url] | |
Re: [url]http://cboard.cprogramming.com/showpost.php?p=682612&postcount=20[/url] | |
Re: > 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 … | |
Re: 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 … | |
Re: [url]http://www.daniweb.com/forums/announcement8-2.html[/url] | |
Re: That's usually a function of your operating system. | |
Re: > I was told by the compiler log that I have 1 error and I cant figure it out! Post your error messages then. | |
Re: > 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. | |
Re: Single quotes disable substitution, so perhaps [icode] sed "$target,$lines d" s27.cnf > f2.cnf sed $target','$lines' d' s27.cnf > f2.cnf [/icode] | |
Re: 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). | |
Re: > 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: | |
Re: 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). | |
Re: 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). | |
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 … | |
Re: [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. | |
Re: 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 … | |
Re: > 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 … |
The End.