LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-01-2003, 05:51 PM   #1
Cruelpeace
LQ Newbie
 
Registered: Jan 2003
Location: Orlando, Florida
Distribution: MacOS X and Slackware
Posts: 13

Rep: Reputation: 0
Mixing C and C++


Okay, I am a new programmer who hasn't really done anything great. I have about the same amount of knowledge in both C and C++. Currently, I am thinking about writing a small little text-based game, just f*cking around. Do you guys consider it harmful to mix C and C++? I was thinking of just using what I know in C++ to create most of the data in classes and then use Curses and C for most of my functionality. What kind of damage will occur to me as a programmer from this and will the program suffer at all? Thank you.
 
Old 02-01-2003, 10:41 PM   #2
moeminhtun
Member
 
Registered: Dec 2002
Location: Singapore
Distribution: Fedora Core 6
Posts: 647

Rep: Reputation: 30
Since C++ is backword compatible with C, when you mixed C and C++, your program would be considered as C++ program. I think there would be no particular damage but the result will be a poorly designed C++ program.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mixing repositories hdo781 Debian 1 03-22-2005 09:51 AM
Mixing Suse 9.1 and Xp Charleyau Linux - Networking 2 01-16-2005 09:38 PM
mixing problems :-( chatterbug89 Linux - Software 3 10-11-2004 08:43 PM
Mixing videos ETeria Linux - Software 2 11-26-2003 08:00 PM
autogen: mixing C and C++ microtim Linux - Software 0 10-25-2003 10:20 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration