English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have the book "c for dummies" but since you have to buy a copy of visual c i was just wondering if visual c++ beta would work. I realy want to begin to learn to program I cant figure out if you can use the codes from the c lanaguage.

2006-08-29 10:38:12 · 4 answers · asked by zxgamerzx 1 in Computers & Internet Programming & Design

4 answers

Yes, this should work, as other posters pointed out. If you always compile your own code from source, it should work seamlessly.

However, there is one obscure "gotcha" that I've run into. If you use a library or .o file that was compiled by a plain C compiler and then compile your code with C++, you can have issues with "name mangling" where the C++ compiler gives different names to functions than the C compiler does. To solve this, you use the "extern C" keyword, telling the C++ compiler to treat the code as a C compiler would. But this is a fairly obscure problem that you shouldn't run into until after you've become pretty adventurous with your programming.

2006-08-29 12:52:09 · answer #1 · answered by arbeit 4 · 0 0

considering you're utilising JET, i'm no longer completely specific of this answer. JET helps ameliorations in sq. which at the instant are not usual. JET can assist you extra usual sq. if utilized in maximum situations. To me your replace fact isn't splendid. Your fact follows the format of an INSERT fact particularly an replace fact. i might have predicted to work out (no longer accounting for all of the mandatory string concatenation steps that are required and which you have lined on your posting): replace emp_info SET emp_ln = ln, emp_fn = fn, emp_mn = mn ... etc. the only different subject I see is which you do no longer explicitly set the inquirecommand.CommandType = "textual content textile"; i think it is the default, yet I certainly have a tendency to incorporate the valuables besides.

2016-11-06 01:24:56 · answer #2 · answered by rangnow 4 · 0 0

All c++ compilers are able to compile c programs according the the ANSI standard.

2006-08-29 12:26:17 · answer #3 · answered by Sean J 2 · 0 0

yes, c++ is back compatable such that you can use C code in C++ even if you can't use C++ in a C code compiler.

2006-08-29 10:41:38 · answer #4 · answered by promethius9594 6 · 0 0

fedest.com, questions and answers