View Full Version : Borland C++ 5.5
stuperfied
January 19th, 2003, 12:38 AM
I need a key stroke event trapper for 'press any key', anyone know a good one?
stuperfied
January 21st, 2003, 05:45 AM
Ok, so let me ask another question, Does anyone in here know how to programme?
SnakeAnarchy
January 25th, 2003, 10:10 AM
Well im new to C++ im still learning to use the console and some basics on Win32. I dont use borland c++, i personally like Dev-C++ and VC++ 6.0 im reading a couple e-books and online tutorials and i have a couple open source projects that im using to practice.
who knows maybe one day when i learn ill make the next gen p2p app ;)
stuperfied
January 25th, 2003, 04:44 PM
Well I know bit's and pieces from several different languages (hence my original question because it's so hard to remember it all and it get's jumbled sometimes) and I have a friend in the same boat as you that's why I needed the event trapper (which was getch() by the way) so if you have any questions feel free to ask and I will do my best to help.
I think everyone else in here is just into html, cgi, java, javascript, pearl, etc and none into C++, that would explain their not answering my question. But don't get discouraged cause there are a lot of people trying to learn and in the same situation as you. I think that's what the developers corner is for.
fernandez
January 25th, 2003, 05:19 PM
Originally posted by stuperfied
Well I know bit's and pieces from several different languages (hence my original question because it's so hard to remember it all and it get's jumbled sometimes) and I have a friend in the same boat as you that's why I needed the event trapper (which was getch() by the way) so if you have any questions feel free to ask and I will do my best to help.
I think everyone else in here is just into html, cgi, java, javascript, pearl, etc and none into C++, that would explain their not answering my question. But don't get discouraged cause there are a lot of people trying to learn and in the same situation as you. I think that's what the developers corner is for.
Wouldn't it be nice if we had a programming tutorial section subdivided into different languages? I believe it would be nice for aspiring programmers.
stuperfied
January 25th, 2003, 05:52 PM
All the tutorials I have found on the net are only for the extreme basics but I have something here that may help either now or in the future if you are not at this stage yet.
The file I am attatching is a tutorial given to me by artificial_tiger and he found it somewhere on the internet suprisingly, it is a guide to creating windows aplications. I can already hear your knee's beginning to weaken, lol. I hope it's as good as it appears.
Well it didn't work and I don't know why but I will try to arange an alternate method of posting it.
fernandez
January 25th, 2003, 06:04 PM
You do have a good point. The problem I usually encounter is that the tutorials are either too basic or too advanced; I believe I'm searching for the "missing link". However, that missing link might just be experience that I lack. Anyways, there are some good programming sites online, some of which are really helpful.
Rickio
January 25th, 2003, 06:09 PM
If you guys want a programming tutorial section subdivided into different languages.
Just begin it and add to it and I am sure like minded people will join you.
I will be glad to see it myself and would like to learn. I haven't even begun.
So as a way to begin can you give some beginners advice?
peace!
fernandez
January 25th, 2003, 06:35 PM
Originally posted by Rickio
If you guys want a programming tutorial section subdivided into different languages.
Just begin it and add to it and I am sure like minded people will join you.
I will be glad to see it myself and would like to learn. I haven't even begun.
So as a way to begin can you give some beginners advice?
peace!
Personally I like the online notes that some professors post on the web. Usually they cover the basics and will give you a good start. I'm trying to learn java, but I'm really stuck on networking and multithreading. If you're interested in java, try the following links.
http://chortle.ccsu.ctstateu.edu/cs151/cs151java.html (excellent course covering the basics)
http://www.ibiblio.org/javafaq/course/ (covers some more advanced topics)
http://java.sun.com/docs/books/tutorial/ (tutorial from sun.com has lots of examples with source code)
Rickio
January 25th, 2003, 06:46 PM
thanks for the tips.
tips on other languages are welcome as well :-)
peace
stuperfied
January 25th, 2003, 07:16 PM
Well this is it then, the programmers corner.
I will post some tutorials I have downloaded onto my web site at www.killercomputers.com and start a new section in the menu for programing tutorials. This can be used for any files you have on your computer simply by sending them to me, otherwise simply post a link to the location.
I think everyone would apreciate it if you checked your tutorials before posting them to make sure they don't just cover the basics because such tutorials are in ready suply on the net.
I would be more than happy to try and answer any questions you might have, just post them here.
fernandez
January 25th, 2003, 07:18 PM
Rickio try the following link, it's a large collection of all kinds of programming books. http://www.maththinking.com/boat/booksIndex.html
stuperfied
January 25th, 2003, 08:14 PM
I have just finished updating my web site at http://www.killercomputers.com, feel free to check it out but please don't pay much attention to the prices at the moment cause I havn't had much time to update it with my computer being crashed by my ISP and all, which I am going to post about latter.
At my site after you click enter store you will find a menu on the left with an added link called programing, in here (hopefully if I didn't stuff up) you will find a link to a good advanced tutorial which teaches you how to make windows aplications.
This is where you get borland C++ compilers but I don't recommend version 6 because it's a completely new design and it is only a trial version. I have not checked it out yet though artificial_tiger has and he informs me that version 6 is not good for a beginner.
http://www.borland.com/products/downloads/download_cbuilder.html#
fernandez
January 26th, 2003, 12:59 AM
Thanks for putting it up stuperfied. I saved the pdf for later use.
stuperfied
January 26th, 2003, 03:27 AM
Thats ok, let me know if it's any use.
For the people just starting, here is the structure of a typical basic C++ program:
#include <iostream.h> // Places the file iostream.h at the beginning of the program
// Blank but not nesessary
main() // Opens our first function
{ // The start of our first function
using namespace std; // Initializes the standard input output buffer
cout << "Hello World!!/n"; // Prints Hello World!! on the screen
getch(); // Pauses the program until the user presses a key
return 0; // Returns the value 0
} // The end of our first function
I think it is best if I only explain in detail what you need me to so if you have any questions feel free to ask.
If you find any faults with any of the code posted please let the person who posted it know so they may correct the mistake or if they are unatainable it would probably be best if you corrected it on their behalf.
artificial_tiger
January 26th, 2003, 04:20 AM
lol isnt the header file <iostream> ? thats the one i use because its both input and output lol not just output... ok heres me advices if your learning a new computer language (and most of you will hate it) BUY A BOOK get some book like "programing C++ for idiots" because when read for the first few months your going to look back at it every time you write a program and take it from me its a lot easyer to put 10 book marks in your book than have 10 webpages open. also a book you can scrible whatever notes YOU feel apply as you learn and when you go back to it you know what it means... reading someone else's notes is only going to confuse you more. lol also stick to as little programing languages as possible lol i know, can read or understand the basics of QBasic, Visual Basic, C++, Perl, CGI, HTML, Python lol theres more a played arounf with almost everyone lol upto now when im learning c++ and the amount of times you confuse them isnt funny lol (for anyone who knows anything try using the print command in c++ lol took me 30 mins to work out whats wrong :$) ya but basicly buy a good book and if possible have someone on the same level as you to learn with and share your exalent programs with and marvel at each others progress lol... anyways even though i recommend against using websites because they usualy miss spots or are out dated i'll soon post some links for a number of programing languages but mostly Visual Basic and C++ as they are the most popular.
o and one last thing if your looking for a easy language to learn go for Visual Basic if you want a powerful but alot more difficult language go for c++.
o and again lol no one pick on me spelling please :P i know its bad lol you dont need to remind me :P
stuperfied
January 26th, 2003, 04:48 AM
artificial_tiger and I are studdy mates and we are alike in the fact that we know heaps of different languages, hence my mixup but I have corrected it now.
As for the books, great idea they are just as good as the basic sites I asked people to refrain from posting and will keep you from searching for hours to find the basics on the net. If you get one that teaches you beyond the basics your very lucky. I would suggest that if you are going to go for a book you get one only and don't waste your money on multitudes of them cause they are pretty much all the same. I have read about 16-20 of them even out of university librarys, and i'm not much better off than I was after the first three.
As for Visual basic if you would like we can start a new post right now as I also mentioned earlier and you can go off and have fun with it.
artificial_tiger
January 26th, 2003, 04:58 AM
just a quick note to appolagize to "stuperfied" for the comment on the code he posted and also that my last note was in no way ment to make people out as idiots it was only there for the people of us (like me not many years back) who have no idea how to learn the basics or get past them again i apolagise.
stuperfied
January 26th, 2003, 05:19 AM
I must correct my earlier post, artificial_tiger informs me that the borland version 6 command line compilar is ok but the borland Graphical user interfaces are not good for a beginner.
Now just download and install yourself a version of Borland from borland.com (http://www.borland.com), type that program I posted into a text editor and save is as helloworld.cpp. Now just follow the instructions provided with your compiler on how to compile your programm then run the executable which is produced in your borland bin directory named helloworld.exe.
fernandez
January 27th, 2003, 11:38 AM
Thanks for the sample code stuperfied. Looks similar to C. iostream instead of stdio.h, the printing statement looks quite different though.
Anyways, about the tutorial section, wouldn't it be better if board users submit a few ideas what they are interested in, and what they would like to see?
Just posting random code snippets might become a little messy. Rewriting whole tutorials that can be found on the net would be time consuming.
What do you think?
stuperfied
January 27th, 2003, 04:22 PM
Your quite right fernandez, just that I thought it would be apropriate to at least have the traditional basis to give the beginners a leg up. And you will find that in C++ they have just made more files like stdio.h which have all different purposes and have saved them all under iostream.h hence the line "using namespace std;" which is just saying that we want to use stdio.h out of the file iostream.h
zebi the truth is that you never stop learning how to programm, everyday I find a better way of doing something like yesterday I learned a little about PHP thanks to collideous check it out here. My lesson in CGI (http://www.zeropaid.com/bbs/showthread.php?s=&threadid=6769) Now your probably wondering what that has to do with C, well in following that up I found instructions on how to use C programming in Web page design.
Do you have any other background in programming zebi?
fernandez
January 27th, 2003, 11:32 PM
All right, I'll continue in the same spirit then stuperfied.
Here's the same thing in java.
class HelloWorld //class name
{
public static void main(String args[]) //main method (program start)
{
System.out.println("Hello World"); //print Hello World
} //end main
} //end class
//save program as HelloWorld.java
//compile by issuing the command javac HelloWorld.java from terminal
//run by issuing the command java HelloWorld
stuperfied
January 28th, 2003, 05:39 AM
thankyou fernandez.
If your generous contributions to this thread are any indication of what we may expect from other users, then it would seem likely that a new name would be in order.
Does any one have any suggestions as to a new (and more apropriate) name for our thread?
stuperfied
January 29th, 2003, 07:37 AM
How much do you know about the C++ language now?
stuperfied
January 29th, 2003, 08:13 AM
well it seems to me that your not far off. I suggest that you download and read through the file on my web site, you might be supprised. Killer Computers (http://www.killercomputers.com)
Well i'm off to bed now so if you decide to download it, tell me what you think and I will get back to you tomorrow ok.
Etnies
February 1st, 2003, 03:14 PM
zebi
The latest version of microsofts compiler is '.net' and before that was version 6, thats what i used for my university course.
There is really no need to get the latest version, they all compile in the same way. The new versions just have alot of stuff that you'll probably never use, and will be confusing if your just starting out.
stuperfied
February 4th, 2003, 02:40 AM
I regret that the answer is too large for a simple PM.
MFC
Short for Microsoft Foundation Classes, a large library of C++ classes developed by Microsoft. For Windows -based applications written in C++, MFC provides an enormous headstart. One of the hardest parts of developing C++ programs is designing a logical hierarchy of classes. With MFC, this work has already been done.
MFC is bundled with several C++ compilers and is also available as part of the Microsoft Developer's Network (MSDN).
ISO
Short for International Organization for Standardization. Note that ISO is not an acronym; instead, the name derives from the greek word iso, which means equal. Founded in 1946, ISO is an international organization composed of national standards bodies from over 75 countries. For example, ANSI (American National Standards Institute) is a member of ISO. ISO has defined a number of important computer standards, the most significant of which is perhaps OSI (Open Systems Interconnection), a standardized architecture for designing networks. ANSI
Acronym for the American National Standards Institute. Founded in 1918, ANSI is a voluntary organization composed of over 1,300 members (including all the large computer companies) that creates standards for the computer industry. For example, ANSI C is a version of the C language that has been approved by the ANSI committee. To a large degree, all ANSI C compilers, regardless of which company produces them, should behave similarly.
In addition to programming languages, ANSI sets standards for a wide range of technical areas, from electrical specifications to communications protocols. For example, FDDI, the main set of protocols for sending data over fiber optic cables, is an ANSI standard.
ASPI
Short for Advanced SCSI Programming Interface, an interface specification developed by Adaptec, Inc. for sending commands to a SCSI host adapter. ASPI has become a de facto standard that enables programmers to develop applications and drivers that work with all ASPI-compatible SCSI adapters. API
Abbreviation of application program interface, a set of routines, protocols, and tools for building software applications. A good API makes it easier to develop a program by providing all the building blocks. A programmer puts the blocks together.
Most operating environments, such as MS-Windows, provide an API so that programmers can write applications consistent with the operating environment. Although APIs are designed for programmers, they are ultimately good for users because they guarantee that all programs using a common API will have similar interfaces. This makes it easier for users to learn new programs.
If you have any further questions about acronyms please feel free to consult the online Webopedia (http://www.webopedia.com/). Thankyou for contacting me and I hope I can be of more help in the future.