Hi all,
First of all, my problem in Console screen in C++ it is disappear quickly. I use Qt creater 2 to do my code.
Through my search in web I found the solution for it, put the following inside code
I trid this code and it is work correctly and I could solve Console screen
But in this code the problem still find
Any interpret for this ??!!
First of all, my problem in Console screen in C++ it is disappear quickly. I use Qt creater 2 to do my code.
Through my search in web I found the solution for it, put the following inside code
Rich (BB code):
#include<cstdio>
getchar();
Rich (BB code):
#include<iostream>
#include<cstdio>
usingnamespacestd;
intmain(){//prints"m=44andn=77":intm,n;
m=44;//assignsthevalue44tothevariablem
cout<<"m="<<m;n=m+33;
//assignsthevalue77tothevariablencout<<"andn="<<n<<endl;
getchar();
}
Rich (BB code):
#include<iostream>
#include<cstdio>
usingnamespacestd;
intmain(){inta,b,c;
cout<<"a=";cin>>a;
cout<<"b=";cin>>b;
c=a+b;cout<<"a+b="<<c;
getchar();}