Scroll to see replies
Spoiler
Spoiler
#include <iostream> //input and output convenience functions
int add(int a,int b) //!add two numbers, _a_ and _b_ together
{
int result=a+b; //store a plus b in result (which is an INT=integer=whole number)
return result; //give this result back to the caller (in this case result->val)
}
int main(void) //!main function
{
int val=add(3,4); //add integers 3 and 4 then put them in _val_
std::cout<<val<<std::endl; //print out val
return 0; //0 means there were 0 errors. This is A Good Thing
}
Last reply 3 days ago
Official Imperial College London Offer Holders Thread for 2024 entryLast reply 1 week ago
What are the chances I get the offer from Imperial for Computing?Last reply 2 weeks ago
Computer science application for Imperial College LondonLast reply 4 weeks ago
Official Imperial College 2024 Undergraduate Applicants ThreadLast reply 3 days ago
Official Imperial College London Offer Holders Thread for 2024 entryLast reply 1 week ago
What are the chances I get the offer from Imperial for Computing?Last reply 2 weeks ago
Computer science application for Imperial College LondonLast reply 4 weeks ago
Official Imperial College 2024 Undergraduate Applicants Thread