I'm using Netbeans 7.0.1 and last night i installed cygwin so i could see how netbeans behaves for c++ programming. I noticed it lacked many equivalent features it had for java. For example
with the following code in c++:
#include <cstdlib>
using namespace std;
int main(int argc, char** argv) {
const char arr[] = "1234567890";
vector<char> vec(sizeof arr);
memcpy(&vec[0], arr, sizeof arr);
printf("%s", &vec[0]);
}
Netbeans does not perform any auto includes, when it would auto import(or give a suggestion) when programming in java.
Another example:
with this java code:
public static void main(String[] args) {
char[] arr = {'a','b','c','d','e'};
char[] arr2 = new char[5];
for(int i = 0; i < arr.length; i++)
arr2[i] = arr[i];
}
Netbeans suggests me to use System.arraycopy, but with an equivalent code in C++, netbeans doesnt suggest using memcopy.
Is there anyway i can add this kind of hints and tips to netbeans when programming in c++ or netbeans-java simply has these features while netbeans-c++ doesn't?
If it lacks these features are there any IDE's which have them? Which ones?
(Sorry for my english)