PDA

View Full Version : C Programing Question


iggybaseball
04-01-02, 08:26 PM
Hi I am starting to learn C programming. I have some question I would like to ask as I go along and I will appreciate any help that i get.

My first ? is in the code below:

#include<stdio.h>
void main()
{
printf( "Hello, C Programmers!\n" );
}




What is the \n for? is it to tell the program it is the end of the quote? Thanx

TheFlutePlayer
04-01-02, 08:49 PM
I'm pretty sure \n is to move to a new line.

iggybaseball
04-01-02, 09:08 PM
oh thanx

iggybaseball
04-02-02, 05:32 PM
I just got the Borland compiler but i am havin probs with it. whenever i type " bcc32 hello.c" it says it cant find that file . what am i doing wrong?

iggybaseball
04-03-02, 09:55 AM
never mind i just fised the problem

iggybaseball
04-03-02, 02:59 PM
today i picked up a sams teach urself c in 21 hours book. its great, the same kind of book i used to get into vb which i learned earlier. its far better than any online tutorials i have come across so far.

drunkmonkey
04-03-02, 09:08 PM
hey, I'm learning c++ now also,

Isn't thisthe same thing as the book u bought? http://web.mit.edu/choge/Public/C++/index.htm

yeah, \n is for new line

iggybaseball
04-04-02, 08:04 PM
Originally posted by drunkmonkey
hey, I'm learning c++ now also,

Isn't thisthe same thing as the book u bought? http://web.mit.edu/choge/Public/C++/index.htm

yeah, \n is for new line

yes it would be if i was takin c++. but im learnin c. honest mistake though:)

drunkmonkey
04-04-02, 09:11 PM
Originally posted by iggybaseball


yes it would be if i was takin c++. but im learnin c. honest mistake though:)

whoops sorry, When i had posted i had been lookin at a C++ tutorial for 3 hours, my brain was in a forever loop saying cout<<"C++!"