5,237 Posted Topics

Member Avatar for Somali Rathore
Member Avatar for yuriythebest

> 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 …

Member Avatar for iyercb
0
149
Member Avatar for Salem
Member Avatar for Aia
0
71
Member Avatar for dm215
Member Avatar for dm215
0
99
Member Avatar for 3pid

> 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 …

Member Avatar for Ramy Mahrous
0
128
Member Avatar for vishal_tulsiyan

Large companies spend millions of dollars on this problem, with dubious levels of success. And you're expecting free homework answers on a place?

Member Avatar for Nick Evan
0
92
Member Avatar for nimalka

I've no interest in helping people who make it unnecessarily difficult to help them, by using proprietary and bug-ridden formats like MSWord.

Member Avatar for Salem
0
90
Member Avatar for a10m84

> 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 …

Member Avatar for Salem
0
145
Member Avatar for musava

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*

Member Avatar for Salem
-1
78
Member Avatar for TasostGreat

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 …

Member Avatar for TasostGreat
0
1K
Member Avatar for akb_behnam
Member Avatar for tibrah001

> 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 …

Member Avatar for Ezzaral
0
91
Member Avatar for gumber
Member Avatar for ddanbe
0
88
Member Avatar for xtremerocker

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.

Member Avatar for xtremerocker
1
115
Member Avatar for alfred210989

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]

Member Avatar for alfred210989
0
1K
Member Avatar for igok
Member Avatar for igok
0
122
Member Avatar for al3x748769

> 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 …

Member Avatar for Murtan
-1
123
Member Avatar for jmoo5

> 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.

Member Avatar for Salem
0
91
Member Avatar for abhi_marichi

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.

Member Avatar for death_oclock
0
140
Member Avatar for noodlecode

> 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.

Member Avatar for Freaky_Chris
0
160
Member Avatar for guest7

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.

Member Avatar for StuXYZ
0
97
Member Avatar for sirihoney
Member Avatar for DmD

Read the file twice, first time works out the total size, then you allocate what you need and read again. Or maybe another way....

Member Avatar for Salem
0
285
Member Avatar for resystor

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.

Member Avatar for BlackSun
0
3K
Member Avatar for cppnewb

- 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 …

Member Avatar for Rashakil Fol
0
111
Member Avatar for david7

[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] .

Member Avatar for Freaky_Chris
0
271
Member Avatar for Salem

[url]http://www.timesonline.co.uk/tol/news/politics/article5439604.ece[/url]

Member Avatar for Dave Sinkula
1
162
Member Avatar for Salem

[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 :(

Member Avatar for John A
0
179
Member Avatar for massivefermion

If you use vectors, the first problem goes away, and you get a useful answer to the second problem.

Member Avatar for Salem
0
99
Member Avatar for TasostGreat

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.

Member Avatar for TasostGreat
0
110
Member Avatar for TasostGreat

> 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 …

Member Avatar for TasostGreat
0
526
Member Avatar for skynwa

> 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 …

Member Avatar for Patel S
0
267
Member Avatar for nvnq

[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.

Member Avatar for nvnq
0
75
Member Avatar for VernonDozier

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.

Member Avatar for VernonDozier
0
149
Member Avatar for bluebird

Use tolower() and toupper() in ctype.h Works on a per-character basis, so you need a loop.

Member Avatar for bluebird
0
103
Member Avatar for marilou arceño

"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]

Member Avatar for Salem
-2
31
Member Avatar for Ancient Dragon

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"

Member Avatar for GrimJack
0
206
Member Avatar for angel1

> 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.

Member Avatar for BlackSun
0
115
Member Avatar for ravikiran032

> If we consider a pointer variable if takes size of 2 bytes Jeez, how old is your compiler?

Member Avatar for Alibeg
0
90
Member Avatar for Salem

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]

Member Avatar for jbennet
0
55
Member Avatar for jdoughty
Member Avatar for caperjack
0
93
Member Avatar for abhi_marichi

> 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 …

Member Avatar for abhi_marichi
0
150
Member Avatar for Salem

[url]http://technology.timesonline.co.uk/tol/news/tech_and_web/article5489134.ece[/url]

Member Avatar for sneekula
0
65
Member Avatar for jacline

> 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 …

Member Avatar for Salem
0
91
Member Avatar for serhannn

> 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.

Member Avatar for serhannn
0
262
Member Avatar for winry

I'd be glad if you could read all the intro threads which describe how to post code.

Member Avatar for winry
0
293
Member Avatar for asameh99

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?

Member Avatar for roryt
0
167
Member Avatar for minas1

> 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 …

Member Avatar for Comatose
0
209
Member Avatar for atish00
Member Avatar for tomtetlaw
Member Avatar for Salem
0
89

The End.