Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: Auto
Forum: C++ Apr 26th, 2005
Replies: 6
Views: 2,324
Posted By Auto
OpenGL is of interest to me too, I've found some helpful tutorials, info, docs at this site. I'll be taking a course soon on OpenGL so I kind of backed off of it until then. Here's the site to...
Forum: C++ Apr 24th, 2005
Replies: 2
Views: 1,205
Posted By Auto
Okay, didn't look at it that way. Since it is a member of a class it's just another name for an object's function. I don't plan on implementing this type of funciton naming, it just caught my...
Forum: C++ Apr 23rd, 2005
Replies: 2
Views: 1,205
Posted By Auto
Can the main() call be embedded within a class? At work yesterday I caught a snippet somewhere, and I noticed main() was inside a class, something like the following:


class personnel
{
...
Forum: C++ Apr 4th, 2005
Replies: 2
Views: 3,525
Posted By Auto
First off your s[i].quiz1 is the way to go, but your function can not see it unless you either pass it via function argument or make it external. Here's how I got your program to work. Try making...
Forum: C Mar 30th, 2005
Replies: 4
Views: 1,670
Posted By Auto
Now I think I get it, I was basically offsetting the location I was pointing to by 20. Here I was assuming I needed to put the length of each string in the brackets, because I think empty brackets...
Forum: C Mar 30th, 2005
Replies: 4
Views: 1,670
Posted By Auto
Thanks, that fixed it. I was just under the impression that since it was an array of strings that I needed the address operator in the strcpy() function, and the only way I could get that to work...
Forum: C Mar 30th, 2005
Replies: 4
Views: 1,670
Posted By Auto
I have a function in one of my programs that picks a random state from a list. It then puts this random state in a structure array. However the name selected from the list does not match the name...
Forum: C Mar 29th, 2005
Replies: 7
Views: 5,397
Posted By Auto
Many thanks Dave, compiled everything okay and I was able to run the .exe with an expected output.
Forum: C Mar 29th, 2005
Replies: 4
Views: 7,605
Posted By Auto
I'm still learning so this may not be the optimal way of doing this, but here is my "fix".

// data list of possible states
char datalist[30][20]=
{
"complete",
"considering",
...
Forum: C Mar 28th, 2005
Replies: 5
Views: 1,860
Posted By Auto
I looked up this error and here is what I found.

Error:
pure specifier can only be specified for functions

Suggestion
In a class definition, you are not allowed to set variables or call...
Forum: C Mar 28th, 2005
Replies: 5
Views: 1,860
Posted By Auto
I may be wrong on this, but I'll take a crack it. It looks as if you're declaring an int i, assigning it no value which in turn will leave some unknown garbage data. And since your array is...
Forum: C Mar 28th, 2005
Replies: 4
Views: 7,605
Posted By Auto
Sure, I'll post my change when I get home. However, it's more of a workaround, I changed the enum datalist to a string array instead.
Forum: C Mar 28th, 2005
Replies: 7
Views: 5,397
Posted By Auto
Okay, thanks Dave I'll start there when I get off work. But I do have one question pertaining to your recommendation. Do I need to prototype show_employee_data() in main() or is one not needed for...
Forum: C Mar 28th, 2005
Replies: 7
Views: 5,397
Posted By Auto
Okay, I'll try that after I get back from work, hopefully that will clear something up.

Thanks
Forum: C Mar 28th, 2005
Replies: 7
Views: 5,397
Posted By Auto
I tried using #include"tables.cpp" and got the same errors. I'm using a project manager that links them, so I'm not sure if I need to place it there, but I'll leave it there just in case.
Forum: C Mar 28th, 2005
Replies: 7
Views: 5,397
Posted By Auto
After fixing some pointer problems with my structures, I decided to move the functions performed on them to another .cpp file.

Here's the definition in my main.cpp above the int main() of course...
Forum: C Mar 27th, 2005
Replies: 4
Views: 7,605
Posted By Auto
Already figured this one out and sent a PM to see if I can have this thread locked or removed.
Forum: C Mar 27th, 2005
Replies: 4
Views: 7,605
Posted By Auto
I have a program that calls a function to generate an array of structures( data_set ). The structures consist of a char[20] and 2 int data types. Now what I'm trying to do is randomly pick from an...
Forum: Game Development Mar 23rd, 2005
Replies: 17
Views: 5,885
Posted By Auto
1) I have ordered a bunch of books from amazon (ie, C++ Primer Plus 5th edition, Direct3D Programming Kickstart, Schaum's Outline of disctete Mathematics, Code Complete 2nd Edition,& the first Game...
Forum: C++ Mar 22nd, 2005
Replies: 6
Views: 1,778
Posted By Auto
I too am just getting started in C++, I've found the Dev-C++ to be a good free compiler. I just started using it and I've been given support on any issues I had thus far. I was surprised at what...
Forum: Game Development Mar 22nd, 2005
Replies: 17
Views: 5,885
Posted By Auto
I checked out both of those sites and they have tons of content, thanks guys. I had seen an add for Torque on DaniWeb somewhere and I checked it out too. However, it looks like I need to learn to...
Forum: Game Development Mar 22nd, 2005
Replies: 17
Views: 5,885
Posted By Auto
Hello and thanks in advance to your suggestions,

I have taken a few courses on programming, Turbo Pascal and intro to C, about 8 years ago and I'm sure much has changed. So my goal is to get back...
Showing results 1 to 22 of 22

 


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

©2003 - 2009 DaniWeb® LLC