Should I go for C or C++

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
codemastersnake
Member
Member
Posts: 148
Joined: Sun Nov 07, 2004 12:00 am
Contact:

Should I go for C or C++

Post by codemastersnake »

Hello everybody!

I am presently writing an OS... It's written in C++ with classes... I have faced many problems with C++ and wanted to know whether I should stick to C++ or change to C++....

plz help....
User avatar
carbonBased
Member
Member
Posts: 382
Joined: Sat Nov 20, 2004 12:00 am
Location: Wellesley, Ontario, Canada
Contact:

Re: Should I go for C or C++

Post by carbonBased »

There have been a lot of opinions on this expressed on this board over the past month or so. I'd suggest looking throug the archives to get some good ideas of the pros and cons of each language.

I'd also suggest that perhaps you could outline some of the problems you've run into with C++? Several developers here have considered C++ and would probably be interested. As well, many have written full C++ kernels and may be able to help.

Cheers,
Jeff
Hery
Member
Member
Posts: 65
Joined: Sat Dec 04, 2004 12:00 am

Re: Should I go for C or C++

Post by Hery »

I think that writting OS in C++ isn't a good idea! Exception: shell. But lot of other things is easier to write in asm.
User avatar
codemastersnake
Member
Member
Posts: 148
Joined: Sun Nov 07, 2004 12:00 am
Contact:

Re: Should I go for C or C++

Post by codemastersnake »

I get problem when I try to include some func.. for example I had developed stdIO.h with no bios functions and it is running fine alone... but when I try to include some other module like time.h then I get nothing at the out put only cursor pos moves... why is that happening.... can anybody tell me
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: Should I go for C or C++

Post by Legend »

Some addresses that get miscalcuated then? Some overwriting of memory in your time.h stuff? Sounds more like a generic then a c++ specific problem.
*post*
Post Reply