Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

C++


  • Please log in to reply

#1
yuvchg

yuvchg

    New Member

  • Member
  • Pip
  • 5 posts
Hello,

I'm a beginner.

I'm trying to start of...Now I can't get it going...
I'm using some complier-

How can I test the programs I make? After I use the complier?

Thank You
  • 0

Advertisements


#2
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
what compiler program u using?

Microsoft C++, Borland C++

????

Stu Design
  • 0

#3
yuvchg

yuvchg

    New Member

  • Topic Starter
  • Member
  • Pip
  • 5 posts
Hi,

I'm using lcc-win32.
  • 0

#4
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
are u using coomnad line to compile project if so look here

http://cplus.about.c...l/aa012002a.htm

if not plz tell me he compiler program u using visual C++, Borlands C++???

thansk in advance

Stu design
  • 0

#5
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
hi check this out

hope it applies

http://www.geocities...l/lcctutor.html

thanks

Stu Design
  • 0

#6
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
did it help u out??
  • 0

#7
yuvchg

yuvchg

    New Member

  • Topic Starter
  • Member
  • Pip
  • 5 posts
I'm confuse...

I just want to start simple:

How can I start writing programs:

What do I need to start without spend money?

Thank You!
  • 0

#8
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
u have the program lcc-win32 right???
u already have the ability to make programs

Well, let's take command of Lcc-Win32. To start the IDE go to the "Start" button and look for "lcc-win32" in the "Programs" folder. You are ready to write your first program in Lcc-Win32. 


--------------------------------------------------------------------------------

The first program
As you surely know, since the times of the first C compiler (and may be earlier) it has been a tradition to write a first program called "Hello world". I wrote it for every compiler I had, and that is what we will do now.
The first step is to create the source code file. Go to the "File" option in the menu and select "New". In the dialog write: "Hello.c" and click "OK".

Now you should be facing a white window entitled "hello.c". Write in it the following text:

#include <stdio.h>

void main (void)
{
    printf ("Hello World from LCC-Win32!\n");
}

Let's save our little program. Go to the "File" and select the "Save".

We are ready to compile the program. Select "Compile hello.c" on the "Compiler" menu (it is the last option) to invoke the compiler. A new window will open in the lower part of the IDE. This is the message window. When the compilation process finishes, it should display "HELLO.exe build successfully". If there was any error it will be displayed here too.

If that happens, on the message window double click the line that displays the error message. This will highlight the "offending" source line. Check if you wrote exactly the same as I did. Remember that C is a "case sensitive" language. This means that for the compiler "printf" and "Printf" are very different things. Correct any mistyping and try again.

Now that you have compiled the program, press [Ctrl]+[F5] keys to run it. Nice, isn't it? 


  • 0

#9
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
or use this instead if u dont like lcc-2in32

its free

http://www.borland.c...d_cbuilder.html


Stu Design

Edited by stu_design, 13 May 2005 - 12:35 PM.

  • 0

#10
yuvchg

yuvchg

    New Member

  • Topic Starter
  • Member
  • Pip
  • 5 posts
Hi,

Thank You very much!
  • 0

#11
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
No prob

Stu Design
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP