Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,391 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,141 people online right now. Registration is fast and FREE... Join Now!




creating space in C

 
Reply to this topicStart new topic

creating space in C

coolgame
22 Oct, 2006 - 10:28 PM
Post #1

New D.I.C Head
*

Joined: 22 Oct, 2006
Posts: 2


My Contributions
Hi,

I was wondering how can you create space in front of a sentence?

This is how my code looks like:

printf((SPACE)"Files : edit copy paste\n");

and somehow the compiler doesn't recognise this SPACE word.

Any suggestions would be appreciated.

This post has been edited by coolgame: 22 Oct, 2006 - 10:29 PM
User is offlineProfile CardPM
+Quote Post

NyeNye
RE: Creating Space In C
22 Oct, 2006 - 10:41 PM
Post #2

D.I.C Head
**

Joined: 24 Sep, 2006
Posts: 248


My Contributions
for your question you must add the folowing:
\t -for tab
\n -for new line

and search for other related matter on this sites

example:
printf("\t <statement>");

This post has been edited by NyeNye: 22 Oct, 2006 - 10:48 PM
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/5/08 02:30AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month