Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 01-19-2006, 04:27 AM   #1
In Runtime
Logan's Avatar
Join Date: Dec 2005
Posts: 265
Send a message via AIM to Logan Send a message via MSN to Logan
Default C/c++

Everything i've seen refers to C/C++. I recognize that C and C++ are separate programming languages but why are they refered to as the same thing?? In a program can you interchange either language such as using a printf() in a C++ source file, or anything like that? Also, recently i've been reading a book on game programming that says it uses mainly C but a little C++ where DirectX requires it. How does that work? I'm also having trouble deciding what else i need to learn. It goes straight from beginning to advanced and, due to the fact that i'm learning mainly from books, i read the beginning book and learned what there was to learn but i can't understand a thing in the advanced books. Any help or advice offered would be muh appreciated.

So it Goes.
Logan is offline   Reply With Quote
Old 01-20-2006, 03:54 AM   #2
Daemon Poster
RewtGuy's Avatar
Join Date: Dec 2004
Posts: 595
Send a message via AIM to RewtGuy
Default Re: C/c++

c and c++ aren't really seperate languages. It's like an expansion pack of a game. You can use c code in c++ but not vice versa. You can wrap c code in c++ too. You'd have to include the right headers / libraries to use printf(); but yeah, you could use it in c++.
Windows: A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.
RewtGuy is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 06:58 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0