Search Results

Showing results 1 to 40 of 46
Search took 0.01 seconds.
Search: Posts Made By: Dante Shamest
Forum: C Oct 15th, 2005
Replies: 2
Views: 6,794
Posted By Dante Shamest
It appears to work for me. The version of my Dev-C++ IDE is 4.9.9.2. One should note that the first parameter is always the name of your program.

This is the program I used for testing.
...
Forum: C Oct 7th, 2005
Replies: 4
Views: 3,978
Posted By Dante Shamest
Hmm, perhaps you need another newline all by itself?

Try

// Assuming that I'm connecting to google...
const char *request = "GET / HTTP/1.1\nHost: www.google.com\n\n"
Forum: C++ Aug 30th, 2005
Replies: 5
Views: 1,719
Posted By Dante Shamest
My goodness. That's an ancient compiler. Most of the graphics libraries today won't work with it, so I think you're limited to what graphics capabilities Turbo has by default (conio.h/graphics.h).
...
Forum: C++ Aug 30th, 2005
Replies: 5
Views: 1,719
Posted By Dante Shamest
What is the name of your compiler?

Allegro (http://www.talula.demon.co.uk/allegro/) is a game-programming library that supports DOS.

If you give us more details about what kind of game you're...
Forum: C++ Aug 27th, 2005
Replies: 7
Views: 4,127
Posted By Dante Shamest
Yes, one could use MFC's 2-stage construction. However, my personal preference is still to to use the constructor to create the object, because I'm used to the RAII paradigm...
Forum: C++ Aug 27th, 2005
Replies: 7
Views: 4,127
Posted By Dante Shamest
How can I handle a constructor that fails? (http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.2)
Forum: C Aug 13th, 2005
Replies: 2
Views: 3,320
Posted By Dante Shamest
That's an interesting question. I've never done it myself before this, but this seems to work.

#include <windows.h>
#include <stdio.h>

template<class T> struct B ;

template<class T>
struct...
Forum: C++ Aug 13th, 2005
Replies: 3
Views: 1,294
Posted By Dante Shamest
We only give homework help to those who show effort (http://www.daniweb.com/techtalkforums/announcement8-2.html).
Forum: C++ Aug 13th, 2005
Replies: 1
Views: 994
Posted By Dante Shamest
Was it bluej (http://www.bluej.org/)?

I don't think there's an IDE for C++ like that. But if you're looking for a "regular" IDE, you can try Dev-C++ (http://www.bloodshed.net/dev/devcpp.html).
Forum: C++ Aug 12th, 2005
Replies: 9
Views: 1,747
Posted By Dante Shamest
I learned my C from these books. I'm not saying they're the greatest (in fact they usually get bad reviews), but I think they worked very well for me.

- Teach Yourself C in 21 Days
- Teach...
Forum: C++ Aug 12th, 2005
Replies: 2
Views: 1,479
Posted By Dante Shamest
I assume the issue has been resolved (http://www.cpp-home.com/forum/viewtopic.php?t=11203)?
Forum: C Aug 11th, 2005
Replies: 8
Views: 2,062
Posted By Dante Shamest
Ah I see. Yes, one should generally initialize pointers to 0 instead of '\0' to avoid confusion. The Great One himself recommends it as well (http://www.research.att.com/~bs/bs_faq2.html#null).
Forum: C Aug 11th, 2005
Replies: 8
Views: 2,062
Posted By Dante Shamest
The day and month variables are declared to be arrays of length 10. You only need to use new and delete[] if the arrays have not been allocated yet.



Hi Dave, I was under the impression that...
Forum: C++ Aug 10th, 2005
Replies: 6
Views: 1,950
Posted By Dante Shamest
Probably the easiest way to accomplish it is to use a set of bitmaps. One each for U, L, R and D. Then draw the bitmaps instead of the ball.

I could take the time and do it for you, but I don't...
Forum: C++ Aug 10th, 2005
Replies: 12
Views: 4,063
Posted By Dante Shamest
Google has plenty of tutorials on arrays...
Forum: C++ Aug 10th, 2005
Replies: 13
Views: 1,988
Posted By Dante Shamest
You have my vote. It's hard to recommend a generic solution to a problem when you don't know if the user is using C or C++.
Forum: C++ Aug 9th, 2005
Replies: 6
Views: 2,343
Posted By Dante Shamest
Perhaps you mean to do

x = creat * creat * creat;

Anyway please post your code again after you've made any changes.
Forum: C++ Aug 9th, 2005
Replies: 6
Views: 2,343
Posted By Dante Shamest
Not sure if I follow, but what about

creat = creat * creat * creat;
Forum: C++ Aug 9th, 2005
Replies: 6
Views: 2,343
Posted By Dante Shamest
The operator ^ is the bitwise XOR operator (http://en.wikipedia.org/wiki/Bitwise_operation), not a cubic operator. There isn't a cubic operator. You can get the 3rd power of a number by using * like...
Forum: C++ Aug 9th, 2005
Replies: 1
Views: 2,047
Posted By Dante Shamest
I don't think version 6 is still available for download. Visual C++ 2005 Express Edition (http://lab.msdn.microsoft.com/express/visualc/default.aspx) is though. However I don't think it comes with...
Forum: C++ Aug 9th, 2005
Replies: 6
Views: 1,950
Posted By Dante Shamest
I've posted something like this before 2 years ago (http://www.daniweb.com/techtalkforums/thread375.html).

The downloads appear to be still there.
Forum: C++ Aug 9th, 2005
Replies: 4
Views: 13,727
Posted By Dante Shamest
Forum: C++ Aug 8th, 2005
Replies: 1
Views: 3,438
Posted By Dante Shamest
You're using the infamous <conio.h>, which is specific to Borland compilers. To port it to VC++, you'll have to either of the following:

1) Find a Visual C++ port for conio.h. I don't know if one...
Forum: C Aug 8th, 2005
Replies: 4
Views: 3,311
Posted By Dante Shamest
Sounds like a request for us to do your homework (http://www.daniweb.com/techtalkforums/announcement8-2.html). What have you done so far?
Forum: C++ Mar 7th, 2004
Replies: 8
Views: 6,529
Posted By Dante Shamest
He doesn't know how to program in it. :)
Forum: Java Oct 10th, 2003
Replies: 6
Views: 3,934
Posted By Dante Shamest
If the java class files are in the same directory, you do not need to import them.
Forum: C Oct 10th, 2003
Replies: 2
Views: 10,173
Posted By Dante Shamest
You're either using a C compiler or you're compiling under C mode in a C++ compiler. The problem is that you can't declare a variable in a for() under C.

Replace

for (int i=1;i<=oneNumber;i++)...
Forum: C Oct 10th, 2003
Replies: 5
Views: 24,653
Posted By Dante Shamest
Replace

infile >> temp;

with

temp = infile.get() ;

That should do the trick. :)
Forum: C++ Sep 15th, 2003
Replies: 4
Views: 3,013
Posted By Dante Shamest
You can either make gal a global variable, or pass rewrite gas() so that it receives a pointer to a integer. Then pass gal to gas().
Forum: C++ Aug 18th, 2003
Replies: 13
Views: 5,941
Posted By Dante Shamest
1) Dev-C++ is sufficient if you want to learn C++ programming. Dev-C++ is actually a GUI wrapper for the MingW compiler. In other words, you're actually usng the MingW (http://www.mingw.org/)...
Forum: C++ Jul 31st, 2003
Replies: 6
Views: 13,881
Posted By Dante Shamest
Are you using Win32, MFC or one of the .NET classes to do your drawing? :)
Forum: C Jul 13th, 2003
Replies: 2
Views: 4,835
Posted By Dante Shamest
Most of the time you don't need to use the bitwise operations. The only time I've had to operate with bits is combining the modes in the ifstream/ofstream constructors:


ifstream in(...
Forum: C++ May 21st, 2003
Replies: 2
Views: 4,550
Posted By Dante Shamest
I found this problem of yours harder than expected. Firstly, I'm better at C++ libraries than the C libraries. So I had to revise all my C File I/O. Secondly, I hate parsing. Anyway here's my...
Forum: Geeks' Lounge May 21st, 2003
Replies: 4
Views: 2,847
Posted By Dante Shamest
That sounds like John Nash (Russell Crowe) in A Beautiful Mind. :)
Forum: Geeks' Lounge May 21st, 2003
Replies: 4
Views: 2,847
Posted By Dante Shamest
Whoa. Is that some meta-physical-economical revelation? :o
Forum: C++ May 20th, 2003
Replies: 6
Views: 5,051
Posted By Dante Shamest
Nah, it was good practice. :D
Forum: C++ May 19th, 2003
Replies: 6
Views: 5,051
Posted By Dante Shamest
I've coded a simple program that lets the user control the position of a ball via the arrow keys.

http://www.abdn.ac.uk/~u02cll2/windowsapi/movingball.jpg

The program can be downloaded here...
Forum: Geeks' Lounge May 10th, 2003
Replies: 17
Views: 5,518
Posted By Dante Shamest
Oh my God. I'm sorry to hear about your Dad. You must be real sad! :(
Forum: Java May 10th, 2003
Replies: 15
Views: 8,062
Posted By Dante Shamest
I haven't used Borland much...but from what I remember it ran slow as hell on my old 4GB Windows 98 PC. Of course, that was an old computer.

The .NET IDE is nice. But its expensive. =( I'm still...
Forum: Java May 8th, 2003
Replies: 15
Views: 8,062
Posted By Dante Shamest
Not true. The Freeware JCreator version comes with almost all the essential features. Only JCreator Pro is a 30-day Shareware trial. I recommend JCreator whole-heartedly. Both can be downloaded at...
Showing results 1 to 40 of 46

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC