My first C++ program

G

Guest

I downloaded this e-book to learn about the c++ programing and followed the
instructions to make my first c++ program; and cannot get it to work; I even
downloaded CYGWIN compiler. Here are the steps that was given: open text
editor, I used notepad and typed what said to be done and when I open the
command prompt and typed the file name that I saved (first.cpp) I get a
answer that this file do no exist; what am I doing wrong, I need a step by
step help. thanks
 
G

Guest

First point is that Notepad has a nasty habit of adding .txt to the filename
even when you specify an extension. This may be why you can't find the file.

Have a look for the SCiTE programmer's editor. This is vastly superior to
Notepad, and has syntax-checking templates for most languages. Freeware.

Maybe also have a think about whether C++ is the best way to start. I'm
assuming you have no previous coding experience, in which case you're really
embarking on a very steep learning-curve.. AutoIt, PERL, Javascript, php,
Python, C, Pascal, VBScript... any would be easier to get started with, and
with one of these you'd start producing useful results much sooner. If you
want to learn the basics of C++ syntax then Javascript is a good starting
point; it's much simpler to use but follows the same syntactical rules.

Cygwin isn't a compiler, BTW. it's a Linux emulator. You may possibly need
this to use the Linux-based GCC complier.
 
G

Guest

yeh, i remember my first program too. I
found visual basic and delphi to be best for
me and what i "use" to need.

but this is wide area and you are becoming a
"developer" Hence the keyword is "developer"

as a suggestion, you can
download freewares and trialwares from
various resources, like microsoft.com, msdn
and sourceforge.com

http://msdn.microsoft.com/vstudio/express/
http://msdn.microsoft.com/downloads/
http://msdn.microsoft.com/flash/
http://www.microsoft.com/technet/support/default.mspx

what i have seen recently are
group projects with open souce softwares,
like paint.net and others. These
can provide you with some good practice,
examples and related softwares for your
new endeavor and friendly correspondances
with others working on the same project....

but there are thousands more....


a word of advice...
sometimes you can make a program that
could crash your own system. So be sure
to keep your o.s. and important files safe
and backup'd

ian gave you a great tip...
keep us in mind if you get lost...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top