@greaper when i run it through an IDE.
@vart when i compile it doesn't show any error :/.
Type: Posts; User: recklezz
@greaper when i run it through an IDE.
@vart when i compile it doesn't show any error :/.
i named the program 7-pass.cpp.
Modify your password program from before to put all of the password checking logic into a
separate function, apart from the rest of the program.
...
#include<iostream>
using namespace std;
int main()
{
int num1,next_numbers,total;
cout<<"enter the number:\n";
cin>> num1;
cout<<"\nenter next number:\n";
cin>>...
i added a if statement.how to better indent the code??
i don't get it :(
#include<iostream>
using namespace std;
int main()
{
int num1,next_numbers,total;
cout<<"enter the number:\n";
cin>>num1;
cout<<"\nenter next number:\n";
cin>>next_numbers;...
is this good?..i replaced the x,y and z. :)
is this ok?
#include<iostream>
using namespace std;
int main()
{
int num1,next_numbers,total;
cout<<"enter the number:\n";
cin>>num1;
thanks :).let me try it :)
Write a program that computes a running sum of inputs from the user terminating when the user gives an input value of 0.
#include<iostream>
using namespace std;
int main()
{
int x,y,z;
do
may be i should have included exit in one of those options since infinite loop is not good :/..this would have been a better program if exit was one of thos options.
thanks :D
this is a little complicated for me now :/..i'll understand this better if i go further in c++ ;)
i haven't studied array yet :(
1.Thanks for the tip :).
2.I'm not sure in the question it says "if the input is not one of the options,reprint the list." i couldn't get a single reprint of the menu so the infinite loop.
3.If i...
Write a menu program that lets the user select from a list of options, and if the input is not one
of the options,reprint the list.
Is this program correct?..i can execute this program but can this...