You are currently viewing a search engine-friendly (archive) version of this page.
View Full Version : C Programming - Let's Get Started
greengoose1
May 22, 2001, 08:43 pm
I have a Compaq 5360/450 AMD k-6 processor, 10Gb memory, 98SE.
What tools do you "Programming Techs" recommend? A good tutorial? What else? I have read the current threads here
This is the extent of my knowledge at the moment. I wish to learn C and JAVA and HTML. What about C++. And this is the main function () - I think. http://www.helpfromtechs.com/ubb/smilies/grin.gif
Flood me with knowledge, you who have done it. http://www.helpfromtechs.com/ubb/smilies/smile.gif
------------------
Seek Knowledge and All Else Will Follow
greengoose1
May 23, 2001, 07:36 am
Downloaded the Borland Compiler and can't use
it yet. Did a search and found I need to work it with a DOS Shell. Please explain the mechanics of operation here or where can I find a how to or step by step. http://www.helpfromtechs.com/ubb/smilies/smile.gif
Bin is short for binaries. Under this directory you will find all of the command-line tools (as well as RTL and STL dynamic libraries). These are 32-bit Windows exectuable, command-line programs, which means if you double click on one of them from Windows Explorer you are likely to see a flashing DOS box, that comes up and immediately goes away. These applications are meant to be run from within a DOS shell. Meaning, you need physically move to the Bin directory and type the name of the program that you want to run (unless this directory is first in your path).
------------------
Seek Knowledge and All Else Will Follow
<FONT COLOR="#800080" SIZE="1" FACE="Verdana, Arial">This message has been edited by greengoose1 on May 23, 2001 at 08:40 AM</font>
Tonker
May 24, 2001, 11:17 am
Hi Greengoose,
Not too sure if you're asking how to use Borland C++ or how to access a command prompt.
If you go to (start button)START_Programs_Command Prompt (where _ is a start menu choice), you can run any of your programs from there. You simply "cd" - change directory to your borland directory and you can find the bin subdirectory in there. You might want to set your PATH variable to include the bin directory of your Borland compiler. This will allow you to run the compiler without being in the binb directory. if you have your compiler in C:\borland then you would type: PATH=c:\borland\bin;%PATH%
This tells the command window to search the bin directory first, then the rest of your path when it is looking for a program.
I don't really know how to use Borland. You'll have to consult their website for that.
in terms of links I'll send you a few that I've found useful: http://www.coding-zone.co.uk/cpp/tutorials.shtml http://www.cs.cf.ac.uk/Dave/C/CE.html http://cit.rcc.on.ca/cprogram/cstart.htm http://www.strath.ac.uk/CC/Courses/NewCcourse/ccourse.html http://www.icce.rug.nl/docs/cplusplus/cplusplus.html http://www-h.eng.cam.ac.uk/help/tpl/languages/C/teaching_C/teaching_C.html
These should get you started. Have fun! http://www.helpfromtechs.com/ubb/smilies/smile.gif
------------------
greengoose1
May 24, 2001, 01:43 pm
Hi Tonker, Great info, and will check out the links. As I stated this is completely unfamiliar ground and some of the beginning steps on how to's are giving me a few problems. I had done some more research since I posted and received the supplemental instructions for installing the compiler. It would seem others had gotten hung up on the same paragraph. I am now trying the simple "hello" program and when I try to run it, "Bad file or command name" comes up. I am wondering if the shortcut I put on the desktop for the compiler is causing the problem as "\desktop\" is in the path now.
Thanks for the reply. http://www.helpfromtechs.com/ubb/smilies/smile.gif
------------------
Seek Knowledge and All Else Will Follow
<FONT COLOR="#800080" SIZE="1" FACE="Verdana, Arial">This message has been edited by greengoose1 on May 24, 2001 at 10:44 AM</font>
Tonker
May 25, 2001, 10:18 am
Hi Greengoose,
I normally have on directory for doing my coding. All of the things I'm working on are usually in subdirectories of C:\projects. It just helps to keep track of them. Then I add my compiler to my path - I assume you're using a console based compiler (Turbo C++ or something similar)? So for example my path would look something like:
PATH=c:\borland\bin;c:\windows\;c:\windows\system; c:\bin (this is just an example)
Since I don't know your compiler I can't really help there. I assume you have some sort of editing environment provided with the compiler. This probably allows you to set where you build the executable. I would assume it normally builds and links your code into its current working directory. i.e wherever you opened the Dev Environment from.
If this is the case you should be able to change to your project's directory and find the executable you've created either there or in a subdirectory.
C:\Projects\hello\> dir
hello.cpp hello.obj
hello.ilk hello.exe
C:\Projects\hello\> hello
Heyyyyy World!!!
Wukka-Wukka!
C:\Projects\hello\>
Of course, all this is rather speculative since I can't see how your system is set up.
Good luck, hope it helps.
-T
------------------
greengoose1
May 25, 2001, 11:45 am
Hi Tonker, With your help I've started moving forward. Will post details on what I've done on system tonight or in the morning after I get home from work. Thanks. http://www.helpfromtechs.com/ubb/smilies/smile.gif
------------------
Seek Knowledge and All Else Will Follow
tweakthis
May 25, 2001, 10:10 pm
Way to go, bro'! http://www.helpfromtechs.com/ubb/smilies/grin.gif http://www.helpfromtechs.com/ubb/smilies/grin.gif (See, I do come and visit the techies occasionally. Generally hang out in hardware where at least I understand the lingo/concepts/problems. http://www.helpfromtechs.com/ubb/smilies/wink.gif )
Addendum: Hmmph, I spent my 2100'st post complimenting my bro'. Gotta get a life. http://www.helpfromtechs.com/ubb/smilies/wink.gif
------------------
Hardware: The parts of a computer you can kick!
Moderator, General Discussion, helpfromtechs.com (http://www.helpfromtechs.com/cgi-bin/ubb/Ultimate.cgi) I can be reached at tweakthis@helpfromtechs.com
<FONT COLOR="#800080" SIZE="1" FACE="Verdana, Arial">This message has been edited by tweakthis on May 25, 2001 at 07:11 PM</font>
greengoose1
May 25, 2001, 11:20 pm
Excuse me Tonker for a moment. Hi tweakthis, congrats on your 2100th post and what do you think about the Inwin S500 ATX case. Would you put a 300w PS in it or go with a 250w. And a extra fan for forced cooling. I can talk the talk. http://www.helpfromtechs.com/ubb/smilies/grin.gifhttp://www.helpfromtechs.com/ubb/smilies/grin.gif Seriously though I check the hardware forum everytime I log in. Needs to pick up some momentum. Been thinking about it.
Met tonker here and has helped me already.
Don't know why I like programing better than gaming - Maybe the challenge. You're either right or wrong. There is no middle ground. Later. http://www.helpfromtechs.com/ubb/smilies/smile.gif
------------------
Seek Knowledge and All Else Will Follow
MikeFoster
May 28, 2001, 12:47 pm
I agree, Tonker has been tremendous in this forum... thanks dude!
*edit*
Ooops! I'm sure TT will remind me that I can't assume that Tonker is a dude!
http://www.helpfromtechs.com/ubb/smilies/lol.gif
------------------
Help From Techs Support Forums
<FONT COLOR="#800080" SIZE="1" FACE="Verdana, Arial">This message has been edited by MikeFoster on May 28, 2001 at 09:51 AM</font>
Tonker
May 31, 2001, 12:29 pm
Oh, I think we can assume Tonker is a dude. http://www.helpfromtechs.com/ubb/smilies/wink.gif
------------------
MikeFoster
June 1, 2001, 02:28 am
http://www.helpfromtechs.com/ubb/smilies/lol.gif
------------------
Help From Techs Support Forums
vBulletin Copyright © Jelsoft Enterprises Ltd., 2000-2009.