5,237 Posted Topics
| |
Re: > 2. When should I call INT 21h? Whenever you want DOS to do something for you. > 3. MOV AH, 9h - why do I call 9h (print) on AH (Accumulator High) and not AS? Because that's what the manual says. [url]http://www.ctyme.com/intr/rb-2562.htm[/url] > OurString there's supposed to be just … | |
Re: Put a data access breakpoint on the address of argc, then wait for something to happen. | |
Re: > I`m a computer science student, I have this problem!: > I don`t know which programming language I should learn! [quote=E. W. Dijkstra] [url]http://www.quotationspage.com/quote/788.html[/url] Computer Science is no more about computers than astronomy is about telescopes. [/quote] There's a hell of a lot more to it than simply being able … | |
Re: Large companies spend millions of dollars on this problem, with dubious levels of success. And you're expecting free homework answers on a place? | |
Re: I've no interest in helping people who make it unnecessarily difficult to help them, by using proprietary and bug-ridden formats like MSWord. | |
Re: > I know how to add values to an array. I am developing an application > with RTAI, comedi and Qwt (plotting in realtime). Oh please tell me you've used a profiler to work out where the real hot spots are, and not just picked random lines of code out … | |
Re: Read this and figure out how many rules you've broken :@ :@ :@ [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] We're not here to be yelled at by some oik into doing their homework, just for your pleasure to sit back and wait for answers to arrive in your inbox!!!!! *PLONK* | |
Re: Perhaps start with the realisation that disk seek times are measured in milliseconds, and processor instruction times are measured in nanoseconds (that's 1E6 times quicker). It's probably nearer 1E7 since fast processors are sub-1-ns and disk seek times are at best 5ns (or worse). What's 1E7 look like? Well if … | |
| |
Re: > But i have no idea on what kinda system to develop. [quote=Ned's Mother] [url]http://www.tv.com/the-simpsons/hurricane-neddy/episode/1446/summary.html[/url] You gotta help us, Doc. We've tried nothing and we're fresh out of ideas! [/quote] Here's an interesting question for you. Why, out of all the forums on the web, is only Daniweb plagued by … | |
Re: Isn't that part of the lecturers job, to recommend reading material to you? | |
Re: Your answer seems fine to me. There are many different ways of solving the problem, but whether any of them are "better" would be a subjective statement IMO. | |
Re: Huh? [code] printf( "Boom!!!!!\n" ); [/code] [code] playSound("boom.wav"); [/code] [code] shellExecute(NULL,"open","boom.mpg",0,0,SW_SHOW); [/code] Or do you want to clarify your requirement, as opposed to clarifying your [URL="http://www.catb.org/~esr/faqs/smart-questions.html#urgent"]urgency[/URL] | |
Re: But that's the real trick, being able to turn your ideas into working code. | |
Re: > and replace your the previously mentioned code with this: > sum += n * (int)pow(2, k); Bad idea. a) it's slower b) you're at the mercy of whatever inaccuracies are inherent in the floating point library. > can you guys help me make it smaller. Sure a) use code … | |
Re: > I have no idea where to start. Read a file, and print it out unmodified. Then add code to find a fixed string. Then add code to implement each feature of a regexp in turn. Each is a small-ish step, built on the success of the previous step. | |
Re: Whilst you can create programs from multiple programming languages, the "interface" tends to be at the DLL or program executable level. You're not going to be able to mix/match several languages in the same source file. | |
Re: > I think that when being class taught you are worse off. Yeah, judging from all the brain-damage we see posted around these parts saying "my teacher said use this....", where some snippet of code is flat-out wrong. | |
Re: Ideally, you should debug with every optimisation turned off. Then you get to see the code do pretty much what you wrote it to do. | |
Re: If clicking a link is too much, the diff code is just way beyond you ;) | |
Re: Read the file twice, first time works out the total size, then you allocate what you need and read again. Or maybe another way.... | |
Re: It would be a lot more useful if you told us the actual name/version of the tools you're using to compile / assemble your programs. Also, the actual details of the hardware you plan to load this onto. | |
Re: - Learn to program (stuff which is relevant to all programming - eg. design) - Learn to program in C++ (language specific) - Learn to program in C++ on Windows (platform specific). Step 3 might be your goal for the moment, but you're not going to stay there for the … | |
Re: [quote=Douglas Adams] [url]http://www.quotationspage.com/quote/22644.html[/url] I love deadlines. I love the whooshing sound they make as they fly by. [/quote] . | |
[url]http://www.timesonline.co.uk/tol/news/politics/article5439604.ece[/url] | |
[quote] xxxxxxxxxxxx has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her. [/quote] How about saying this BEFORE I spend a good deal of time composing a message and not afterwards :( | |
Re: If you use vectors, the first problem goes away, and you get a useful answer to the second problem. | |
Re: Getting the modulo result is a natural outcome of working out the division. It's just that when you do x/2, the compiler just looks at a different part of the answer. | |
Re: > i'w wondering whether there is a difference between fstream and stdio.h One is C++, the other is C > i'd need to get every single char and number with getc() and translate i t into whole numbers like 10 am i right ? It's one way, not the only … | |
Re: > int transp(int i, int j, int m, int n, int temp, int mat[i][j]); C doesn't have variable sized arrays, so this should be [ICODE]int transp(int i, int j, int m, int n, int temp, int mat[MAX_ROW][MAX_COL]);[/ICODE] Ditto for the implementation as well. You might only use the top-left quarter … | |
Re: [url]http://linux.die.net/man/2/settimeofday[/url] a) what have you tried b) did you have permission to set the clock - it's a privileged operation. | |
Re: Well arrays cannot be copied as such. Consider using something like [code] struct point { int x; int y; }; [/code] which is more meaningful than an array of 2 points, and would have proper copy semantics for the vector. | |
Re: Use tolower() and toupper() in ctype.h Works on a per-character basis, so you need a loop. | |
Re: "if you write like a semi-literate boob you will very likely be ignored" [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] | |
Re: Would you want to buy a car built by the booze-hounds in the afternoon? "Hey Joe, where does this bit go?" "Dunno, on there I think - just use a hammer, it'll go" | |
Re: > i dont get how to do it. I tried hard but dont' get it.! Which part? The counting of years from 1 to 50 part? Or the adding 8% part? Post your best effort so far. | |
Re: > If we consider a pointer variable if takes size of 2 bytes Jeez, how old is your compiler? | |
Where's Waldo? [url]http://news.bbc.co.uk/2/hi/uk_news/politics/6244358.stm[/url] Here's Waldo! [url]http://news.bbc.co.uk/2/hi/uk_news/politics/7812582.stm[/url] | |
Re: First thing I would do would be File->Save page as... on both systems, then do a compare. | |
Re: > I have used outportn(base,pin); cmd with header file dos.h Which is older - you or your compiler? I'm figuring you're using some fossil like TurboC. The answer is to "get with the times", and use a compiler which is actually compatible with your OS, and not something which is … | |
[url]http://technology.timesonline.co.uk/tol/news/tech_and_web/article5489134.ece[/url] | |
Re: > Lab9 So it's at the end of the course? > Optional Extras A non-compulsory question which is a bit harder, to sort out "the men from the boys" Seriously, "banner" was a fun teaser in high school. Unless this is the most basic of intro courses, then standards are … | |
Re: > while(addresses>>link>>name) Having got to the end of the addresses file once, where do you think you'll start off from with the second word from the keywords file? Even for a short program, your indentation is mis-leading and needs work. | |
Re: I'd be glad if you could read all the intro threads which describe how to post code. | |
Re: Are you upgrading your hardware as well? IIRC, MS provide a "Vista ready" testing kit, try that perhaps. Is there anything "new" in vista which is a "must have" for you? | |
Re: > What should I do next time to prevent this? Start with a design. Even simple things like [code] do { if ( inputPresent ) { doInput(); } moveEnemies(); dead = checkGameOver(); redrawScreen(); } while ( !dead ); [/code] Also, the moment you can no longer see the { and … | |
Re: > dbObjectPositionX = x; A few lines ago, dbObjectPositionX was a function call. |
The End.