Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 500
Search took 0.03 seconds.
Search: Posts Made By: Adak
Forum: C++ Jan 28th, 2014, 7:53 PM
Replies: 4
Views: 5,169
Posted By Adak
Re: I can't find the error

Mr. Schildt is a good writer, but his books contain MANY C and C++ errors in their programs.

He's quite famous for it, actually. In the publishing chain of writer -> editor -> publisher, there is a...
Forum: Delphi Dec 4th, 2013, 12:13 AM
Replies: 3
Views: 4,829
Posted By Adak
Re: form_message problem

In Show, or immediately after it, why not add a line of code to move the cursor to the button?
Forum: C++ Dec 2nd, 2013, 2:28 PM
Replies: 7
Views: 6,844
Posted By Adak
Re: coding Graph data structure using C++

I don't know much about graphs. When I wanted to work a graph problem, I made an array of structs, with struct members of x and y values, then read the Dijkstra algorithm article in Wikipedia, and...
Forum: C++ Nov 27th, 2013, 10:15 AM
Replies: 2
Views: 4,411
Posted By Adak
Re: What does this mean?

It means the cast is to a pointer to int, not just an int.
Forum: C++ Nov 16th, 2013, 4:20 PM
Replies: 6
Views: 7,401
Posted By Adak
Re: My programming questions for you.

I meant that basic Calculus (at least), is required in order to graduate (Bachelors degree).
Forum: C++ Nov 16th, 2013, 11:49 AM
Replies: 6
Views: 7,401
Posted By Adak
Re: My programming questions for you.

1. What books do you recommend to learn from?

Depends on your OS and compiler. You'll have to do some research here.

2. What steps do you take to solve a problem and then to code it? (This is what...
Forum: C++ Nov 15th, 2013, 5:41 PM
Replies: 9
Views: 7,677
Posted By Adak
Re: Making Header Files

It's saying you have two main functions, so it's horribly confused and has to stop compiling.

I don't use VS, but despite the good info from Sysop_fb, I'd not use the command line to compile with...
Forum: C++ Nov 11th, 2013, 1:57 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

It will be in C, not to worry. Problem is, I keep getting more ideas for it. I've added a story line to it, including special typing, where messages are communicated from the player and the Miner.
Forum: C++ Nov 11th, 2013, 1:50 PM
Replies: 6
Views: 7,909
Posted By Adak
Re: If programming is so hard, then why...

I don't have that prejudice against interpreted languages. I meant all languages, compiled or interpreted.

The newer languages and tools are simply better, and make things easier. Go, D, Ruby, Ruby...
Forum: C++ Nov 10th, 2013, 9:30 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

Since my Muse has been kind enough to smack me upside my head, I'll post up an update, in a new thread, later on.

Lots of changes - very nice. ;)
Forum: Coder's Corner Lounge Nov 10th, 2013, 5:16 PM
Replies: 2
Views: 4,760
Posted By Adak
Re: sticky thread/ new section idea

There are three problems that I see:

1) The big constraint is the time required. Say you are working 40-45 hrs. per week. Are you going to spend another 8 hours during that week to teach, or are you...
Forum: C++ Nov 10th, 2013, 11:06 AM
Replies: 6
Views: 7,909
Posted By Adak
Re: If programming is so hard, then why...

Lots of things are hard to learn - like speaking Polish or climbing Mt. Everest - but that doesn't mean it shouldn't be done, or that there aren't people who won't enjoy tackling the challenge of...
Forum: C++ Nov 10th, 2013, 1:26 AM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

Thanks! I'm sure it wouldn't have happened without your efforts to bring it to the forum.

It will take several more hours to get the rest of the code done up. I believe having four rooms would be...
Forum: C++ Nov 9th, 2013, 10:44 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

Wrapping up for now, then. This is my version, with rooms (2). In limited testing it works OK, but it doesn't have several things done, yet:

*the Gold isn't yellow in color, and no money is in the...
Forum: C++ Nov 9th, 2013, 4:10 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

My version is definitely falling behind. I will get the extra room/s working this weekend. It's been a bit more difficult that it was with your version.

Had a helicopter flying rather low last...
Forum: C++ Nov 9th, 2013, 8:42 AM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

It's coming along. Right now it's 4 muggers chasing you, and slugging 5 points out of your health/life, every time they hit you. You have health packs that give you a boost, so you can go to them. If...
Forum: C++ Nov 9th, 2013, 4:58 AM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

OK, the muggers are fixed.

The things that need your attention are the colors - there's some flashing orange on my console (don't know about yours though), and the life /hp points need to be...
Forum: C++ Nov 9th, 2013, 12:28 AM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

Doors are fixed. No problem with them, now.

There's a bug though in the muggers - as you move into different rooms, and back down, you start getting "ghost" muggers. They don't move, but they block...
Forum: C++ Nov 7th, 2013, 7:22 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

Because I poured through your code about 8 times, to find out why the enemies wouldn't move, and fix it (and a few other things).



Well literally, I'm waiting for you to tell me how the player is...
Forum: Existing Project Development Nov 7th, 2013, 5:02 PM
Replies: 4
Views: 6,177
Posted By Adak
Re: Forced Evolution (My WIP)

OK, I missed the player in the opening shot, but he moves out where I can see him with the array keys.

(My monitor is great, but not with resolution of dark shades. My eyesight isn't the best...
Forum: C++ Nov 7th, 2013, 1:23 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

In my version, the user's data is only printed out in the mugPoints function, and it's printed out in a single line, since that prints faster than multiple lines. The main idea was to have the...
Forum: Existing Project Development Nov 7th, 2013, 5:50 AM
Replies: 4
Views: 6,177
Posted By Adak
Re: Forced Evolution (My WIP)

The visuals (background and foreground) are very good. The streetlight on the lonely hill looked dreadful, however - it would never be there. Towns don't put streetlights in hills where there are no...
Forum: C++ Nov 7th, 2013, 5:08 AM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

They're chasing you, SMJ!

Printing a countdown a hundred times per second is counter productive, and makes the game less responsive to user input, overall.
Try having it print up ONLY in...
Forum: C++ Nov 6th, 2013, 7:01 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

Sounds like you're not calling the mugMove and mugPoints function, in main(). Check that.

Post your code up if you have no luck, and it's still C style. I'll put it into a project and study it in...
Forum: C++ Nov 6th, 2013, 11:09 AM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

Correct. MugMove requires the additional function here, so it can calculate damage to the player.

This function gets called immediately after mugMove, in main()

/* Deducts life points if the...
Forum: C++ Nov 5th, 2013, 11:53 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

Line 55, change it to unsigned char, so it has the range to handle the extended ascii char's we are using.
Forum: C Nov 4th, 2013, 11:35 PM
Replies: 6
Views: 8,878
Posted By Adak
Re: External Sorting Program

I used conio.h as a header file here - I'm just very familiar with conio.h from DOS days. For compilers that don't support it, it's easy to change it to use windows.h as the include file, and then...
Forum: C Nov 1st, 2013, 3:23 AM
Replies: 6
Views: 8,878
Posted By Adak
Re: External Sorting Program

Here's the Quicksort data - note especially how the already sorted (ascending) data, is simply NO PROBLEM! That will NOT be the case with most Quicksort functions.


Sorting 100,000,000...
Forum: C Nov 1st, 2013, 1:14 AM
Replies: 6
Views: 8,878
Posted By Adak
Re: External Sorting Program

First, a picture comparing sorting times on random integers, in the range from 10 Million to 100 Million.

1549

Note how merge sort has taken a dump, at only 40 Million, while the other...
Forum: C Oct 31st, 2013, 1:20 PM
Replies: 6
Views: 8,878
Posted By Adak
Re: External Sorting Program

It's easy to gloss over sorting algorithms, because they all work just fine, and very fast, when there are just a few hundred things that have to be sorted.

So what's the fuss about choosing the...
Forum: Other Programming Languages Oct 29th, 2013, 8:29 PM
Replies: 14
Views: 13,257
Posted By Adak
Re: GML Help

Well maybe, but I'm really second rate as a Zombie Prepper. :rolleyes:
Forum: C++ Oct 29th, 2013, 8:26 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

Oh yes! Twice I played through a round of Legend of the Red Dragon (L.O.R.D.), It was a RPG you played on-line, with multiple other gamers. I had a new 386 running at 33MHz! ;)

My favorite game...
Forum: C++ Oct 29th, 2013, 1:05 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

What's the plan on revisiting a room? Once a player has the health packs out of the room, what would trigger the player to want or need to revisit a room he has worked through successfully?
Forum: C++ Oct 29th, 2013, 1:24 AM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

Needed? maybe not, but then what you have is ONE BIG ROW, that can be successfully used, AS IF it were several rows, because of the way C (and C++), handles strings.

The bigger problem to me was the...
Forum: Other Programming Languages Oct 28th, 2013, 9:33 PM
Replies: 14
Views: 13,257
Posted By Adak
Re: GML Help

There are a whole series of GML tutorials on YouTube:
http://www.youtube.com/watch?v=zbBAAW0Kel8
for example.

I want you to watch the video's in order, and see what you can learn. Also, try asking...
Forum: C++ Oct 28th, 2013, 5:00 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

For the second room, he never quit room 0 - he just put room 1 into place - which will work as long as room 0 stays exactly that same size, but you're supposed to delimit room 1 from room 0, which he...
Forum: C++ Oct 28th, 2013, 12:35 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

I'll watch it, but it seems clear. The next higher numbered room will replace the lower numbered room, exactly.




That video! :(

The code is mostly good, although he has a fat error in there, he...
Forum: C++ Oct 28th, 2013, 12:33 PM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

I was hoping it was going to be done like that.
Forum: Other Programming Languages Oct 28th, 2013, 11:44 AM
Replies: 14
Views: 13,257
Posted By Adak
Re: GML Help

Nah, you were just giving me a chance to look smart! Thanks! ;)
Forum: C++ Oct 28th, 2013, 11:42 AM
Replies: 123
Views: 47,271
Posted By Adak
Re: Text Based Rooms

What is the plan for playing the game, in these rooms, above room[0] ? Is room[0] going to be displayed until that room is played through, and then room[1] be displayed right over the same screen...
Showing results 1 to 40 of 500

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:57 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC