Welcome to the Linux Foundation Forum!
C++
C++? what kind of C++ language linux developer used? i am totally comfused with the Visual, Turbo and Blah blah blah C++.. can you help me Linux brothers.. please id like to learn C++ but the Linux developers C++ or in other words Hacker programming language.. hehe! thanks in advanced and sorry for my english grammar.. :laugh:
0
Comments
There is also Libraries for C++ which can private. Like Windows.h for programs written on windows computers. But they usually have generic or easily understood names.
My Code:
// i/o example
#include <iostream>
using namespace std;
int main ()
{
int i;
cout << "Please enter an integer value: ";
cin >> i;
cout << "The value you entered is " << i;
cout << " and its double is " << i*2 << ".\n";
return 0;
}
after that... F9..
theres no result or output that generate... can you help me with this.. BTW, code block is great IDE.. nice suggestion.. ths!
Oh, you need to make sure that the int is assigned a number before you assign it a number from cin. Like int "i = 0;" This prevents problems with random numbers from another program being in the memory.