You first have to have a C++ compiler. There are several free ones, including (but not limited to) Code::Blocks, and Visual Studio Express. Just google for them and you will find the download links. If you want Code::Blocks get the version with MinGW compiler. That is a popular compiler/IDE for beginners because it is easy to learn and portable between MS-Windows and *nix operating systems. If you are using *nix then Visual Studio is not available to you.
Just how you would do that would depend on the compiler, and possibly on the development environment you are using as well. Do you have a compiler chosen already, or are you looking to get one? If you have a compiler already, do you have an editor or Integrated Development Environment (IDE) in mind to use with it?
Can you tell us something of what you are trying to do? By that I mean, are you compiling a specific program, or are you learning to program and need help getting started? The more you can tell us about what you need, the more specific we can be.
Well, some of the headers included in this code are Windows ones, so you will need a Windows system and Windows compiler, such as (was suggested by the venerable Ancient Dragon) Visual Studio Express. One comment in line 15, you don't terminate or flush the line, and output to cout, just like stdout for C, won't flush to the display until either the output buffer is full, or there is some other event to cause it to flush. So, do this: cout << "Product is : " << p << flush;
OK, then. Well, as a beginner, I'd like to offer a quick lesson on the importance of suitable indentation:
using namespace std;
int p = 1, i = 1, j = 2, M;
float t = 1 / 2;
cout << "give M: ";
cin >> M;
for (i = 1; i <= M; i++)
p *= t;
i += j;
j += i;
t = i / j;
cout << "Produkt is: " << p ;
While this may look peculiar at first, you'll find that it is much more readable this way.
Now, then, did you pick one of the compilers I linked to, and were you able to try it? Or did you need more help?
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...