how much money ?
Type: Posts; User: swansea
how much money ?
i want to create a webpage like youtube.com, were people can upload videos?
please give me list a of what software,knowledge,anything i need to create and run a site similar to youtube
i c++...
#include<iostream>
#include<string>
using namespace std;
int main()
{
double money;
string food;
int quantity;
ok but how do i write it?
and display the price and make sure the user enters 5 digits and if not display invalid id and makes sure it knows 14 and 15 are the begginers
#include<iostream>
#include<string>
using namespace std;
int main()
{
string productID;
char reply = 'y';
oh yeah duh
thanks
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
short number = 0;
short evenNumber = 0;
now im getting all zero's...
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
short number = 0;
short evenNumber = 0;
this is what i get in the outfile txt
13
9
12
clearly not the even numbers
ok and how do i check for even numbers using what code and how do i code to put it into the outfile...
i have to get this number list
40
13
25
58
55
12
20
while (infile.eof()== false)
{
infile >> number;
infile >> evenNumber;
if (num%2 == 0)
outfile << evenNum << endl;
}
anyone???
how do create an outfile that will contain only the even numbers from the infile txt
heres the infile numbers
40
13
25
58
55
12
i need to write code for a program that
1. allows user to enter a code
2. will display the amount and quantity
3. the user can enter as many code ids without having to execute the program again...
how would you make ask for the a , s , m , d first before it goes to ask for the num1 and num2 ?
here my program:
#include<iostream>
using namespace std;
int main()
{
//Declare Variables
char operation = ' ';
so how could i write a statement that :
asks for a letter ( i used D for division) when entered the program is going to ask the user for two numbers,but i need to divide the larger number by the...
can you place a if/else statement in a switch case?
ex:
case 4:
answer=f+b
cout<<sum<<answer<<endl;
break;
if (f > 5)