It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I need to create a Auto code generator that generates Fortran codes and implemented on either C or C++.
Can anyone give me some references or a good place to start this... Even any suggestion or ideas too....
This is called a compiler. Anything that translates from one language to another is a compiler. I suggest you read up on compilers.
Good starting places:
#include <string.h>
(for C)
#include <sstream>
(for C++)
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am trying to figure out the complete code as explained at:
http://www.drdobbs.com/windows/microsofts-c-amp-unveiled/231600761?pgno=2
I am trying to find out how to generate the complete code examples with of Simple C++ AMP Version? How do I define the grid object? Which header do I need to use direct3d? It seems my Visual Studio 2012 flags these as undefined.
Thanks
I've never seen restrict(direct3d) before. I suspect it's supposed to be restrict(amp).
You'll also need to #include <amp.h>
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I'm sorry, I'm lost.
I program microchips, and I primarily work in assembly, but I have much more experience in C and C++. I know that there is a way to embed C++ into the microchip, I just need to know how. If I need to make a clone of C++, I am willing, if someone will tell me how.
Thanks in advance.
1) Write program in C or C++.
2) Compile program.
3) (Optional) Test program on an emulator.
4) Burn program into desired microchip.
If you give us specific chips, we can give you more details of how each of the steps works.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
What features were added to c that were originally in c++?
When where they added and for what reason(what where the pro/con arguments)?
How do they differ in c as compared to c++?
Did the features originate in c++ or in another language?
examples(feel free to expand on):const,Function prototypes, implicit exit(0);
I don't think it would be useful to repeat the content of Bjarne's paper
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
As you know, C++ allows multiple inheritance. But, would it be a good programming approach to use multiple inheritance or it should be avoided?
Thanks.
In general, it's not needed and can make your code more complex.
But there are cases where it's useful. As long as it's useful and isn't causing your code to become unmanageable, I see no reason to avoid it.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
Before I knew that C was faster than C++ I was able to write some simple code where C executed faster than C++'s speed.
So my question is: please explain then reason behind this.
If this has already been explained elsewhere on this site or the internet, please share a link.
The reason behind this is your poor test.
C is not faster than C++ because C++
is a superset of C.
Here it is!