very helpfull
Type: Posts; User: Ryan500
very helpfull
yes i know a little still something wrong...
if bool anAnswer = ( buy == "yes" );
{
cout <<"Bought!" << endl;
}
else if bool anAnswer2 = (...
where do i put it
ok i did it but when i type yes or no it comes up with both answers no sale and bought
bool answer = ( buy == "yes" );
{
cout <<"Bought!" << endl;
}
...
where dose the bool come in
string buy = true;
string dbuy = false;
Hi , how would i use char with bool here is the code :
bool buy = true;
bool dbuy = false;
cout <<"Do you want to buy a can of coke? : " << endl;
Hi , How long should i spend on learning
1.C++ Basic Input and Output
2.C++ Basic Variables and Constants
3.C++ Basic Data Types
4.C++ Logical Operators
5. C++ Relational Operators
6.C++...
ok i get it now at last lol , thank you so much for your help i will learn of that code you have done. Very well explained. Thanks.
ok thank you im getting there now i think , could you look above yours please and see if that peice of code is right for boolean
ok do you have to use bool to exit a program? Is this how to do bool?
#include <iostream>
using namespace std;
int main ()
{
bool number = !0;
thank you so much for that best answer iv got up to now.... So to be honest i don't even need to use them really
iv been learning c++ for a while but iv been on and of cause i find it hard to learn cause i have learning difficulties
no didnt intend to do that , its hard to understand
oh ok so could you tell me if this is right?
bool number = 10;
bool number2 = !false;
if (number == number2)
{
cout <<"This is your number : " <<...
First line make it true second line makes it false but i still don't get how to use it. Like what do you use it for etc...
everyone is cut out for programming just depends if there into it. Up to now i only no how to do this :
bool test = true;
bool test = !false;
anything really so i can understand it. Just finding it really hard to understand
Hi , im really finding it hard to understand the bool. Can someone give me a example of how expierence programmers would use it please. Looked at the tutorials and there all the same.
Thanks
what dose typed mean i havent come across that yet
thats a bit complicated for me as im a beginner
im having a problem understanding on how to write a code with it up to now iv done this. But when the user enters coke how do i get it to say you have a bought a coke.
string coke1 = "coke";...
Hi , im finding it really hard to understand how boolen works
and how it supposed to be used. Iv read all tutorials and i still cant understand any help please.
Thanks
ok , i also have learning difficulties
Hi , is there is easy way of learning c++.. or a explained way
cause i don't understand some of the code im writing
thanks
thank so much it worked