Computer Science Canada
Programming C, C++, Java, PHP, Ruby, Turing, VB
Username:
Password:
Register
Wiki
Blog
Search
Turing
Chat Room
Members
void main() error
Index
->
Programming, C++
->
C++ Help
Goto page
Previous
1
,
2
Author
Message
OneOffDriveByPoster
Posted:
Fri Dec 19, 2008 10:30 am
Post subject: Re: RE:void main() error
wtd @ Fri Dec 19, 2008 2:18 am wrote:
use endl.
endl << endl is just bad. That should have one '\n' and one endl.
Sponsor
Sponsor
Dan
Posted:
Fri Dec 19, 2008 5:29 pm
Post subject: RE:void main() error
endl != '\n'
On some OSs the line break is just '\n' such as most *nix based ones. However on windows it is "\r\n" and on some very old mac OSs it is just '\r'.
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
romantic_programmer
Posted:
Fri Dec 19, 2008 5:55 pm
Post subject: RE:void main() error
DAN i just made a break through... I got my code to compile. Yay!
I Got rid of the DEV editor then just went back to basics...
now i am running the crimsion editor and the minGW compiler.
it took me a few attempts to compile the work but this is what i type and it works
c++ Main.cpp -o AzureGale.exe
Now i was wondering if someone could explain to me that the -o part means... i think it means output but i not sure
wtd
Posted:
Fri Dec 19, 2008 6:08 pm
Post subject: RE:void main() error
Essentially, yes. It provides an output file name.
When in doubt, "gcc --help" is your friend.
OneOffDriveByPoster
Posted:
Sat Dec 20, 2008 8:24 am
Post subject: Re: RE:void main() error
Dan @ Fri Dec 19, 2008 5:29 pm wrote:
endl != '\n'
On some OSs the line break is just '\n' such as most *nix based ones. However on windows it is "\r\n" and on some very old mac OSs it is just '\r'.
The '\n' when printed to a text-stream produces the correct end-of-line character sequence. The difference between using '\n' and endl is elsewhere.
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Index
->
Programming, C++
->
C++ Help
Page
2
of
2
[ 20 Posts ]
Goto page
Previous
1
,
2
Jump to:
Select a forum
CompSci.ca
------------
- Network News
- General Discussion
General Forums
-----------------
- Hello World
- Featured Poll
- Contests
Contest Forums
-----------------
- DWITE
- [FP] Contest 2006/2008
- [FP] 2005/2006 Archive
- [FP] 2004/2005 Archive
- Off Topic
Lounges
---------
- User Lounge
- VIP Lounge
Programming
--------------
- General Programming
General Programming Forums
--------------------------------
- Functional Programming
- Logical Programming
- C
C
--
- C Help
- C Tutorials
- C Submissions
- C++
C++
----
- C++ Help
- C++ Tutorials
- C++ Submissions
- Java
Java
-----
- Java Help
- Java Tutorials
- Java Submissions
- Ruby
Ruby
-----
- Ruby Help
- Ruby Tutorials
- Ruby Submissions
- Turing
Turing
--------
- Turing Help
- Turing Tutorials
- Turing Submissions
- PHP
PHP
----
- PHP Help
- PHP Tutorials
- PHP Submissions
- Python
Python
--------
- Python Help
- Python Tutorials
- Python Submissions
- Visual Basic and Other Basics
VB
---
- Visual Basic Help
- Visual Basic Tutorials
- Visual Basic Submissions
Education
-----------
- Student Life
Graphics and Design
-----------------------
- Web Design
Web Design Forums
---------------------
- (X)HTML Help
- (X)HTML Tutorials
- Flash MX Help
- Flash MX Tutorials
- Graphics
Graphics Forums
------------------
- Photoshop Tutorials
- The Showroom
- 2D Graphics
- 3D Graphics
Teams
------
- dTeam Public
Style:
Appalachia
blueSilver
eMJay
subAppalachia
subBlue
subCanvas
subEmjay
subGrey
subSilver
subVereor
Search:
You can syndicate this boards posts using the file
backend.php
or view the
topic map using sitemap.php.
Terms of Use
|
Privacy Policy