Search Results

Showing results 1 to 38 of 38
Search took 0.01 seconds.
Search: Posts Made By: venomlash ; Forum: C++ and child forums
Forum: C++ Jul 27th, 2008
Replies: 0
Views: 371
Posted By venomlash
Does anyone know a good way to get a bitmap (or other picture file format) and put it on the screen using OpenGL???
I mean, that kinda thing is hard enough in the sissy, user-friendly syntax of...
Forum: C++ Feb 24th, 2008
Replies: 2
Views: 1,378
Posted By venomlash
I am but a lowly C++ dabbler, but I can tell you this: you will want some sort of class to contain the attributes of each stock. But A-Drag is right; you need to pound out some code (even if you're...
Forum: C++ Jan 19th, 2008
Replies: 7
Views: 2,796
Posted By venomlash
Um...my compiler (Bloodshed Dev-C++) doesn't like it. Can you give me just the specific lines of code to link a library (for example, glu.h or glut.h) so that I can use it?
Forum: C++ Jan 18th, 2008
Replies: 7
Views: 2,796
Posted By venomlash
That I would also like to do...I need to draw spheres for the game I'm working on...hell, I need a lot of glu stuff. How do you do that?
Forum: C++ Jan 18th, 2008
Replies: 7
Views: 2,796
Posted By venomlash
Explain please...I am two or three steps above n00b in C++.
I don't know that stuff so well.
Forum: C++ Jan 16th, 2008
Replies: 7
Views: 2,796
Posted By venomlash
I cannot link GL Utility Toolkit (lack know-how), so I need a way using only gl/gl.h and windows.h to get keyboard input. Help please!
Forum: C++ Jan 7th, 2008
Replies: 3
Solved: max and min
Views: 2,810
Posted By venomlash
Writing an array-sorting algorithm has been the bane of intro-C++ courses since the language was invented, I think. Being a hobbyist, I try to avoid having to sort. If you just need the max and min,...
Forum: C++ Jan 7th, 2008
Replies: 3
Solved: max and min
Views: 2,810
Posted By venomlash
What I would do is this instead of the "read" loop:

int tmax, tmin;

tmax=temp[0];
tmin=temp[0];

for(int i=0; i<31; i++){
if(temp[i]>tmax){
tmax=temp[i];
Forum: C++ Jan 2nd, 2008
Replies: 7
Views: 912
Posted By venomlash
I am but a humble part-time hobbyist programmer, but I have found Dev-C++ to work very well. It pwns.
Forum: C++ Oct 18th, 2007
Replies: 9
Views: 1,471
Posted By venomlash
By project file do you mean a *.dev? I can't find one. And how do you create a dll project?
Forum: C++ Oct 16th, 2007
Replies: 9
Views: 1,471
Posted By venomlash
OK, I appreciate the help! I'll get right on that!


...how do you compile the DLL??? (I know, I don't know a whole lot)
Forum: C++ Oct 16th, 2007
Replies: 9
Views: 1,471
Posted By venomlash
I'm not as good with software as I'd like to think I am. Where does the glut32.lib file go? I can't find any .lib files to go by on my hard drive except for in my JAVA stuff.
Forum: C++ Oct 16th, 2007
Replies: 9
Views: 1,471
Posted By venomlash
Sorry, Ancient Dragon. Its the readme-win32 file in the "glut-3.7.6-bin.zip" link. Do you have any idea what causes that type of linker error? Thanks!
Forum: C++ Oct 16th, 2007
Replies: 8
Views: 11,105
Posted By venomlash
Glad to have been of service. Um...My name is Gabriel, not Garth; I was just quoting Wayne's World. Just putting that out there.:D
Forum: C++ Oct 16th, 2007
Replies: 9
Views: 1,471
Posted By venomlash
I'm new to C++ graphics, and a friend tipped me off to OpenGL. I'm currently trying to work with the GL Utility Toolkit (#include gl\glut.h), which I had to download from the web. Due to all the...
Forum: C++ Oct 16th, 2007
Replies: 8
Views: 11,105
Posted By venomlash
cin.ignore() I always learned is used to pause the program until the user strikes the enter key. (This makes it useful for getting data displayed with cout because without such a pause statement, the...
Forum: C++ Sep 1st, 2007
Replies: 4
Views: 1,385
Posted By venomlash
Hi, I took a course in JAVA and learned about exceptions...I'm not sure how to throw and catch in C++. Can I get some help please???
Forum: C++ Aug 19th, 2007
Replies: 5
Views: 1,852
Posted By venomlash
Ooops, Ancient Dragon, my bad. Didn't see those. I pulled a noob.:icon_confused:
thanks.
Forum: C++ Aug 19th, 2007
Replies: 5
Views: 1,852
Posted By venomlash
Know of any??? Pretty please with easy-to-read, exception-handling code and a cherry on top??? I've been looking for ages, can't find any that work.:(

Thanks for the help.
Forum: C++ Aug 18th, 2007
Replies: 5
Views: 1,852
Posted By venomlash
For those of you who also code in JAVA*:
Does anyone know of anything in C++ that is at all like paintComponent or the Graphics class? HALP!


*ROFLwaffles to those who do
Forum: C++ Jul 26th, 2007
Replies: 7
Views: 1,241
Posted By venomlash
No offense, eyedea2011, but the syntax you're using is either really old or really new, because a lot of it doesn't make much sense to me. Why not just use
if(a==b){
return true;
} else {
...
Forum: C++ Jul 18th, 2007
Replies: 47
Views: 8,851
Posted By venomlash
Try C# sometime. I hear it's halfway between JAVA and C++, so that might be useful. Personally, I'd say C++ is easier to work with; strings are mutable, you just have to type cout instead of...
Forum: C++ Jul 18th, 2007
Replies: 14
Views: 3,858
Posted By venomlash
I always learned that main returns an int so that you can put exit(0), exit(1) and other constructions in to tell you why the program quit. Or would that not work...?
Forum: C++ May 28th, 2007
Replies: 1
Views: 2,792
Posted By venomlash
Is there any way to write a program to check a computer's serial number as sort of a copy-protect? (i.e., if the serial number doesn't match the expected number written into the program, the program...
Forum: C++ Jan 29th, 2007
Replies: 30
Views: 916,806
Posted By venomlash
Create a bool list[50], an array of 50 boolean (yes/no) values and set all of them to true at the start by using a for loop. Then, create the following function:
int randnum(int num){
return...
Forum: C++ Dec 14th, 2006
Replies: 30
Views: 916,806
Posted By venomlash
Like evilsilver said, rand isn't really random. It uses a really complex algorithm on the seed number (which you set with srand), so every time the program is run, it gives you the same output from...
Forum: C++ Dec 8th, 2006
Replies: 8
Views: 2,616
Posted By venomlash
Huh? What's a pointer? I can only write basic code? Please tell me what a pointer is? Apparently I can't stop using question marks?
Venomlash?
Forum: C++ Dec 7th, 2006
Replies: 8
Views: 2,616
Posted By venomlash
Venomlash back again.
Wrote a code snippet, compiler didn't like it. The pain, the pain, the pain. Of course, it might just be that I'm not good with inheriting classes, so anyone who can get this...
Forum: C++ Nov 7th, 2006
Replies: 0
Code Snippet: Decay Simulator
Views: 1,445
Posted By venomlash
This can be used for plotting radioactive decay of an unlimited* number of elements, decaying into each other.



*Limited only by memory and user attention span.
Forum: C++ Oct 29th, 2006
Replies: 8
Views: 2,616
Posted By venomlash
If I create a class called "tree" and inherit from it to classes called "elm" and "oak", can I, using all three header files, create a vector <tree> and use push_back to add an "elm" and an "oak" to...
Forum: C++ Oct 16th, 2006
Replies: 13
Views: 3,182
Posted By venomlash
Please tell me you're kidding about the keyboards lacking an ampersand! I have never heard of that. Just to connect this to something funny, has anyone seen the Dilbert strip in which the company...
Forum: C++ Oct 15th, 2006
Replies: 13
Views: 3,182
Posted By venomlash
I use Bloodshed Dev-C++ version 4.9.9.2 and it is a little weird in that it accepts "and" as "&&" and "or" as "||", not to mention not requiring parentheses around separate clauses in and/or...
Forum: C++ Oct 15th, 2006
Replies: 30
Views: 916,806
Posted By venomlash
Quote:
"...my computer says it doesn't have i0stream and several other headers..."

Did you maybe put in i0stream like you did in your message? Stupid question, but it only takes iostream.
Forum: C++ Oct 15th, 2006
Replies: 1
Code Snippet: Blue Screen of Doom!
Views: 2,831
Posted By venomlash
For those of you who live at home, run this on your parents' computer fullscreen, blue background, white font. Then put the mouse over the block in the upper lefthand corner, and enjoy the...
Forum: C++ Oct 15th, 2006
Replies: 5
Code Snippet: FileExists
Views: 3,735
Posted By venomlash
Coooooooooooooooooooooooool.
Forum: C++ Oct 15th, 2006
Replies: 4
Views: 30,388
Posted By venomlash
Nice...
How do you change the background color?
Pretty please?
And is there a way to make the program appear fullscreen when started up?
Forum: C++ Oct 15th, 2006
Replies: 5
Views: 12,606
Posted By venomlash
:!: Daaaaaaaaang! That's pretty cool!
But good thing it closes it too. I have a friend who twice had the power cut out while the CD tray was open, and he naturally stumbled into the open tray,...
Forum: C++ Oct 15th, 2006
Replies: 0
Code Snippet: Bad ol' ship
Views: 1,723
Posted By venomlash
This code will let you play Battleship against the computer (bad graphics, I know) for a while, upon which it quits without so much as an error message. Could an experienced coder look this over and...
Showing results 1 to 38 of 38

 


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

©2003 - 2009 DaniWeb® LLC