Search Results

Showing results 1 to 20 of 20
Search took 0.01 seconds.
Search: Posts Made By: sfrider0 ; Forum: C++ and child forums
Forum: C++ Nov 2nd, 2009
Replies: 8
Solved: glColor problem
Views: 529
Posted By sfrider0
Thank you so much! I never would had thought to enable GL_COLOR_MATERIAL.
Forum: C++ Nov 1st, 2009
Replies: 8
Solved: glColor problem
Views: 529
Posted By sfrider0
Here is my code. It is supposed to be a sky background, with a green floor and a sphere in the air. Doesn't really matter what color the sphere is. I think it is blue now. I really appreciate your...
Forum: C++ Nov 1st, 2009
Replies: 8
Solved: glColor problem
Views: 529
Posted By sfrider0
Ok, I tried that, didn't do anything. I put glEnable(GL_NORMALIZE); in my init() function. Everything is still gray.
Forum: C++ Oct 30th, 2009
Replies: 8
Solved: glColor problem
Views: 529
Posted By sfrider0
What do you mean by my normals? It worked fine and was green until until I added my sphere. Now my ground and sphere is just gray.
Forum: C++ Oct 29th, 2009
Replies: 8
Solved: glColor problem
Views: 529
Posted By sfrider0
I'm drawing a sphere and some ground. I used GL_POLYGON to draw a rectangle and colored it green. When I added a sphere, my ground just turned black. Is this because the sphere is a 3d object and...
Forum: C++ Sep 25th, 2009
Replies: 2
Views: 265
Posted By sfrider0
Thank you! that worked
Forum: C++ Sep 25th, 2009
Replies: 2
Views: 265
Posted By sfrider0
I'm pretty new to opengl but been using c++ for a while now. How can I display variables using this? I can display single characters by using

glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN,'0');
...
Forum: C++ Apr 7th, 2009
Replies: 10
Views: 581
Posted By sfrider0
so that part would be right without the &?
Forum: C++ Apr 7th, 2009
Replies: 10
Views: 581
Posted By sfrider0
I just figured something out. I don't know if it going in the right direction or not but I forgot to put the "&" when I created the new lists. Here is what I put in the drive file to create and copy...
Forum: C++ Apr 6th, 2009
Replies: 10
Views: 581
Posted By sfrider0
Thanks. I think I see how it all works, just not sure which part is actually wrong. Now it compiles and runs. It shows the two lists that it read in then crashes when it tries to copy them. When I...
Forum: C++ Apr 6th, 2009
Replies: 10
Views: 581
Posted By sfrider0
Ok, I understand that I need an operator=, copy constructor, and a destructor. After I use my operator= to make a shallow copy of my list, do I then use the destructor on the original list and then...
Forum: C++ Apr 2nd, 2009
Replies: 10
Views: 581
Posted By sfrider0
Thanks for the help! I was able to fix 1 and 4. I changed some of my code. Now it is just not copying the original list to the new list. When I debug it, says it can't evaluate "info" and "next"....
Forum: C++ Apr 1st, 2009
Replies: 10
Views: 581
Posted By sfrider0
I have been working on this for a few days now. I'm just trying to make a deep copy of a template linked list. I have successfully copied the list, but when I enter a new item to the new list, it...
Forum: C++ Mar 31st, 2009
Replies: 4
Solved: linked list
Views: 429
Posted By sfrider0
Thank You! That helped so much. Problem solved
Forum: C++ Mar 30th, 2009
Replies: 4
Solved: linked list
Views: 429
Posted By sfrider0
Here is SortedType.h

#include "ItemType.h"
using std::bad_alloc;
// Header file for Sorted List ADT.
template<class ItemType>
struct NodeType;

template<class ItemType>
class SortedType
Forum: C++ Mar 30th, 2009
Replies: 4
Solved: linked list
Views: 429
Posted By sfrider0
I have an assignment to use templates for a linked sorted list. The SortedType.h file is in our book and that is what we have to change. I understand how to do all of that and it compiles and...
Forum: C++ Feb 12th, 2009
Replies: 4
Views: 633
Posted By sfrider0
That's exactly what I was thinking. The directions specifically said to put the input data into an "item", then put the item in the list. Right now I keep getting errors when I use the "cin >> item"...
Forum: C++ Feb 12th, 2009
Replies: 4
Views: 633
Posted By sfrider0
Hey. I'm trying to simply input items into a list, then be able to sort them and do whatever. I've done this before for my previous classes, but we have we have to use class files out of the book and...
Forum: C++ Jan 27th, 2009
Replies: 1
Views: 1,255
Posted By sfrider0
Hey. I have to write a Fraction class for homework and overload for the Fraction class the operators +, -, *, /, +=, -=, *=, /=, and << (the insertion operator). Can somebody please tell me what...
Forum: C++ Nov 25th, 2008
Replies: 1
Views: 327
Posted By sfrider0
I'm trying to figure out how to do template lists. I have this

GList<int> list1;
GList<float> list2;
GList<string> list3;
ifstream inFile;
inFile.open("data.txt");
while(!inFile.eof()){...
Showing results 1 to 20 of 20

 


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

©2003 - 2009 DaniWeb® LLC