- 2

I need help with the source code to add 2 integers using oop in C++ language, im still a beginner.

Oop C++, having a slight problem getting it done

23rd Apr 2020, 10:51 PM
RealOne
RealOne - avatar
4 Respostas
+ 3
Your thread topic is C++ relevant, you could've put appropriate and relevant words in tags. Not your nicknsme. https://www.sololearn.com/Discuss/333866/?ref=app
23rd Apr 2020, 10:58 PM
Ipang
+ 2
If you are a beginner learn the language or oop in c++ and try out yourself ,we don't do others work ,ty
23rd Apr 2020, 11:15 PM
Abhay
Abhay - avatar
+ 1
Check this: #include<iostream> using namespace std; int main() { int a=2,b=3; int c=a+b; cout<<c; } Output: 5 int a=2,b=3; this makes 2 variables with 2,3 as their values and int c=a+b; adds them up.
23rd Apr 2020, 11:01 PM
Prabhat Ranjan
Prabhat Ranjan - avatar
0
How about in object oriented programming, whats the solution
23rd Apr 2020, 11:04 PM
RealOne
RealOne - avatar