299 Posted Topics
Re: 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 | |
Re: 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; … | |
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 … | |
Re: @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? | |
Re: 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/ | |
Re: 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 … | |
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 - … | |
Re: STAR TREK: THE MOTION PICTURE | |
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 … | |
Re: Nice, Moschops. For amusement, I am rewriting infamous1987's post as a proper OOP program. I'll let you know when I'm done. | |
Re: 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. | |
| |
Re: 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 … | |
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, … | |
Re: 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 … | |
Re: 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? | |
Re: 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 … | |
Re: 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 … | |
Re: Just a suggestion: http://unity3d.com/unity It natively imports Maya. | |
Re: #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 … | |
Re: Here's something I found on StackOverflow. http://stackoverflow.com/questions/5270272/how-to-determine-day-of-week-by-passing-specific-date | |
Re: 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. | |
Re: 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! | |
Re: 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/ | |
Re: Check out Cave Story. Then MineCraft. Both started out as one-man projects. | |
Re: This smells suspiciously like a homework assignment. May we ask what have you done on this project so far yourself? | |
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 … | |
Re: Well, if you removed the data types from where you call the function in line 39... o.O | |
Re: 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 … | |
Re: 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. … | |
Re: 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 … | |
Re: 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. | |
Re: 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, … | |
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. | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: ... 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. | |
Re: Um... no. Have another look. http://www.mrc.uidaho.edu/mrc/people/jff/digital/MIPSir.html | |
Re: Well, could you do a search through the folder then add them to an array, then cycle through on the picture box? | |
Re: 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. | |
Re: > "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 … | |
Re: 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 … | |
Re: 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.) | |
Re: 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 … | |
Re: 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 … | |
Re: "**const** int mazeArray" may have something to do with that. | |
Re: 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!) |
The End.