I have the main project.cpp I wrote every class and object in it set and get functions.
I made a simple 3 text boxes with 1 button.
its like a cin and cout but in windows form this is a basic missing code
#include <iostream>
#include <cstring>
using namespace std;
class system
{
private:
int x;
int y;
int z; //answer
public:
void setaddition(int a. int B)/>;
int getaddition();
void print();
}
void setaddition(int a, int B)/>
{
a=x;
b=y;
}
int getaddition();
{
cin>>x;
cin>>y;
z=x+y;
}
void print()
{
cout<<z; //print in textbox3
}
What I want is that textbox1 = a; textbox2 = b; basicly a & b are cin and button & textbox3 are cout.
I want the result in textbox3.
remember I want the button to go to the getaddition to understand what it wants. I also want the textbox to be the cin for the values.

New Topic/Question
Reply



MultiQuote




|