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

Garrett

  • Autococker
  • Posts: 1372
Standard Dialect of C and C++
« on: October 27, 2007, 09:19:54 AM »
What is the standard dialect of C and C++?  What dialect does DP use?  Would anyone be able to show me a standard C and C++ Tutorial because most of the things I found on Google were just garbage.

cusoman

  • Autococker
  • Posts: 524
Re: Standard Dialect of C and C++
« Reply #1 on: October 27, 2007, 10:40:59 AM »
Hello Garrett, Google worked nice for me...
http://www.cplusplus.com/doc/tutorial/  ;)
lol oh well.
Also, by dialect i think you mean syntax, and the syntax of c++ is the syntax of c++, no other way to say it.
And DP was coded in C using the VC++ compiler.
-Cusoman

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #2 on: October 27, 2007, 11:52:04 AM »
The tutorial i had started reading was used with Unix.

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #3 on: October 28, 2007, 09:36:01 AM »
How much of a difference are there between a UNIX dialect and the standard dialect.

cusoman

  • Autococker
  • Posts: 524
Re: Standard Dialect of C and C++
« Reply #4 on: October 28, 2007, 01:32:45 PM »
ummm, unix is an operating system. ;D similar to linux.  so if you learned how code in c++ on a linux based system, the application would not run on windows. Thats why in the paintball 2 source there is the windows version to compile, and the linux version to compile. u can compile linux-based, or in this case unix-based applications on windows, just not run them.  they use different syntax.
-Cusoman

lekky

  • Autococker
  • Posts: 2449
Re: Standard Dialect of C and C++
« Reply #5 on: October 28, 2007, 02:14:20 PM »
java ftw

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #6 on: October 28, 2007, 02:24:14 PM »
Java doesn't have different syntax right?  It ports to different a different OS easily?  So if I would want to write any type of program in C / C++ for the windows OS, I should learn the standard version correct?

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Standard Dialect of C and C++
« Reply #7 on: October 28, 2007, 03:22:40 PM »
They do not use different syntax.  They use different libraries and some different means of doing things.  But, C++ is C++.  If they used different syntax, then they would not be the same language.

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #8 on: October 28, 2007, 03:47:47 PM »
The different libraries correspond with the OS then?

lekky

  • Autococker
  • Posts: 2449
Re: Standard Dialect of C and C++
« Reply #9 on: October 28, 2007, 04:12:04 PM »
Garrett, these dialects you speak of are with regards to the different C++ compilers. But they should all support the standard C++ functions so you don't even need to worry about this if you're just starting out. Forget about it until you get the basics down ok?

Or better yet learn Java and clear your mind of different OS support :D

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #10 on: October 28, 2007, 04:34:17 PM »
Haha.  Thanks for the help.  I'm learning Java in school in 3 months so I'll be taking your advise.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Standard Dialect of C and C++
« Reply #11 on: October 29, 2007, 07:43:05 PM »
Java is evil.  If you want to write applications that can easily compile and run on multiple operating systems, just use something like SDL.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Standard Dialect of C and C++
« Reply #12 on: October 29, 2007, 07:55:39 PM »

Deranged

  • 68 Carbine
  • Posts: 409
Re: Standard Dialect of C and C++
« Reply #13 on: November 03, 2007, 12:26:45 PM »
Just to polish this off, In general all major C++ compilers these days have at least 99% compliance with the ISO standard for C++. The major differences come when you go to use things like sockets(wsa_2 on windows, sockets on unix/linux/mac/bsd/etc), and even then they are very similar in use..

Forget about it until you get the basics down ok?

Good advice :)

Or better yet learn Java and clear your mind of different OS support :D

Bad advice :(

lekky

  • Autococker
  • Posts: 2449
Re: Standard Dialect of C and C++
« Reply #14 on: November 03, 2007, 02:13:07 PM »

y00tz

  • Autococker
  • Posts: 2742
Re: Standard Dialect of C and C++
« Reply #15 on: November 03, 2007, 03:06:38 PM »
Depends.

It seriously does.  If you've got several people working on a project and you need a quick and dirty tool, Java can be the best route to go.


lekky

  • Autococker
  • Posts: 2449
Re: Standard Dialect of C and C++
« Reply #16 on: November 03, 2007, 03:31:06 PM »
It seriously does.  If you've got several people working on a project and you need a quick and dirty tool, Java can be the best route to go.


:o Java is worth of a better example than that.

y00tz

  • Autococker
  • Posts: 2742
Re: Standard Dialect of C and C++
« Reply #17 on: November 03, 2007, 03:33:21 PM »
I didn't say Java was a dirty tool... I've never made a web service with Java, just .NET, I just feel that even C and/or C++ purists can use Java in a practical fashion, regardless of their capacity or need.  It seems like even when I agree with you these days you have to refute :P

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Standard Dialect of C and C++
« Reply #18 on: November 03, 2007, 05:22:06 PM »
It seriously does.  If you've got several people working on a project and you need a quick and dirty tool, Java can be the best route to go.



It depends on what kind of tool you need, because Java is not quick.

lekky

  • Autococker
  • Posts: 2449
Re: Standard Dialect of C and C++
« Reply #19 on: November 03, 2007, 05:24:12 PM »
It depends on what kind of tool you need, because Java is not quick.

We have already know that it depends.

Depends.

Java is not quick? Maurice Greene is not quick.