5,237 Posted Topics
Re: > but the text file doesnt appear, whats wrong with this code 1. You're writing binary data, not a text file. So if you try to look at it using say notepad, you'll see garbage. 2. You open the file for writing each time, so ALL previous writes are lost. … | |
Re: > And if you could be very specific. Kinda ironic, given that your post is about as vague as it is possible to get, and still remain comprehensible English. How about posting some actual code you TRIED? FWIW, my first thought is you've screwed up over ANSI/UNICODE and your indiscriminate … | |
Re: > when you could just create a unique namespace and not worry about it? But don't all namespace names occupy the same namespace? No doubt there is more than one package out there which uses say the 'graphics' namespace. Trying to use two packages with badly chosen generic names could … | |
Re: I'd say such questions belong here -> [url]http://www.daniweb.com/software-development/legacy-and-other-languages/42[/url] Though TBH, you'd be better off finding a forum with an actual specialisation in Objective-C, rather than just relying on a couple of people who might know a couple of things. | |
Re: > and ignore the crazy code-formatting problems: Sorry, that just gets your post ignored. Nobody here can be bothered to wade through more than a page full of code that was indented [URL="http://www.youtube.com/watch?v=0bt9xBuGWgw"]by a dancing parrot[/URL]. Good indentation will tell you a lot about where it is going wrong without … | |
Re: Step 1 is figure out which language you're programming in. This is the C++ forum, and the code you tried to compile was (as far as the compiler was concerned) C++. What you actually wrote however was all C. The second step is step back and think about what you're … | |
Re: He's referring to the way you write them when you wish to overload the operators. [url]http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.14[/url] However, 1. He's 3 years too late with the information. 2. It's off topic as the thread was about how the prefix and postfix forms affect integers, and not about how to write overload … | |
Re: > I want to make a Program that takes two inputs one initial number and one final number for example if I input 1 as the beginning number and 13 as the final, [URL="http://www.youtube.com/watch?v=-ZxHAZChcYU"]So make it[/URL] Or at least figure out how to google "fibonacci sequence". | |
Re: [url]http://msdn.microsoft.com/en-us/library/ms686298%28v=vs.85%29.aspx[/url] Sleep(), without all the verbiage at the start. | |
Re: There's always [URL="http://www.freedos.org/"]freedos[/URL] if you want a simple open source OS to go look at. | |
Re: # while( !infile.eof() ) Don't use eof() to control the loop [url]http://sourceforge.net/apps/mediawiki/cpwiki/index.php?title=Feof[/url] When you copied the data file, did you copy it in binary mode, or text mode? That is, did you convert the \r\n line endings of windows into the \n line endings of Linux? Use the debugger to … | |
Re: > Last edited by syria718; 24 Minutes Ago at 09:15. Reason: i cant'n post perfectly sorry,, It seems you still can't - you still haven't figured out [co[B][/B]de][/code] tags. How many hints do you need to do this? | |
Re: Don't forget to mention where else [URL="http://stackoverflow.com/questions/6718088/using-ctypes-in-python-to-acces-a-c-dlls-methods"]you posted[/URL], so that we don't waste OUR time saying what has already been said. You might be considerate to post a link back here on the SO site. | |
Re: Perhaps you should start with the language(s) you know. Any [URL="http://en.wikipedia.org/wiki/Turing_completeness"]complete[/URL] language will in principle do the job. Mostly, it will depend on YOUR skill with a particular language. | |
Re: What were YOUR answers? Then we can correct your mistakes and fill in the blanks. Whereas at the moment, it looks like begging for some spoon-feeding. | |
Re: [url]http://en.wikipedia.org/wiki/The_Blind_Watchmaker[/url] Plus other books by Richard Dawkins are good reading for explaining evolution. | |
Re: Are we supposed to guess what OS you're using, or what _write is supposed to do? [url]http://linux.die.net/man/2/write[/url] If it's this "write", then the second parameter needs to be a POINTER to some memory, not the munged result of your calculation. No wonder it crashes. | |
Re: > Hey, i found quite a few methods to ADD TWO NUMBERS WITHOUT USING THE + OPERATOR Do any of them actually work over the full range of integers the same as regular addition would? This method fails miserably on all negative numbers. | |
Re: > Getting Error after installing Turbo C.... how to rectify this problem. Well you could complain to your school, and get them to spend THEIR time and money on supporting obsolete tech (you paid them, one way or another, make them earn it). Whilst some of us know how to … | |
Re: Or just [URL="http://www.maplin.co.uk/24-hour-segment-timer-32996"]this[/URL] on the power lead. The programming is primitive to say the least, but hey, whatever. Or go up a level and use some [URL="http://www.uk-automation.co.uk/products/Marmitek-X10-Appliance-Module-AM12U.html"]X10[/URL] kit. You'll also need a controller (and software) loaded onto your PC as well, but it could be fully automated at that point. | |
Re: It's because eax is used as the return value register. If you look at the assembly for a normal function, you'll see a move TO eax when the function returns, and a move FROM eax in the caller, to assign the destination variable. | |
Re: > Turbo c++ problem! Pressing ALT-F4 might be a better option, followed by - delete fossil compiler from system - install one (or more) of these fine modern compilers. [url]http://www.microsoft.com/express/Downloads/[/url] [url]http://www.smorgasbordet.com/pellesc/[/url] [url]http://www.codeblocks.org/[/url] | |
Re: Looks like [URL="http://www.daniweb.com/software-development/cpp/threads/371271"]this[/URL] and [URL="http://www.daniweb.com/software-development/cpp/threads/371385"]this[/URL], with a new username. Show us what you managed to figure out so far, so we only have to fill in the gaps (as opposed to giving you everything, which simply won't happen). | |
OK, so this morning I see that the folder icon in the forum list is yellow, meaning there is something unread since my last visit. In I go, and there is a big fat "[B]You can only see threads that you have started[/B]" I haven't started anything there, so why … | |
Re: > X-Originating-IP: [41.138.178.89] This is the big giveaway sign [url]http://www.ip-adress.com/ip_tracer/41.138.178.89[/url] P address [?]: 41.138.178.89 [Whois] [Reverse IP] IP country code: NG IP address country: Nigeria IP address state: Lagos IP address city: Lagos Mmm, Nigeria, home of the 419 scammers. | |
Re: [URL="http://lmgtfy.com/?q=rfid+development+kit"]$42,385,231.98[/URL] | |
Re: Lines 66 and 81, you're examining the WHOLE array, not the number of valid entries entered. If you had a separate variable which you increment ONLY when the data is valid, you would know when to stop. | |
Re: So did you choose this project, or were you given it? If you chose it, why?, when you don't seem to know anything about it. Or for that matter, be able to do a [URL="http://www.google.co.uk/search?q=ABC+ALGORITHM+FOR+CLUSTERING"]google search[/URL]. For one thing, you need to know how other people typically solve the problem … | |
Re: So what actual output are you expecting from that? Does it matter which of TLT090991 or TLT090992 you get? Reading the [URL="http://www.ss64.com/bash/uniq.html"]manual page[/URL] seems to offer some ideas. | |
Re: You could print off some threads from the Geeks forum and compost those. It's sure to make great compost ;) Oh, and I have 3 compost bins, which I named after the [URL="http://en.wikipedia.org/wiki/Cult_of_skaro"]Daleks[/URL] | |
Re: Well the easy answer is to upgrade to a 32-bit compiler for your modern OS, then you get 2GB segments, not 64K segments. But I'm guessing you're stuck with stone age tools from a [URL="http://online.wsj.com/article/SB10001424052748703515504576142092863219826.html"]stone age educational system[/URL]. The answer (if you can call it that) is to NOT have … | |
Re: Nice - you call fork() in a while(1) loop. No wonder the system is trashed. [url]http://en.wikipedia.org/wiki/Fork_bomb[/url] | |
Re: [url]http://cboard.cprogramming.com/c-programming/139292-find-home-path-c-environment.html[/url] Suggest sticking to asking on one forum at once. [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] or [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] | |
Re: [URL="http://en.wikipedia.org/wiki/Flowchart"]no[/URL] <- have you searched google -> [URL="http://en.wikipedia.org/wiki/Flowchart"]yes[/URL] | |
Re: > At console I enter 023[B][COLOR="Red"]8[/COLOR][/B]284, then all the printfs outputs 0. When did 8 become a valid octal digit? | |
Re: Seems like the sort of thing that should be testable in a couple of minutes - did you try it? > Also specify the order of precedence for variables when they need to be accessed. Again, something that google will easily find 1000's of pages with the operator precedence table. | |
Re: > I have a new found respect for programmers and programming in general. LOL - and you want someone to do your homework after that little speech. No, stop, my sides are splitting, I can't stop LAUGHING!!!!!!! Thanks kid, that's the best funny I've seen in a long while. Good … | |
Re: It's a function of your OS and compiler. If you're using a protected OS and your compiler is compatible with your OS (say Linux+gcc or Windows+visual studio), then you're dealing with logical addresses. You can invent whatever address you like, but if you choose badly, the OS will just serve … | |
Re: > ptrdiff_t diff = (void*)p - (void*)q; I thought any kind of arithmetic on void* pointers was undefined. $ gcc -W -Wall -ansi -pedantic foo.c foo.c: In function ‘main’: foo.c:10: warning: pointer of type ‘void *’ used in subtraction If you want the number of bytes, then [ICODE]ptrdiff_t diff = … | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#beprecise[/url] Your post reads something like "I put bread in the toaster, left it for a while and it came out charcoal - I suspect the line voltage". Try posting some actual code, or maybe even just try to debug your code. Using a debugger is a good approach, but … | |
Re: > Is it sad I played Pong for 3 hours? Not as sad as [B]Creating a thread on a forum about it[/B] which in turn is not as sad as [B][I][U]Replying to such a thread [/U][/I][/B] | |
Re: [url]http://www.google.com/search?q=pdf+file+format+specification&ie=utf-8&oe=utf-8[/url] 1st link takes you to a 700+ page document telling you all you need to know. | |
Re: Well the answer would begin by you producing a debug build, then running the code in a debugger (say [URL="http://msdn.microsoft.com/en-us/windows/hardware/gg463009"]WinDbg[/URL]), and from there finding out some actual usable information about the crash. As opposed to merely speculating about where the problem might be with little or no evidence (at least … | |
Re: Step 1 would be to remove ALL the gotoxy() and clrscr() and any other decorative features until you've actually got the damn thing to work. Adding eye candy to an already working program is trivial, compared with trying to maintain it whilst you're debugging the code. | |
Re: It seems Arbus is more confused about multi-dimension arrays than you are. > But you are passing multidimensional array. So declare A accordingly (char **A[3] or char *A[3][3]). But neither of these things are anywhere near char A[][3][3], which is what the OP had to begin with. char (*A)[3][3] would … | |
Re: 1) What are the rules of this function structure? A link to a website explaining it would be awesome. This is how function parameters were defined in what is known as "K&R-C", which existed before ANSI/ISO got in on the act. [url]http://stackoverflow.com/questions/22500/what-are-the-major-differences-between-ansi-c-and-kr-c[/url] 2) What are the advantages of this function … | |
Re: [ICODE]g++ -S foo.cpp[/ICODE] will produce a foo.s file, which is the ASM code corresponding to your source code. If you use custom makefiles in c::b, you might be able to generate them automatically. | |
![]() | Re: > What's yours. I walk past it twice a day. > How do you keep in shape. Is "round" a shape? [url]https://www.msu.edu/~jerrymc/humor/exercise.html[/url] |
Re: Well on the Linux box, you do this. [ICODE]gcc -g prog.c valgrind ./a.out[/ICODE] valgrind will tell you a lot about all kinds of memory abuse (overrun, use after free, uninitialised accesses etc). When it is clean in valgrind, have another go on windows. |
The End.