FRDB Archives

Freethought & Rationalism Archive

The archives are read only.


Go Back   FRDB Archives > Archives > IIDB ARCHIVE: 200X-2003, PD 2007 > IIDB Secular Community Forums (PRIOR TO JUN-2003)
Welcome, Peter Kirby.
You last visited: Today at 02:40 PM

 
 
Thread Tools Search this Thread
Old 07-05-2003, 10:24 PM   #1
Senior Member
 
Join Date: Apr 2003
Location: Omaha, Nebraska
Posts: 503
Default Programming Question

Does anyone need a C++ programmer for a project. I want to excercise my knowledge so I don't forget everything, but I can't get motivated to do anything! Anyone need some help?
Jake
SimplyAtheistic is offline  
Old 07-05-2003, 10:28 PM   #2
Veteran Member
 
Join Date: Dec 2002
Location: Colorado
Posts: 1,038
Default

Hey Jake. What kind of stuff are you interested in programming? I've been working on a BASIC compiler in C++ for some time now (kind slowed down since of school, and I havn't picked up too much since summer).
dirkduck is offline  
Old 07-05-2003, 10:43 PM   #3
Senior Member
 
Join Date: Apr 2003
Location: Omaha, Nebraska
Posts: 503
Default

Um, about anything actually. I have recently done a lot of stuff with SDL and I have a base engine with networking written for it. So a game shouldnt be too hard. I also have a basic isometric engine written, a map editor that can save maps and load them. um....... you need help with your BASIC compiler? (Though I don't know why you would want to make ANOTHER one ;-) )
Jake
SimplyAtheistic is offline  
Old 07-05-2003, 10:51 PM   #4
Veteran Member
 
Join Date: Dec 2002
Location: Colorado
Posts: 1,038
Default

Heh, there can never be too many BASIC's! . I dabbed a bit with OpenGL a while back, never got too far with it, havn't really done much with SDL though, doub't id be of any help with that sort of stuff! Anywho, thanks for the offer, I think i've got it down so far, but if by any chance you know a bit of x86 ASM, would you have any idea how to return a char* from a a DLL (made in C++) to a variable in ASM? I'm trying to get a "inttostring" function in the compiler, which calls that "inttostring" function in the DLL, but it crashes whenever I try to move the return value into a variable (im sure its some ASM datatype problem, im not very good with ASM).
dirkduck is offline  
Old 07-05-2003, 11:30 PM   #5
Contributor
 
Join Date: May 2002
Location: Saint Paul, MN
Posts: 24,524
Default

Just a side note: Don't muck about with assembly if you don't *REALLY REALLY REALLY* need to.

If you don't know your compiler's setup well enough to know how to get data out of it, you probably don't need to be using assembly at all.

Anyway, if you want a project, don't start your own from scratch; get an open source project that's lagging and work on it.
seebs is offline  
Old 07-05-2003, 11:46 PM   #6
Veteran Member
 
Join Date: Aug 2000
Location: Colorado Springs
Posts: 6,471
Default

Quote:
Originally posted by seebs
Just a side note: Don't muck about with assembly if you don't *REALLY REALLY REALLY* need to.
Or unless you're an absolute control freak, or a glutton for punishment.

d
diana is offline  
Old 07-06-2003, 09:22 AM   #7
Senior Member
 
Join Date: Apr 2003
Location: Omaha, Nebraska
Posts: 503
Default

Quote:
Originally posted by dirkduck
Heh, there can never be too many BASIC's! . I dabbed a bit with OpenGL a while back, never got too far with it, havn't really done much with SDL though, doub't id be of any help with that sort of stuff! Anywho, thanks for the offer, I think i've got it down so far, but if by any chance you know a bit of x86 ASM, would you have any idea how to return a char* from a a DLL (made in C++) to a variable in ASM? I'm trying to get a "inttostring" function in the compiler, which calls that "inttostring" function in the DLL, but it crashes whenever I try to move the return value into a variable (im sure its some ASM datatype problem, im not very good with ASM).
I don't know assembly well at all. The most I did was some basic HLA, and study of architecture involved. And I agree with the others, assembly is overkill for about everything you could possibly do. For an 11% speed increase you get a 200% difficulty increase and a bunch of messy and unmanagable code.
Jake
SimplyAtheistic is offline  
Old 07-06-2003, 11:37 AM   #8
Veteran Member
 
Join Date: Dec 2002
Location: Colorado
Posts: 1,038
Default

Thanks for the replys. The only reason im using assmebly is since I have to (the compiler goes from my BASIC to a intermediate code to x86).
dirkduck is offline  
Old 07-06-2003, 08:14 PM   #9
Veteran Member
 
Join Date: Apr 2002
Location: Melbourne, Australia
Posts: 1,805
Talking

Oh man, where were you when I was doing my last couple of C++ assignments!

I still don't understand friggin' pointers. *, **, &, && - WTF does it all mean??? AHHHGGG!!!
Cutter is offline  
Old 07-06-2003, 11:33 PM   #10
Veteran Member
 
Join Date: Jul 2002
Posts: 1,288
Arrow

Quote:
I still don't understand friggin' pointers. *, **, &, && - WTF does it all mean??? AHHHGGG!!!
Code:
#include <stdio.h>

int main()
{
 int *ptr;
 int var1=4;

 ptr=&var1; /*Stores the memory location where var1 is to ptr*/
 if (ptr!=NULL&&var1>0) {
  /*If the memory location isn't NULL and the integer is greater than 0. (&& has nothing to do with pointers.)*/
  *ptr=*ptr+1; /*Add 1 to the data at the location pointed to by ptr and store it back to that same location.*/
 }
 
 printf("var1: %i\n&var1: %i\nptr: %i\n*ptr: %i\n",var1,&var1,ptr,*ptr); 
 /*Print values of variables. If you run the program, that line will help you understand what's happening.*/

 return 0;
}
** is a pointer to a pointer. I couldn't think of a way to include it in that program without doing command line arguments or something.
Defiant Heretic is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


All times are GMT -8. The time now is 07:19 PM.

Top

This custom BB emulates vBulletin® Version 3.8.2
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.