all you need to declare in this program is <iostream> and using namespace std;
and to stop the program from exiting before your ready use cin.ignore(2);
like this
cin.ignore(2);
return...
Type: Posts; User: Chaosreborn
all you need to declare in this program is <iostream> and using namespace std;
and to stop the program from exiting before your ready use cin.ignore(2);
like this
cin.ignore(2);
return...
i would probably use switch/case. its pretty easy to understand
#include <iostream>
using namespace std;
int main()
{
double a,b,value;
wow thx so much it just clicked, your awsome!
I am dieing over this project. and whatever i put in doesnt seem to work please help!
//r = rows,s = stars, spl = stars per line
#include <iostream>
using namespace std;
int main()
where does it say only enter 5 numbers? and if your doing a loop i would do it like this
int input,least, greastest;
do
{
cout<<"Please enter a number.";
cin>>input;
you should not declare variables in a list like that. like this is cleaner: int sum,product,remainder,etc;
and i would try switching int to double
ok im sorry but the variables are: r = rows, s = stars, and spl = stars per line.
i keep trying to add 2 but then it just continues on.
Im studying loops and i have
#include <iostream>
using namespace std;
int main()
{
int r,s,spl,space;
u need to put cin.ignore(2); and then you will be able to see the results before the complier shuts it down. put it before the return 0; and it should work. and if you know you wont be using decimals...
I have this program i need help with. i have to make a program that will display this.
000000*
00000***
0000*****
000*******
00*********
0***********
*************
I have this project from school that has me program a code to tell the user if a given number is lucky or not. The number is lucky if it is a factor of 7, 11, or ends with a 7. I can do the first two...