Notices

Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

C Programing Question

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 04-01-02, 08:26 PM Thread Starter   #1
iggybaseball
Member

 
iggybaseball's Avatar 

Join Date: Aug 2001
Location: Chicago, Illinois

 
C Programing Question


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
iggybaseball is offline   QUOTE Thanks
Old 04-01-02, 08:49 PM   #2
TheFlutePlayer
Registered



Join Date: Mar 2002
Location: Chicago, IL

 
I'm pretty sure \n is to move to a new line.
TheFlutePlayer is offline   QUOTE Thanks
Old 04-01-02, 09:08 PM Thread Starter   #3
iggybaseball
Member

 
iggybaseball's Avatar 

Join Date: Aug 2001
Location: Chicago, Illinois

 
oh thanx
iggybaseball is offline   QUOTE Thanks
Old 04-02-02, 05:32 PM Thread Starter   #4
iggybaseball
Member

 
iggybaseball's Avatar 

Join Date: Aug 2001
Location: Chicago, Illinois

 
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 is offline   QUOTE Thanks
Old 04-03-02, 09:55 AM Thread Starter   #5
iggybaseball
Member

 
iggybaseball's Avatar 

Join Date: Aug 2001
Location: Chicago, Illinois

 
never mind i just fised the problem
iggybaseball is offline   QUOTE Thanks
Old 04-03-02, 02:59 PM Thread Starter   #6
iggybaseball
Member

 
iggybaseball's Avatar 

Join Date: Aug 2001
Location: Chicago, Illinois

 
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.
iggybaseball is offline   QUOTE Thanks
Old 04-03-02, 09:08 PM   #7
drunkmonkey
Member

 
drunkmonkey's Avatar 

Join Date: Nov 2001
Location: Blacksburg, Virginia, USA

 
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
drunkmonkey is offline   QUOTE Thanks
Old 04-04-02, 08:04 PM Thread Starter   #8
iggybaseball
Member

 
iggybaseball's Avatar 

Join Date: Aug 2001
Location: Chicago, Illinois

 
Quote:
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
iggybaseball is offline   QUOTE Thanks
Old 04-04-02, 09:11 PM   #9
drunkmonkey
Member

 
drunkmonkey's Avatar 

Join Date: Nov 2001
Location: Blacksburg, Virginia, USA

 
Quote:
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++!"
drunkmonkey is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 04:21 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?