473,405 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

two questions

1)
Is there any free software that can pretty up my C code.

2)
I remember years ago something different happens if the extension on the
code file is .c rather than .cpp.
Is that still the case and if so what is the difference.
Thanks in advance
Jan 6 '07 #1
6 1039
I remember years ago something different happens if the extension on the code file
is .c rather than .cpp.
Is that still the case and if so what is the difference.
Today is still valid...

..c files are compiled like C source files (unless you use /TP compiler flag)
..cpp are compiled like C++ source files (unless you use /TC compiler flag)
--
Cholo Lennon
Bs.As.
ARG
Jan 6 '07 #2
Isn't C a subset of C++??

Thanks a lot.

"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:Oj**************@TK2MSFTNGP02.phx.gbl...
>I remember years ago something different happens if the extension on the
code file is .c rather than .cpp.
Is that still the case and if so what is the difference.

Today is still valid...

.c files are compiled like C source files (unless you use /TP compiler
flag)
.cpp are compiled like C++ source files (unless you use /TC compiler flag)
--
Cholo Lennon
Bs.As.
ARG


Jan 7 '07 #3
Isn't C a subset of C++??

Not exactly. There are some incompatibilities between languages. With the last C
standard (C99) there are even more...

Take a look this
http://www.research.att.com/~bs/bs_faq.html#C-is-subset

--
Cholo Lennon
Bs.As.
ARG

" Frank" <fr***@a-znet.comescribió en el mensaje
news:u5**************@TK2MSFTNGP03.phx.gbl...
Isn't C a subset of C++??

Thanks a lot.

"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:Oj**************@TK2MSFTNGP02.phx.gbl...
>>I remember years ago something different happens if the extension on the code
file is .c rather than .cpp.
Is that still the case and if so what is the difference.

Today is still valid...

.c files are compiled like C source files (unless you use /TP compiler flag)
.cpp are compiled like C++ source files (unless you use /TC compiler flag)
--
Cholo Lennon
Bs.As.
ARG



Jan 7 '07 #4
Very interesting site. I've wondered if he was still active.
Thanks

"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP06.phx.gbl...
>Isn't C a subset of C++??

Not exactly. There are some incompatibilities between languages. With the
last C standard (C99) there are even more...

Take a look this
http://www.research.att.com/~bs/bs_faq.html#C-is-subset

--
Cholo Lennon
Bs.As.
ARG

" Frank" <fr***@a-znet.comescribió en el mensaje
news:u5**************@TK2MSFTNGP03.phx.gbl...
>Isn't C a subset of C++??

Thanks a lot.

"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:Oj**************@TK2MSFTNGP02.phx.gbl...
>>>I remember years ago something different happens if the extension on
the code file is .c rather than .cpp.
Is that still the case and if so what is the difference.

Today is still valid...

.c files are compiled like C source files (unless you use /TP compiler
flag)
.cpp are compiled like C++ source files (unless you use /TC compiler
flag)
--
Cholo Lennon
Bs.As.
ARG




Jan 7 '07 #5

" Frank" <fr***@a-znet.comwrote in message
news:O1**************@TK2MSFTNGP03.phx.gbl...
Very interesting site. I've wondered if he was still active.
Not only is he still active, he's working on the next set of upgrades to the
C++ standard, called C++0x, which will include most of the new things in C99
into the C++ standard. Most compilers already have the extra C99 stuff
already, as vendor extensions to C++.

The major remaining difference between C and C++, that won't go away, is
that C provides a lot of defaults (default int return value, default
prototype) whereas C++ forces the programmer to specify the correct
information.
>

Thanks

"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP06.phx.gbl...
>>Isn't C a subset of C++??

Not exactly. There are some incompatibilities between languages. With the
last C standard (C99) there are even more...

Take a look this
http://www.research.att.com/~bs/bs_faq.html#C-is-subset

--
Cholo Lennon
Bs.As.
ARG

" Frank" <fr***@a-znet.comescribió en el mensaje
news:u5**************@TK2MSFTNGP03.phx.gbl...
>>Isn't C a subset of C++??

Thanks a lot.

"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:Oj**************@TK2MSFTNGP02.phx.gbl...
I remember years ago something different happens if the extension on
the code file is .c rather than .cpp.
Is that still the case and if so what is the difference.

Today is still valid...

.c files are compiled like C source files (unless you use /TP compiler
flag)
.cpp are compiled like C++ source files (unless you use /TC compiler
flag)
--
Cholo Lennon
Bs.As.
ARG




Jan 8 '07 #6
Thanks

"Ben Voigt" <rb*@nospam.nospamwrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
>
" Frank" <fr***@a-znet.comwrote in message
news:O1**************@TK2MSFTNGP03.phx.gbl...
>Very interesting site. I've wondered if he was still active.

Not only is he still active, he's working on the next set of upgrades to
the C++ standard, called C++0x, which will include most of the new things
in C99 into the C++ standard. Most compilers already have the extra C99
stuff already, as vendor extensions to C++.

The major remaining difference between C and C++, that won't go away, is
that C provides a lot of defaults (default int return value, default
prototype) whereas C++ forces the programmer to specify the correct
information.
>>

Thanks

"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP06.phx.gbl. ..
>>>Isn't C a subset of C++??

Not exactly. There are some incompatibilities between languages. With
the last C standard (C99) there are even more...

Take a look this
http://www.research.att.com/~bs/bs_faq.html#C-is-subset

--
Cholo Lennon
Bs.As.
ARG

" Frank" <fr***@a-znet.comescribió en el mensaje
news:u5**************@TK2MSFTNGP03.phx.gbl...
Isn't C a subset of C++??

Thanks a lot.

"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:Oj**************@TK2MSFTNGP02.phx.gbl...
>I remember years ago something different happens if the extension on
>the code file is .c rather than .cpp.
>Is that still the case and if so what is the difference.
>
Today is still valid...
>
.c files are compiled like C source files (unless you use /TP compiler
flag)
.cpp are compiled like C++ source files (unless you use /TC compiler
flag)
>
>
--
Cholo Lennon
Bs.As.
ARG
>
>




Jan 8 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
4
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for...
8
by: Krypto | last post by:
Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
1
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.