Author Topic: Standard Dialect of C and C++  (Read 12613 times)

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #40 on: January 15, 2008, 06:24:55 PM »
Is my link managed or native and what types of quirks are you talking about?  I just finally understood what this topic was getting at so long ago.
I am just learning c++ so I want to be totally sure I am doing everything right.

Cobo

  • Autococker
  • Posts: 1362
Re: Standard Dialect of C and C++
« Reply #41 on: January 15, 2008, 06:30:05 PM »
The link you gave has documentation about native c++. If you want to start a native c++ project in visual c++, you need to go to Win32->Console application, and a wizzard will help you create one that is either a console application, or a window application. I suggest starting with console, since learning c++ with the windows api would be pretty harder.

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #42 on: January 15, 2008, 06:32:55 PM »
Console app is native c++ and compiles to the command line right?
What is an example of managed?
« Last Edit: January 15, 2008, 07:14:01 PM by Garrett »

Cobo

  • Autococker
  • Posts: 1362
Re: Standard Dialect of C and C++
« Reply #43 on: January 15, 2008, 09:30:53 PM »
Console app is native c++ and compiles to the command line right?
Yes.

What is an example of managed?
Code: [Select]
using namespace System;

int main(array<System::String ^> ^args)
{
Console::WriteLine("Type 'quit' to quit...");
while(Console::ReadLine() != "quit")
{
Console::WriteLine("Type 'quit' to quit...");
}

return 0;
}

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #44 on: January 15, 2008, 10:08:44 PM »
Yes.
Code: [Select]
using namespace System;

int main(array<System::String ^> ^args)
{
Console::WriteLine("Type 'quit' to quit...");
while(Console::ReadLine() != "quit")
{
Console::WriteLine("Type 'quit' to quit...");
}

return 0;
}
Can managed be compiled as a console program?
Is native used to make games and managed is used for other then that?  If I am wrong, what is managed used to do and what is the value of knowing it?  Cobo said managed is like C# so is it valuable to know C# and managed or just one of the two?

Eiii

  • Autococker
  • Posts: 4595
Re: Standard Dialect of C and C++
« Reply #45 on: January 15, 2008, 10:11:55 PM »
...yes. I'd suggest you look into how this all works a bit more before diving in.

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #46 on: January 15, 2008, 10:20:44 PM »
What would wrap up all these questions into one good search phrase for Google?

Eiii

  • Autococker
  • Posts: 4595
Re: Standard Dialect of C and C++
« Reply #47 on: January 15, 2008, 10:26:10 PM »
'Tutorial'.

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Standard Dialect of C and C++
« Reply #48 on: January 15, 2008, 11:13:10 PM »
Managed C++ = .NET + C++

Syntax is more like C++ than C#, and you can mix both unmanaged (regular C++) and managed (.NET) code.

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #49 on: January 16, 2008, 10:07:41 AM »
Thanks for all the help.  I am learning native c++ for now, thanks again

Deranged

  • 68 Carbine
  • Posts: 409
Re: Standard Dialect of C and C++
« Reply #50 on: February 14, 2008, 12:07:13 PM »
Should be noted that managed C++ is deprecated... The standard as of .Net 2.0 and higher is C++/CLI (Same idea, they just wiped away more of the blood left over from sledge-hammering Managed CLI into an unmanaged language :P)