299 Posted Topics

Member Avatar for shahhussainit

Here, lmgtfy. Moving the text cursor: http://lmgtfy.com/?q=dos+interrupt+text+cursor Site found in 10 seconds of visual scanning http://www.ece.msstate.edu/~reese/EE3724/labs.old/lab6/desc.pdf Printing the time. http://lmgtfy.com/?q=bios+interrupts+21h Site found in 10 seconds of visual scanning: http://www.shsu.edu/csc_tjm/spring2001/cs272/interrupt.html

Member Avatar for DeanMSands3
0
329
Member Avatar for ivan3510

Here's the code rewritten in a readable format. The main task is still incomplete. #include<iostream> #include<cstdlib> #include<pthread.h> using namespace std; const int m=6; const int n=5; const int s=5; const int r=8; const int number_of_outer_threads=3; class Matrix{ int *dataArray; int rows; int columns; public: Matrix(int new_rows, int new_columns){ rows=new_rows; columns=new_columns; …

Member Avatar for ivan3510
1
214
Member Avatar for DeanMSands3

I'm trying to remember the name of a site - *pretty sure it was a wiki* - where you post different ways of writing the same program in different languages. I. E. writing "Hello World" or heap sorts in C, C++, Java, Haskell, etc. My google-fu is failing me, so …

Member Avatar for Hiroshe
0
273
Member Avatar for redalert8

@Hiroshe: I think you mean Cairo for #10, but otherwise, +1! for a nicely comprehensive list. Myself, most of my UI work is in GTK with a brief stint in MFC, but I've always wanted to do Qt. Unfortunately, I'm easily distr- ooh! What's that?

Member Avatar for DeanMSands3
0
525
Member Avatar for example868

Game development for the attention deficient: http://www.sandboxgamemaker.com/ http://research.microsoft.com/en-us/projects/kodu/ http://unity3d.com/ https://www.unrealengine.com/products/udk/

Member Avatar for DeanMSands3
0
93
Member Avatar for SpottyBlue

Dear Young Sir, Allow me to impart some valuable advice to you. This wisdom will no doubt be instilled within your malleable young mind in years to come, but you would be so much more blessed to receive sooner as opposed to later. Permit me to make this humble suggestion …

Member Avatar for DeanMSands3
0
285
Member Avatar for DeanMSands3

I've found that there are times when I need to pull down a repository, but when working with other people, there's always that certain file that holds particular user-specific customizations. We need to pull it down the first time, but every time afterward, I'd prefer it not get updated - …

Member Avatar for DeanMSands3
0
412
Member Avatar for anupam_smart
Member Avatar for DeanMSands3

Once upon a time, I read somewhere in a book (whose name escapes me) that to PROPERLY validate an email address, the regex was somewhere in the neighborhood of 200 lines of code. (It probably has something to do with all the country domains.) That number has probably gone up …

Member Avatar for pritaeas
0
318
Member Avatar for infamous1987

Nice, Moschops. For amusement, I am rewriting infamous1987's post as a proper OOP program. I'll let you know when I'm done.

Member Avatar for Kristian_2
0
170
Member Avatar for ckide

How are you at remembering to garbage collect and release unnecessary resources? You'll build the application faster in Java. You'll run the application faster in C++. That's been argument for years. Pick one.

Member Avatar for invadev
0
310
Member Avatar for debasisdas
Member Avatar for James_28
8
17K
Member Avatar for mixelplik

Using the definition that any technology sufficiently advanced is indistinguishable from magic, C style strings are far less magical than C++ strings. With a C++ string, the sky (or rather, your protected allocated process memory space) is the limit. Need a bigger string? That's A-OK. We'll just allocate more memory …

Member Avatar for DeanMSands3
0
195
Member Avatar for DeanMSands3

Hey, DaniWeb! I need your opinions. I'm looking to expand my skillset, particularly in the Windows department. On a scale of "Eh, maybe later" to "Do it! Do it now!" what is your opinion on the importance of learning PowerShell as opposed to another life skill like Haskell, Mandarin Chinese, …

Member Avatar for bogenbroom
0
201
Member Avatar for Gamex

Just a follow up to add a few suggestions. As far as graphics, there are several free graphics repositories open to use. Just Google them (like "character sprite generator"). As far as quality goes, YMMV. Sounds and music are also freely available. Have a look at NewGrounds' Audio portal and …

Member Avatar for DeanMSands3
0
163
Member Avatar for r.nair3456

Maybe this will illuminate you. This site studies the top programming languages by usage. http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html C is #1. (As it should be.) Guess who's #2?

Member Avatar for Schol-R-LEA
0
314
Member Avatar for marc.orocay

1. One do loop needs to enclose the other. 2. The variable in the inner loop (perhaps **counter**) needs to reset to zero everytime the outer loop starts. 3. After the inner loop, print a "\n" (This starts a new line.) 4. The inner loop variable (**counter**)needs to be less …

Member Avatar for marc.orocay
-1
349
Member Avatar for kiya ko

Potentially useless anecdote: When I was studying for my Bachelor's, I took a class called Programming Languages (later to be replaced by compilers). The subject of study was an obscure multi-paradigm language called Oz (with it's equally obscure IDE, Mozart). For one of the last assignments, I had to write …

Member Avatar for Banfa
0
198
Member Avatar for chrisschristou
Member Avatar for oussama_1
0
353
Member Avatar for tayspen
Member Avatar for Labdabeta

#1 and #2 are, at run time, essentially the same except that enums (if I remember correctly are integers instead of characters). Also, they will be doing stores and comparisons with literal values (i.e. x=[B]1[/B],y>[B]2[/B], [B]z[/B]<3) instead of referenced numbers. #3 will use more memory at run-time since it allocates …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for reiferdinan.picar

Here's something I found on StackOverflow. http://stackoverflow.com/questions/5270272/how-to-determine-day-of-week-by-passing-specific-date

Member Avatar for stultuske
0
326
Member Avatar for jonathan710

Beat me to it again! I'll just add that **itr** isn't directly affected by **i**, so the first run through when **itr** is at the beginning, **itr-1** is pointing at something that's not there.

Member Avatar for nullptr
0
262
Member Avatar for jonathan710

Now, I'm not a terribly smart man, but on **line 17**, wouldn't you be trying to print the **value** property of the **Integer** that **itr** points to? EDIT: Beat me to it!

Member Avatar for DeanMSands3
0
270
Member Avatar for Learner010

I learned pointers from Snowman's rewrite of Denthor's VGA Trainers. Fire up a copy of DOSBox with a retired copy of Turbo C 3.0 and go here now. http://www.hornet.org/cgi-bin/scene-search.cgi?search=Denthor If you have strong stomach and won't downvote me for it, Stanford released a set of videos... http://cslibrary.stanford.edu/104/

Member Avatar for Learner010
0
311
Member Avatar for arundlk
Member Avatar for vjproduction
0
203
Member Avatar for HUSSEINI

This smells suspiciously like a homework assignment. May we ask what have you done on this project so far yourself?

Member Avatar for HUSSEINI
0
683
Member Avatar for DeanMSands3

Hey Daniweb! What's a good site, or maybe someone could write up a quick-and-dirty example of a desktop app showing how to use the Model View Controller pattern? I'm no slouch at google-fu and found this lovely example through Wikipedia: http://www.songho.ca/opengl/gl_mvc.html which I'll look at after class tonight. I'd still …

Member Avatar for hulkishungry
0
301
Member Avatar for beastie805

Well, if you removed the data types from where you call the function in line 39... o.O

Member Avatar for beastie805
0
688
Member Avatar for shyyaz

Just to make sure, you're using this code on this microcontroller, right? http://www.atmel.com/devices/atmega8535.aspx Somehow, I doubt that's going to work. What kind of screen are you using? Line LCD like this: http://www.digikey.com/product-detail/en/VI-322-DP-RC-S/153-1005-ND/10188 (which would make sense for an LCD clock) OR Text LCD like this: http://www.digikey.com/product-detail/en/NHD-0216PZ-FL-YBW-PC/NHD-0216PZ-FL-YBW-PC-ND/2165970 (which would make sense …

Member Avatar for DeanMSands3
0
276
Member Avatar for haresh.sankarraj

These aren't threads; they are processes (because you're using **fork**). Threads (also called light-weight processes) share the same memory space. Processes do not (until you tell them to). Now, take a step back and ask yourself: Do I want threads or processes? If you want threads, use the pthreads library. …

Member Avatar for rubberman
0
2K
Member Avatar for hasan bahadır

First setup an array. 20x20 is a good size, but you can go bigger. Create a set of snake object. Give the snakes locations on the array. Give the snakes each initial directions. It might help if they were all set on a different side of a wall, and have …

Member Avatar for hasan bahadır
0
352
Member Avatar for Jugottabe

I worked it out with him over chat. Turns out it's a recursive #include between Transducer.h and Phonebook.h. It's always the simplest things that drive you absolutely batty.

Member Avatar for DeanMSands3
0
227
Member Avatar for alina.nazchowdhury

I'm assuming that Text1-3 are text boxes. I'd grab their "text" properties, then cast them to integers. In programmer-ese, that's Picture1.BackColor RGB(cint(Text1.Text),cint(Text2.Text),cint(Text3.Text)) OK, now correct me if I'm wrong (It's been forever since VB6 for me), but doesn't this need an equal sign between Picture1.BackColor and RGB(...) ? Picture1.BackColor=RGB(cint(Text1.Text),cint(Text2.Text),cint(Text3.Text)) Also, …

Member Avatar for DeanMSands3
0
403
Member Avatar for DeanMSands3

Name says it all. Is it still relevant? I guess wxPython sort of counts. What do you think Daniweb? Now, I don't want to start a flame war -said every troll ever.

Member Avatar for mike_2000_17
0
167
Member Avatar for DeanMSands3

Ever since I took a serious look at game-making I've been intrigued by the idea of making my own scripting engine. (I think two college courses of MIPS may have helped.) I've had the wacky idea of writing a compiler that takes script code and compiles it down to byte …

0
84
Member Avatar for tricket_7

First, I would set up a **Scanner** object on the file. Which is strangely absent from your code. o.O Second, you're using an array with a fixed size. This is a no-no, but I'm guessing it suits your needs for the time being. ArrayLists are better and SAFER. You'll learn …

Member Avatar for DeanMSands3
0
320
Member Avatar for cakka

Remember that Java like C uses "zero based" arrays. That means that if an array has 7 elements, it's indices go from 0 to 6. With i<=A.length, you're setting i to 0 through 7. But A[7] doesn't exist. Hence the out of bounds exception. //Change i<=A.length to i<A.length for (int …

Member Avatar for cakka
0
183
Member Avatar for vivosmith

... OK... you renamed "itemStateChanged" to "actionPerformed." The compiler is looking for "itemStateChanged" because that's what ItemListener requires. I simply changed the name back and the code ran fine.

Member Avatar for vivosmith
0
325
Member Avatar for poloblue

Um... no. Have another look. http://www.mrc.uidaho.edu/mrc/people/jff/digital/MIPSir.html

Member Avatar for DeanMSands3
0
53
Member Avatar for hardus

Well, could you do a search through the folder then add them to an array, then cycle through on the picture box?

Member Avatar for tinstaafl
0
727
Member Avatar for avarionist

If you really want to get into hardware but have no foundation to start from, I'd suggest getting an Arduino or TI-MSP430. Then buy a bag of LEDs and some resistors and start blinking lights. It's fun. You'll like it.

Member Avatar for DeanMSands3
0
3K
Member Avatar for abelLazm

> "I HAVE THE POWER !" He-Man > If I owned this place and Hell, I'd rent this place out and live in Hell. - Toombs Chronicles of Riddick However! This quote could possibly be a nod to a famous quote by J. Golden Kimball: > "I don't know how …

Member Avatar for CCHIndiaStore
0
351
Member Avatar for alice.ng.3344

For your program are you only using letters from the English alphabet? If so, you can create your freq array as an array of 26. To convert from ASCII to letters, simply subtract 65 from upper case letters or 97 from lower case letters. To do this, make sure you're …

Member Avatar for DeanMSands3
0
350
Member Avatar for dreamcode2412

Define "read." The question that should be asked is "do you know how to actually load and process the BMP?" You know that the BMP data is upside down compared to your screen, right? (I was going to say the BMP is upside down, but, no, it's screens that are.)

Member Avatar for DeanMSands3
0
444
Member Avatar for siddiquedu

First off, you've committed an unpardonable sin on DaniWeb. You used **system("pause");** Using **getch();** is not better. This is a crime punishable by excessive belittling, arrogant condescension, and ostricism by the veteran community members. I don't make the rules, and I am not making this up. (The fix is to …

Member Avatar for siddiquedu
0
409
Member Avatar for Suzie999

How about a nice example? //moo.h #include <string> extern std::string moo; //Declare the variable externally without actually creating it. //moo.cpp #include "moo.h" std::string moo="Moo."; //Now we initialize the variable and give it an actual definition. //moomain.cpp #include "moo.h" #include <iostream> int main(){ //Print out a happy message using the externally …

Member Avatar for Suzie999
0
203
Member Avatar for blackcathacker
Member Avatar for GaryWazHere
Member Avatar for GaryWazHere
0
1K
Member Avatar for terran1

SQLite. Get the amalgamation zip for the easiest start and go. http://sqlite.org Random Tutorial here: http://www.dreamincode.net/forums/topic/122300-sqlite-in-c/ (There are correction suggestions in the comments. Be sure to read them!)

Member Avatar for DeanMSands3
0
938

The End.