I just put in the following code that i found to test out the kate compiler:
#include <iostream>
int main()
{
int num1; //create a variable "int" to hold a number
int num2; //and also create another variable to hold another interfer
std::cout << "type a number: "; //no endl....
std::cin >> num1; //puts inpot to num1
std::cout << "type another number; ";
std::cin >> num2;
int result;
result = num1 + num2; //adds the two numbers
std::cout << result; //outputs results to screen
return 0;
}
Then i clicked on Tools - external tools - run script
Nothing happens except a quick flash.
When it comes to the code itself i actually got the code from the following location:
http://www.youtube.c...h?v=Yob_vRFaqs0
So i know the code works...
Can someone please help me get my compiler working please?
attaching some screen shots as well
thanks in advance
yahoo im - rockstyle44
i am in the #c++ channel as well as frozzenfire

Ask A New Question
Reply





MultiQuote





|