Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Calculator Programming subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. General Coding and Design => Calculator Programming
Author Message
JoeImp
Enlightened


Active Member


Joined: 24 May 2003
Posts: 747

Posted: 17 Aug 2003 02:58:10 pm    Post subject:

"C is most often used for applications and operating systems" - why. C++ and C can do pretty much the same things. Operating systems? C++,C, Visual Basic and other languages just use the tools that come with the operating system to work it. To do something with the w32 api with both C and C++ it would look exactly the same, except for some minor differences.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 17 Aug 2003 04:12:01 pm    Post subject:

JoeImp wrote:
"C is most often used for applications and operating systems" - why.

I don't know, I don't program operating systems, I just read in some book on win32 programming that C is generally used for normal programs (like notepad or paint) and operating systems and that C++ is most often used for games.

You can even make operating systems in qbasic.
Back to top
KD5YTX


Advanced Member


Joined: 03 Aug 2003
Posts: 306

Posted: 01 Sep 2003 01:47:51 pm    Post subject:

C is slightly lower level, and older as well. As a result, most of the older (and more professional) programmers still love C (as it is more intuitive than C++ to many folks, including myself). And since someone has to code the operating systems and it isn't gonna be the newbie coder in CompSci for the first time, the old champs are gonna write it in C (assuming they prefer it over C++). C is also prefered (normall) in most Linux circles, and thus most kernel coders use C for their projects. C++ is great and all, but if ya' don't need OOP, C is the way to fly.

Evil or Very Mad Evil or Very Mad Evil or Very Mad
Ninjas are born with an all-encompassing knowledge of FORTRAN.
Evil or Very Mad Evil or Very Mad Evil or Very Mad
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 05 Sep 2003 01:59:57 pm    Post subject:

Arcane Wizard wrote:
C++ is best for games because, among other things, the OOP structure fits so well with the way you think.


Really, structures and 1D arrays are about as complex as data should get (and as complex as you need) in a game.

KD5YTX wrote:
Assembly is fast, about as fast as it gets.


You could try using logic gates in hardware... Smile
Back to top
62 52 53 53
Formerly known as 62 52 53 53


Active Member


Joined: 30 May 2003
Posts: 607

Posted: 05 Sep 2003 04:22:35 pm    Post subject:

1D? we can't see lines. points have no mass or size, only location.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 06 Sep 2003 02:37:49 am    Post subject:

sigma wrote:
Really, structures and 1D arrays are about as complex as data should get (and as complex as you need) in a game.

Why?
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 06 Sep 2003 09:19:08 pm    Post subject:

Neutral Uhhhh... because they're faster??
Back to top
Matt


Member


Joined: 11 Jun 2003
Posts: 169

Posted: 06 Sep 2003 09:28:01 pm    Post subject:

Ok . . . .so tell me what I should learn and in what order!
Back to top
AlienCC
Creative Receptacle!


Know-It-All


Joined: 24 May 2003
Posts: 1927

Posted: 07 Sep 2003 12:36:57 am    Post subject:

You should ever learn what language interests you the most, or whatever language is best suited for a project you wish to complete. This may require a bit of research on your part but it will be well worth any effort you put forth.

--AlienCC
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 07 Sep 2003 02:48:54 am    Post subject:

sigma wrote:
Neutral Uhhhh... because they're faster??

So it's faster to convert the data from a 1d array to something you can use than directly using data from a 2d array?
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 07 Sep 2003 04:50:36 pm    Post subject:

I think we may have had a communication breakdown somewhere... Confused
Back to top
Matt


Member


Joined: 11 Jun 2003
Posts: 169

Posted: 12 Sep 2003 08:25:57 pm    Post subject:

Alright what language is meant for what:
another words what can the programing language do:
likek what can C++ do, C, Q-BASIC, VB, etc . . . .
Back to top
JoeImp
Enlightened


Active Member


Joined: 24 May 2003
Posts: 747

Posted: 13 Sep 2003 08:54:15 pm    Post subject:

Im not writing down what they all do, buy (or download Rolling Eyes ) a book and start reading. I'd recommend C++, but thats just me, the only web experience ive had is with java.

Imp
Back to top
Matt


Member


Joined: 11 Jun 2003
Posts: 169

Posted: 14 Sep 2003 08:21:10 pm    Post subject:

I already know what I'm doin' and when! Thanks
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 15 Sep 2003 07:54:34 pm    Post subject:

personally, i think C++ sux... but thats just me! some people way enjoy it, but i dont. i think it is too much work just for one little program.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 16 Sep 2003 07:12:55 am    Post subject:

What do you prefer over C++ then? Basic? :P

Also, how is C++ too much work for a little program?


Code:
#include <iostream.h>

void main() {
 cout << "text";
}
Back to top
JoeImp
Enlightened


Active Member


Joined: 24 May 2003
Posts: 747

Posted: 16 Sep 2003 02:12:53 pm    Post subject:

What is wrong with the length of C++ programs? They have the basic for loops, while loops, and everything. If you want to use the api, you'll use the same code as in any other language. Btw, are you mad at me? Everything I say you disagree with Neutral

Last edited by Guest on 16 Sep 2003 02:13:17 pm; edited 1 time in total
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 16 Sep 2003 03:30:21 pm    Post subject:

JoeImp wrote:
They have the basic for loops

Not really, they're just often used like BASIC for loops:


Code:
for( puts( "I\'m going to do some stuff" ); !kbhit(); puts( "processing..." ) )
    ;
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 16 Sep 2003 04:38:25 pm    Post subject:

i use Assembly (a *real [lol jk!]* programer's language!)! i also use TI-Basic, Turbo Pascal, And the best of all the game, Borland Delphi......... i also do a little bit of mIRC scripting Smile
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 17 Sep 2003 10:19:57 am    Post subject:

You program in assembly and complain about C++ requiring too much code to do something?? Confused

You should use binary and complain about how much work it is to use the qbasic compiler to compile basic sourcecode.

Also, if you write a decent game engine, C++ (or C for that matter) doesn't require much code at all, even to write fully functioning 2D Win32 (requires quite some code to set up even empty windows) games.

---


The wizards use their minds to reprogram the universe in binary.


a, that's lame.


Last edited by Guest on 17 Sep 2003 10:23:55 am; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3  Next
» View previous topic :: View next topic  
Page 2 of 3 » All times are GMT - 5 Hours

 

Advertisement