Comm.Dan
  • Comm.Dan
I have a question about creating a new line using the new line command in Xcode. The version of Xcode that I am using is 4.6.3. I am creating my current projects in OS X, under Application, the sub category Command Line Tool, and then I am doing it in the C programming language. I know that use use the printf command to execute the command. If is possible, I would like help on knowing how to do it. I will give a medal out to the person who can help me answer my question. Thanks if anyone can help, -Comm.Dan
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
e.mccormick
  • e.mccormick
A new line with printf? \n
Comm.Dan
  • Comm.Dan
Yes
nincompoop
  • nincompoop
is that the X11 that looks like a terminal? they've removed that under OSX Mountain Lion but new command line but you generally just install a new command line tools.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

e.mccormick
  • e.mccormick
The escaped n is the newline in C\C++ ``` printf("\n"); ```
Comm.Dan
  • Comm.Dan
I have X11 on my Mac, but I don't use it Here is what I meant to say printf("/n'); or printf("\n");
Comm.Dan
  • Comm.Dan
K Thx I will see if ti works
e.mccormick
  • e.mccormick
Here is a reference for you: http://www.cplusplus.com/reference/cstdio/printf/
Comm.Dan
  • Comm.Dan
It doesn't work. All it does is show /n in the debugging console.
e.mccormick
  • e.mccormick
Not /n \n
Comm.Dan
  • Comm.Dan
I am writing my projects in C
Comm.Dan
  • Comm.Dan
The second one worked. Thanks for the help @e.mccormick, -Comm.Dan
Comm.Dan
  • Comm.Dan
@nincompoop What is X11 used for?
nincompoop
  • nincompoop
then you should've just asked how to add a new command line in C geez
nincompoop
  • nincompoop
there are two ways to create a command line: \n and std:endl
Comm.Dan
  • Comm.Dan
K Thx for the help @nincompoop -Comm.Dan
nincompoop
  • nincompoop
they are the same but with differing parameter requirement.
Comm.Dan
  • Comm.Dan
K
e.mccormick
  • e.mccormick
He said with printf, not cout.
nincompoop
  • nincompoop
k then \n LOL
Comm.Dan
  • Comm.Dan
Do you program @nincompoop and @e.mccormick?
nincompoop
  • nincompoop
I did C, C# and C++ a while back.
Comm.Dan
  • Comm.Dan
What languages are your favorites?
e.mccormick
  • e.mccormick
Professionally? No. Can I? Yes, some things. Know a bit of C++, Python, VBas, and HTML, used Perl and BASIC years ago, and am learning Java at the moment because it is required for my degree.
Comm.Dan
  • Comm.Dan
I am learning C and then am going on to Objective C.
Comm.Dan
  • Comm.Dan
I chose to learn C because I know that it is the basis for almost all of the modern programming languages.
nincompoop
  • nincompoop
yeh did those too. but I am not that proficient in Python, since it became popular when I've already stopped programming, and I am not a fan of Java for old time's sake.
e.mccormick
  • e.mccormick
It seems that most programmers end up regularly using 3 to 5 languages and most know 5. Some of these may be closely related, like C and C++, or somewhat related like either of those and Java. Usually it comes down to 1 or 2 that they work in for production, a script language, and others they have found useful.
Comm.Dan
  • Comm.Dan
Ok. Thanks so much for the help again both of you @e.mccormick and @nincompoop. Have a great rest of your night, -Comm.Dan
e.mccormick
  • e.mccormick
C to learn programming is not a great choice. C because you plan on doing OS development, drivers, etc. is a good choice. Why? Because C is not really that related to modern programming techniques. It is a bit distant from the features that newer languages have. It is still a wonderful language for being more directly tied to the machine code, but most coders do not want or need that.
Comm.Dan
  • Comm.Dan
Ok.
e.mccormick
  • e.mccormick
The three long term use and starting languages most universities use are C++, Java, and Python. They all display more modern techniques than C. C++ is best if you know you will be using C later. Java is best if you plan on working towards Android development. Python is best if you want to learn a scripting language right off that happens to also be used for much more. And there are several other reasons for each one. I just list those singular reasons as examples.
Comm.Dan
  • Comm.Dan
Ok

Looking for something else?

Not the answer you are looking for? Search for more explanations.