convert c to c++

happytechie said:
c++ is a superset of c

your c files are already valid c++

ht

Not quite. He could have variables called 'class', for example, which is fine in c but a reserved word in c++.

There are also some subtleties in code where code compiled in c and c++ would exhibit different runtime behaviours.....
 
c0w.net said:
Is anyone interested in making a few quid by converting a couple of c souce files to c++

1x source
1x header

c0w
Windows and most other file-systems have a built in conversion utility. Simply select your .c source file and change the extension to .cpp. Job done, with the reservations Visage has pointed out of course ;)
 
phykell said:
Windows and most other file-systems have a built in conversion utility. Simply select your .c source file and change the extension to .cpp. Job done, with the reservations Visage has pointed out of course ;)

We all missed out on some easy money there, didnt we....
 
Back
Top Bottom