Synthetic Reality Forums Post New Topic  New Poll  Post A Reply
my profile | directory login | register | search | faq | forum home

  next oldest topic   next newest topic
» Synthetic Reality Forums » General Madness » Random Thoughts » Programming thread [repost] (Page 1)

  This topic comprises 2 pages: 1  2   
Author Topic: Programming thread [repost]
MasaMune
Verbose Member
Member # 2121

Icon 1 posted      Profile for MasaMune   Author's Homepage   Email MasaMune   Send New Private Message       Edit/Delete Post 
Since the other thread was deleted,

Heres the link of ebooks.

Clicky!

[edit]I still need to finish uploading all of them, and probably delete some of the corrupted books.

[ 06-06-2008, 12:16 PM: Message edited by: MasaMune ]

--------------------
posted 06-29-2003 02:06 PM, (stupid newbie hacker masses!)-Samsyn
Lawlsuit Oekaki | Override Designs

Posts: 1992 | From: Beaverton, OR | Registered: Apr 2002  |  IP: Logged
saxamophone0
Obsessive Member
Member # 2917

Member Rated:
4
Icon 1 posted      Profile for saxamophone0   Author's Homepage   Email saxamophone0   Send New Private Message       Edit/Delete Post 
It's the WoS gossip wagon!

Anyway, interesting resource, I found the one on linux shell scripting and the moving to linux .chm helpful. If you have more on python or linux I'd appreciate them!

--------------------
Word is born.

Posts: 8529 | From: NYC | Registered: Oct 2002  |  IP: Logged
MasaMune
Verbose Member
Member # 2121

Icon 1 posted      Profile for MasaMune   Author's Homepage   Email MasaMune   Send New Private Message       Edit/Delete Post 
I think I do, let me plug in my external drive and start uploading them again

--------------------
posted 06-29-2003 02:06 PM, (stupid newbie hacker masses!)-Samsyn
Lawlsuit Oekaki | Override Designs

Posts: 1992 | From: Beaverton, OR | Registered: Apr 2002  |  IP: Logged
saxamophone0
Obsessive Member
Member # 2917

Member Rated:
4
Icon 1 posted      Profile for saxamophone0   Author's Homepage   Email saxamophone0   Send New Private Message       Edit/Delete Post 
Well I'm just waiting on masa to upload some more books that I requested, I don't think it's necessarily dead yet...

--------------------
Word is born.

Posts: 8529 | From: NYC | Registered: Oct 2002  |  IP: Logged
MasaMune
Verbose Member
Member # 2121

Icon 1 posted      Profile for MasaMune   Author's Homepage   Email MasaMune   Send New Private Message       Edit/Delete Post 
Uploaded quite a few more books over the weekend, I still have a lot more to upload though. Sure would be nice if my apartment would give us sufficient bandwidth, seeing as they are being internet nazi's, and not letting us get our own.

[Edit] Shon, could you delete the picture post?

Would people please stop posting off topic, random junk?

[ 06-09-2008, 09:38 AM: Message edited by: MasaMune ]

--------------------
posted 06-29-2003 02:06 PM, (stupid newbie hacker masses!)-Samsyn
Lawlsuit Oekaki | Override Designs

Posts: 1992 | From: Beaverton, OR | Registered: Apr 2002  |  IP: Logged
Shon-dahre
Moderator
Member # 650

Member Rated:
4
Icon 1 posted      Profile for Shon-dahre     Send New Private Message       Edit/Delete Post 
Done [Wink] .

On a similar note, I found that the C++ Builder Complete Reference was actually a FANTASTIC resource for teaching and understanding C and C++ code (it actually only devotes a tiny amount of writing to the actual Builder IDE).

It's the first document to actually outline Pointers in a way that makes sense to me.

For the game that I'm working on, I'm also looking at working out how to incorporate Blender models into a pure OpenGL environment. I've got a pretty steep learning curve ahead of me (OpenGL programming, map program writing, Blender modelling, AI programming) but it should be fun!


I'm trying to write up all the 'easy' bits first off, such as developing the program interface, creating the melee/marksmanship/spellcasting routines, and the concepts behind the game as well as the storylines, quests, etc, and while I'm doing that I'll dabble in the harder aspects.

I think the part I'm going to have the most trouble with is actually incorporating the Blender models into the program. There seems to be very little information in regards to this on the internet at all, and I think I need to grab the actual Blender source code just to get routines to allow me to open the models into my program.

I might need to look for another 3d modelling program that also provides you with information on using the models in a C++ program if I have too much trouble [Wink]

Posts: 12690 | From: Australia | Registered: Jan 2001  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
Shon, what do you mean by "blender models"? Are you working with MD3/MD5/etc?

If looking at the source of a program which already uses those model formats would be helpful, check out http://www.sauerbraten.org/.

I don't know if that will help you at all, but it uses OpenGL and SDL, as well as MD2/3/5 models (most or all made in Blender).

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
Shon-dahre
Moderator
Member # 650

Member Rated:
4
Icon 1 posted      Profile for Shon-dahre     Send New Private Message       Edit/Delete Post 
Well I've only just downloaded Blender the other day and I've had a chance to look at it properly yet, I know you can save things as different formats but I haven't figured out how to yet, but being able to use the .BLEND format or whatever I can figure out how to use is my plan.

I have a feeling you can save them as 3DS files, and I'm sure there's got to be some source somewhere demonstrating how to load those if I can't use the BLEND format.

But thanks for the site [Smile]

Posts: 12690 | From: Australia | Registered: Jan 2001  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
No problem. From what I understand, MD5 models are going to be your best bet, as far as ease of export/import/implementation are concerned. Should be File -> Export in Blender, if I recall correctly.

But I don't know what you're trying to make/do, so I don't know how much that may help.

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
Shon-dahre
Moderator
Member # 650

Member Rated:
4
Icon 1 posted      Profile for Shon-dahre     Send New Private Message       Edit/Delete Post 
Well my intention is to make as many models as possible for the game.

My original intention was to create a lush topdown 2D environment, so I started looking into using DirectDraw. Then I realised that DirectDraw required waaaay too much effort, so I looked into OpenGL, and then I thought, well screw it, I want to do this with 3D models!

So it'll be a 2D top-down view, by all means, but with the benefits of an actual 3D world. The way I see it, there are a LOT of advantages to being able to create a single three dimensional model for an item, rather than have to draw separate sides and angles for the 2D views. I remember trying to write games using sprites in Pascal, and for someone who can't draw to save his life, doing sprites was a nightmare!

I don't have Blender installed on my work computer (yet), but hopefully I'll have time tonight to look at it again, I generally don't have much time when I'm not at work to play around with this stuff.

Posts: 12690 | From: Australia | Registered: Jan 2001  |  IP: Logged
Deadly Headshot
Compulsive Member
Member # 6098

Member Rated:
4
Icon 1 posted      Profile for Deadly Headshot   Author's Homepage   Email Deadly Headshot   Send New Private Message       Edit/Delete Post 
If OOP is too difficult to start on (it was for me), start with BASIC or PASCAL or one of their derivatives. Once you get into the mindset of a programmer, you can then expand to other languages...

--------------------
"Carpé Agnus"
{GS} Pwnz
I like reviving old topics, it makes me feel needed...

{GS} is dead, sorry.

I've finally changed my av!

Posts: 2885 | From: Great Britain | Registered: Apr 2005  |  IP: Logged
Beoghztt
Compulsive Member
Member # 2888

Member Rated:
4
Icon 1 posted      Profile for Beoghztt   Author's Homepage   Email Beoghztt   Send New Private Message       Edit/Delete Post 
Why is this thread stickied?

[Because in future if anyone wants to discuss programming, it can be kept to the one thread. -Shon]

[ 06-14-2008, 02:12 AM: Message edited by: Shon-dahre ]

--------------------
This signature contains a lot of foul languages.
                                                                                   Also racism.

Posts: 2227 | From: Yokohama, Japan | Registered: Oct 2002  |  IP: Logged
Nobody
Veteran Member
Member # 7934

Member Rated:
3
Icon 1 posted      Profile for Nobody   Email Nobody   Send New Private Message       Edit/Delete Post 
I thought C was structured programming. C++ is object oriented.

Though I may be mistaken, I believe it said that at the beginning of the book I've been reading.

--------------------
All is silent in the halls of the dead.

Posts: 991 | From: The Abyss | Registered: Sep 2007  |  IP: Logged
Deadly Headshot
Compulsive Member
Member # 6098

Member Rated:
4
Icon 1 posted      Profile for Deadly Headshot   Author's Homepage   Email Deadly Headshot   Send New Private Message       Edit/Delete Post 
No, Nobody you are right. C is not OOP, however, as a certain C fanboy keeps reminding me, you can use C to write OOP, which he says is more efficient than OOP in C++ (yeah right)...

--------------------
"Carpé Agnus"
{GS} Pwnz
I like reviving old topics, it makes me feel needed...

{GS} is dead, sorry.

I've finally changed my av!

Posts: 2885 | From: Great Britain | Registered: Apr 2005  |  IP: Logged
Shon-dahre
Moderator
Member # 650

Member Rated:
4
Icon 1 posted      Profile for Shon-dahre     Send New Private Message       Edit/Delete Post 
C is procedural.

Fendaril - if you want to use a language that nobody else uses, try Euphoria. From what I hear it's quite powerful and fairly easy to learn. It's been around for a while as well.

Posts: 12690 | From: Australia | Registered: Jan 2001  |  IP: Logged
Shon-dahre
Moderator
Member # 650

Member Rated:
4
Icon 1 posted      Profile for Shon-dahre     Send New Private Message       Edit/Delete Post 
The lack of correct use of the English language in your post has caused me to be unaware of what you're talking about [Razz]
Posts: 12690 | From: Australia | Registered: Jan 2001  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
http://www.europhia.com/page/1/1/en/

Interrogative?

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
Yes, very much:

quote:
Im talking about Europhia.


--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
Okay, I need help with something (C++ programming). I'm trying to construct a bit of code such that I have a char* command containing something like ACTOR or ADD, which hocus-pocus causes a char [3] comnum to become 001 or 002, respectively. I don't even need the leading zeroes, nor the char [3], so long as I get the associated numerical value at some point. Then I play around with the data some more and the rest is a lot easier. But this part, I just can't quite get. Maybe it's due to the fact that it's 4 in the morning, maybe not. Any help would be appreciated.

The chunk in question:

code:
 bool questtovs(char* readfile, char* writefile)
{
FILE * rFile;
rFile = fopen(readfile,"r");
char curline [256];
char cleanline [256];
char* command;
while (!feof(rFile)) {
fgets(curline, 256, rFile);
memset(cleanline, 0, 256);
strncpy(cleanline, curline, strcspn(curline,";\n"));
command = strtok(cleanline, " ");

printf("command is: %s\n", command);
}
fclose(rFile);
return true;
}

And that blank line is where I'm stuck; the printf won't be in the final product.

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
MasaMune
Verbose Member
Member # 2121

Icon 1 posted      Profile for MasaMune   Author's Homepage   Email MasaMune   Send New Private Message       Edit/Delete Post 
http://www.media.pdx.edu/spring_2007/Fant/main.php?faculty_name=Fant&term=winter&year=2007&course=CS162


http://www.media.pdx.edu/spring_2007/Binkley/main.php?faculty_name=Binkley&term=spring&year=2007&course=CS410


http://www.media.pdx.edu/spring_2006/Li/main.php?faculty_name=Li&term=spring&year=2006&course=CS415

Self created bypass for media.pdx.edu


Received permission to post courses from the professors. Please request more information if you wish to view other courses at http://www.media.pdx.edu

--------------------
posted 06-29-2003 02:06 PM, (stupid newbie hacker masses!)-Samsyn
Lawlsuit Oekaki | Override Designs

Posts: 1992 | From: Beaverton, OR | Registered: Apr 2002  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
Linked lists are driving me crazy.

I call a function to make a linked list, then have it pass the handle back. When I get the handle back, I can't get any of the data back out of my linked list. It all claims to be blank (not even null). Ideas?

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
MasaMune
Verbose Member
Member # 2121

Icon 1 posted      Profile for MasaMune   Author's Homepage   Email MasaMune   Send New Private Message       Edit/Delete Post 
Pass by referance, not value flamelord

(Instead of just variable, use & variable)

--------------------
posted 06-29-2003 02:06 PM, (stupid newbie hacker masses!)-Samsyn
Lawlsuit Oekaki | Override Designs

Posts: 1992 | From: Beaverton, OR | Registered: Apr 2002  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
Mmm. Okay, so passing by reference. I pass by reference both ways or just returning?

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
MasaMune
Verbose Member
Member # 2121

Icon 1 posted      Profile for MasaMune   Author's Homepage   Email MasaMune   Send New Private Message       Edit/Delete Post 
Passing by reference make it so that you are actually changing the value directly, whereas when you pass by value you are using a copy of the data that you need to return, and the original data itself does not actually change.

--------------------
posted 06-29-2003 02:06 PM, (stupid newbie hacker masses!)-Samsyn
Lawlsuit Oekaki | Override Designs

Posts: 1992 | From: Beaverton, OR | Registered: Apr 2002  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
Okay, that problem I worked around since trying to pass by reference was proving futile. New problem!

quote:
E:\home\chris\code\vsconv>vsconv -q conv.txt new.txt
001MING
002:\WINDOWW
0032\Wbem;EQ
004athapps;K
005Cygwin\bE
006;.JS;.JS?
067ROCESSOR9
007ing 2, A3
008_REVISIO-
068MPT=$P$G'
0090\lib\ex!
010rive=E:
011hris\LOC§
0121\Temp
013NAME=chr
014\chris
015
016
017
018
019
020
021
022
023
024
025
099
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
069
070
064
072
041
042
065
043
044
045
046
047
048
049
050
051
052
053
054
055
056
073
057
058
059
060
061
062
063
066
071
074
100
101
102
103
104
105
106
107
108
109
110
111
wtf:2 052êa=
052êa=command is: SET
wtf:2 052êa=
052êa=command is: SET
wtf:2 002╕%=
002╕%=command is: ADD
wtf:5 072↑_=
072↑_=command is: NTH_TOKEN
wtf:2 007╪&=
007╪&=command is: COMPARE
command is: IF<
wtf:0 049°`=
049°`=command is: RETURN
wtf:0 011╚'=
011╚'=command is: END

E:\home\chris\code\vsconv>

Generated by:

quote:
struct comnode
{
char argnum [4];
char comname [25];
char comnum [3];
comnode *next;
};

comnode *start_com = NULL;
comnode *temp, *temp2;
FILE * cFile;
cFile = fopen("vsconv.txt","r");
if(cFile == NULL) printf("Error Opening File!\n");
char line [32];
char cline [32];
while (!feof(cFile))
{
fgets(line, 32, cFile);
strncpy(cline, line, strcspn(line,";\n"));
temp = new comnode;
memcpy(temp->comnum, strtok(cline,"="), 3);
memcpy(temp->comname, strtok(NULL,"="), 25);
memcpy(temp->argnum, strtok(NULL,"="), 4);
printf("%s\n", temp->comnum);
memset(line, 0, 32);
memset(cline, 0, 32);
temp->next = NULL;
if (start_com == NULL)
start_com = temp;
else
{
temp2 = start_com;
// We know this is not NULL - list not empty!
while (temp2->next != NULL)
{
temp2 = temp2->next;
// Move to next link in chain
}
temp2->next = temp;
}
}
fclose(cFile);

From data (vsconv.txt):

quote:
001=ACTOR=8
002=ADD=2
003=AND=2
004=ASK=2
005=BKGND=1
006=CALL=1
067=COLOR=1
007=COMPARE=2
008=COUNTDOWN=1
068=DIALOG=2
009=DIV=2
010=EJECT=1
011=END=0
012=F_ADD=2
013=F_COMPARE=2
014=F_DIV=2
015=F_MOD=2
016=F_MUL=2
017=F_SUB=2
018=FACE=2
019=FIGHT=var
020=FIGHT2=var
021=FLAGS=1
022=FX=1
023=GAME=1
024=GET_SERVER_VAR=3
025=GIVE=1
099=@=1
026=GOTO=1
027=GOTO EXIT=0
028=GOTO LINK=3
029=GOTO SCENE=1
030=HOST_GIVE=1
031=HOST_TAKE=1
032=HTML=1
033=IF=2
034=LOCK=1
035=MISSION=var
036=MENU=var2
037=MOD=2
038=MOVE=4
039=MUL=2
040=MUSIC=1
069=!NAND=2
070=!NOR=2
064=NOT=1
072=NTH_TOKEN=5
041=OFFER=var
042=OFFER2=var3
065=OR=2
043=PARTY=1
044=PARTY_GIVE=1
045=PARTY_TAKE=1
046=POP=1
047=POSE=3
048=PUSH=1
049=RETURN=0
050=SEL=1
051=SET_SERVER_VAR=3
052=SET=2
053=SET_LEN=2
054=SET_SUBSTR=4
055=SOUND=1
056=STRCMP=2
073=STRLWR=2
057=STRSTR=2
058=SUB=2
059=TAKE=1
060=THEME=1
061=TIMER=2
062=WAIT=1
063=WEATHER=1
066=XOR=2
071=!XNOR=2
074=!BATTLE=var
100=!AI_ATTACK=2
101=!AI_CAST=2
102=!AI_SKILL=2
103=!AI_IF=4
104=!AI_FLEE=0
105=!AI_DEFEND=2
106=!AI_MOVE=1
107=!AI_ADD=2
108=!AI_SUB=2
109=!AI_MUL=2
110=!AI_DIV=2
111=!AI_MOD=2

So. Any bright ideas where in the code the junk is coming from, and why it can fit in a char array that's three bytes long?

[ 06-23-2008, 02:47 PM: Message edited by: Flamelord ]

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
MasaMune
Verbose Member
Member # 2121

Icon 1 posted      Profile for MasaMune   Author's Homepage   Email MasaMune   Send New Private Message       Edit/Delete Post 
From now on please use quote instead of code, i can't read it.

To me, it looks like you are reading outside of whatever memory you are attempting to use, thats what all the funny letters usually mean. But let me take a couple minutes to look at your code.

--To be edited in a bit--

Where are you declaring "comnode *start_com = NULL;"

The datatype? [int, string, array, etc etc etc]

[clarification] What is start_com

[ 06-23-2008, 09:08 AM: Message edited by: MasaMune ]

--------------------
posted 06-29-2003 02:06 PM, (stupid newbie hacker masses!)-Samsyn
Lawlsuit Oekaki | Override Designs

Posts: 1992 | From: Beaverton, OR | Registered: Apr 2002  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
start_com is a pointer that always points to the start of the command list, whereas temp and temp2 are used to walk through it.

Edit: The whitespace is ruined, but I did change it to quote.

[ 06-23-2008, 02:47 PM: Message edited by: Flamelord ]

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
I know where the garbage came from! I (being rather silly) forgot to leave room for \0.

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
Deadly Headshot
Compulsive Member
Member # 6098

Member Rated:
4
Icon 1 posted      Profile for Deadly Headshot   Author's Homepage   Email Deadly Headshot   Send New Private Message       Edit/Delete Post 
You can be certified in ANY Turing-complete language. C++ is just the more popular one. Other popular languages for certification include Java, D, and, if you're masochistic, COBOL...

--------------------
"Carpé Agnus"
{GS} Pwnz
I like reviving old topics, it makes me feel needed...

{GS} is dead, sorry.

I've finally changed my av!

Posts: 2885 | From: Great Britain | Registered: Apr 2005  |  IP: Logged
Hesacon
Obsessive Member
Member # 3724

Member Rated:
4
Icon 1 posted      Profile for Hesacon   Author's Homepage   Email Hesacon   Send New Private Message       Edit/Delete Post 
To be certified in programming, you can't complain when you don't understand the first language you try after ten minutes.

--------------------
SoV: Exalted Devout Oracle | World Developer | The Black Guard
Outside is just a prank older kids tell younger kids at Internet Camp

Posts: 9506 | From: NY | Registered: Apr 2003  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
Fendaril, what do you so despise about C++?

Hesacon, be nice. [Smile]

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
Deadly Headshot
Compulsive Member
Member # 6098

Member Rated:
4
Icon 1 posted      Profile for Deadly Headshot   Author's Homepage   Email Deadly Headshot   Send New Private Message       Edit/Delete Post 
If he hasn't done any programming before, C++ is NOT a good place to start - perhaps that's the problem...

--------------------
"Carpé Agnus"
{GS} Pwnz
I like reviving old topics, it makes me feel needed...

{GS} is dead, sorry.

I've finally changed my av!

Posts: 2885 | From: Great Britain | Registered: Apr 2005  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
No, of course not. If you haven't done any programming before, you need to learn algorithm design. My crazy path to programming took me through scripting in QUEST to advanced scripting in QUEST to using programming design principles in QUEST before I really had a good grasp on how to program in a mostly acceptable manner. I still have a long way to go, though right now I most need work in getting the proper syntax for some of the more advanced stuff in C++ down.

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
Shon-dahre
Moderator
Member # 650

Member Rated:
4
Icon 1 posted      Profile for Shon-dahre     Send New Private Message       Edit/Delete Post 
I think Pascal is a great place to start, although I don't think there's any modern alternatives to Delphi which are free that you can start with.
Posts: 12690 | From: Australia | Registered: Jan 2001  |  IP: Logged
Flamelord
Compulsive Member
Member # 4491

Member Rated:
4
Icon 1 posted      Profile for Flamelord   Author's Homepage   Email Flamelord   Send New Private Message       Edit/Delete Post 
The book was almost certainly bad.

Go to this page: http://www.bloodshed.net/dev/devcpp.html
When there, scroll down. Click the SourceForge link immediately underneath the heading "Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2". The download should start after it goes to a SourceForge page (if you're on dial-up, you may want to download it at night).

Then, install it to a directory name without spaces (C:\Dev-Cpp\ should be the default, and it is acceptable). Start Dev-Cpp. In the new project window (which should come up by default, choose to make a new console program in C++. Hit Okay, then hit compile & run. Your (mostly blank) program should compile and run after you save the source, and it should pop up a console window that says "Press any key to continue . . ." or something similar.

Then just write your program, once you know the compiler works.

--------------------
Constantinople! We shall never forget your zany barge poles!

Posts: 4232 | From: Gresham, OR | Registered: Nov 2003  |  IP: Logged
Deadly Headshot
Compulsive Member
Member # 6098

Member Rated:
4
Icon 1 posted      Profile for Deadly Headshot   Author's Homepage   Email Deadly Headshot   Send New Private Message       Edit/Delete Post 
If you can't compile simple C++ programs then it's either your PC or compiler. E.G.: I could never get DevC++ to run, but Visual C++ works fine. Neither runs on my old machine, in spite of being designed for its specs. My advice is to get someone else to try the program, and if they can compile it, try using a different compiler on your machine. If you still have problems, it's likely to be your PC...

--------------------
"Carpé Agnus"
{GS} Pwnz
I like reviving old topics, it makes me feel needed...

{GS} is dead, sorry.

I've finally changed my av!

Posts: 2885 | From: Great Britain | Registered: Apr 2005  |  IP: Logged
Nobody
Veteran Member
Member # 7934

Member Rated:
3
Icon 1 posted      Profile for Nobody   Email Nobody   Send New Private Message       Edit/Delete Post 
DevC++ never worked for me either.

--------------------
All is silent in the halls of the dead.

Posts: 991 | From: The Abyss | Registered: Sep 2007  |  IP: Logged
Deadly Headshot
Compulsive Member
Member # 6098

Member Rated:
4
Icon 1 posted      Profile for Deadly Headshot   Author's Homepage   Email Deadly Headshot   Send New Private Message       Edit/Delete Post 
Programming IS problem-solving. You can't get away from it by leaving C++ behind.

--------------------
"Carpé Agnus"
{GS} Pwnz
I like reviving old topics, it makes me feel needed...

{GS} is dead, sorry.

I've finally changed my av!

Posts: 2885 | From: Great Britain | Registered: Apr 2005  |  IP: Logged
MasaMune
Verbose Member
Member # 2121

Icon 1 posted      Profile for MasaMune   Author's Homepage   Email MasaMune   Send New Private Message       Edit/Delete Post 
You need to remember a couple different things

A) What compiler is the book using?

Most compilers, while similar, are also vastly different in implementation. MSVC++ is worlds apart from dev-c++. Dev-C++ sticks closer to strict standards of implementation, whereas the microsoft compiler is very lax, and uses a lot of its own implementation that is proprietary, or just plain wrong.

B) How old is the book you are using?

Over time, the standards of c++ have changed slightly, making some things standard through official certs, and other things have become obsolete. If you have an older book, using older code, it is possible it has had a code update, and the compiler standards are different from years past. When buying new books, you should try to buy from 1-2 years ago if at all possible. (You'll see a lot of books have 3rd, 4th, even 5th editions, which are all updates to code, and fixes to stuff)

C) Is the author reputable?

There are many books that are just made to be made, and are HORRIBLE examples of code, whether its lazy programming and leaving things out, to just plain INCORRECT code, it does happen. One of my favorite authors for C++ books is John Wiley (and a lot of his books can be found in my ebooks folder)

Again, you should always ensure your getting a new book, if there is a sixth edition out, you really should NOT be reading the third or fourth edition.

--------------------
posted 06-29-2003 02:06 PM, (stupid newbie hacker masses!)-Samsyn
Lawlsuit Oekaki | Override Designs

Posts: 1992 | From: Beaverton, OR | Registered: Apr 2002  |  IP: Logged
MasaMune
Verbose Member
Member # 2121

Icon 1 posted      Profile for MasaMune   Author's Homepage   Email MasaMune   Send New Private Message       Edit/Delete Post 
Due to massive increase in traffic (up to 17gb of bandwidth, which is fine because i have unlimited, but still)

I have password protected the ebook directory. If you want access, simply send me an email at net_zero1@hotmail.com and include a username and password, and I will add you within a day.

--------------------
posted 06-29-2003 02:06 PM, (stupid newbie hacker masses!)-Samsyn
Lawlsuit Oekaki | Override Designs

Posts: 1992 | From: Beaverton, OR | Registered: Apr 2002  |  IP: Logged
  This topic comprises 2 pages: 1  2   

Quick Reply
Message:

HTML is not enabled.
UBB Code™ is enabled.

Instant Graemlins
   


Post New Topic  New Poll  Post A Reply Close Topic   Unfeature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Synthetic Reality

Copyright 2003 (c) Synthetic Reality Co.

Powered by UBB.classic™ 6.7.3