I want to learn c++ and downloaded a gcc compiler. but the compiler isnt functioning. when i click on the application window, a black screen just flashes with the text:"c++.exe:no input files" What could be wrong?what do I do about it?
hey thanks a lot!I managed to write a few programs using code::blocks but I still didnt get how to do it without using an IDE.:(
The simplest example to compile C++ code would be:
g++ helloworld.cpp -o helloworld.exe
Since you are taking the very first steps, perhaps you'd be better off sticking with the IDE, letting it handle the compiler/linker options and such. There are quite a few of them, see the GCC documentation (link above).
Also make sure the compiler is in the path of whatever cmd console you are using. Under windows (I assume, since you have C++.exe) type "PATH = %PATH%;C:\MinGW\bin" (change the values for your system) which tacks that directory on to the existing path
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...