Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
bool
- Page 1
Re: how to create a simple elevator simulation?
Programming
Software Development
1 Day Ago
by trueframe
To make a basic elevator simulation, first, identify the floors and the elevator's capacity. Then, use loops and conditionals in programming to mimic its movement. Include buttons for users to call the elevator and select floors. Test thoroughly for accuracy.
Re: Trying to animate sprite using DirectX9
Programming
Software Development
1 Month Ago
by Pavel_11
Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one…
using BOOL
Programming
Software Development
12 Years Ago
by meli123
BOOL
is basically pretty intuitive.. my question: [CODE]#include "stdafx.… std; int _tmain(int argc, _TCHAR* argv[]) { double cost, finalPrice;
bool
type; type=true; //taxable cout << "Enter price… knows its true?? what makes it true?? all in <
bool
type>..<type> is a created variable right?
Re: using bool with do while loop
Programming
Software Development
16 Years Ago
by Narue
>
bool
validUserInput (true); This guy should be reset inside the loop. … meant [ICODE]while ( !validUserInput )[/ICODE]. Compare and contrast: [code=cplusplus]
bool
validUserInput; do { validUserInput = true; cout << "Please enter…
What do these mean...and are there answers..whats my teacher freakin talking about
Programming
Software Development
12 Years Ago
by johnnyboyslim
bool
operator >(Counter & rhs) { }
bool
operator ==(Counter & rhs) { }
bool
operator !=(Counter & rhs)
run time error"Error:hex file error"with infinite looping
Programming
Software Development
13 Years Ago
by upid
bool
I8051::Hex2Short(const char* buf, unsigned &val) { …<< endl; return false; } val = i; return true; } //----------------------------------------------------------------------------
bool
I8051::Load(const char* buf, unsigned char* rom, unsigned&…
wait for threads to finish using pthread_join..?
Programming
Software Development
12 Years Ago
by wildplace
bool
aCondition = true; for(int i=0; i<numOfThreads; i++){ …
basic operator overloading
Programming
Software Development
10 Years Ago
by OpenTheTrollGate
bool
operator!= (CustomString &str1, CustomString &str2) { std::vector<…
Re: Classes & Collections
Programming
Software Development
16 Years Ago
by Ancient Dragon
>>'
bool
Point::includes(const Point &) const' : overloaded member function not found in 'Point' Check spelling -- should be [b]PointCollection::includes[/b]. Others probably have a similar error
Re: Tic Tac Toe game without classes
Programming
Software Development
14 Years Ago
by Salem
>
bool
checkStatus(int board[3][3]) You should pass a player …]enum { PLAYER_NONE, PLAYER_X, PLAYER_O };[/ICODE] instead of literal constants. >
bool
checkMove(int board[3][3], int row, int column) Add…
Re: Another C++ question..password validator
Programming
Software Development
8 Years Ago
by tinstaafl
>
bool
IsValidPassword(string) that accepts the password… to check it once before you run the loop
bool
IsValidPassword(string password) { int size = password.size…. "<<endl; cin>>password;
bool
validPassword = IsValidPassword(password); if(validPassword) { cout<&…
Re: Recursion w/ strings
Programming
Software Development
15 Years Ago
by Radical Edward
…use a bit more convoluted logic for the test: [code]
bool
Equals(const char *a, const char *b) { // Base…strings are different lengths. The equality test is simple: [code]
bool
Equals(const char *a, const char *b) { // Base …can just call Equals with the next two characters: [code]
bool
Equals(const char *a, const char *b) { // Base…
Re: Template Functions as Parameters.
Programming
Software Development
11 Years Ago
by deceptikon
…(const char* LiteralType,
bool
CaseSensitive = true); This declaration doesn't need to exist at …
Re: Calendar Program wont run. Please help!
Programming
Software Development
11 Years Ago
by Lucaci Andrew
bool
leapYear(int year); { if (year % 4 ==…string> #include <iomanip> using namespace std;
bool
leapYear(int year) { if (year % 4 ==0) …return true; else return false; } int main(){
bool
leapYear( int year); //what is this? int DIW(int …
Re: C++ Object Oriented Game
Programming
Software Development
11 Years Ago
by A Haunted Army
bool
Map::CanPlayerEnterSpace(int x, int y) { int mazeArray[45*20]; …
Re: Help needed! Thanks in advance
Programming
Software Development
16 Years Ago
by iamthwee
bool
determine(int &length, int &width) { return length==width; } Care to explain that?
Re: Tic Tac Toe Errors
Programming
Software Development
11 Years Ago
by Lucaci Andrew
>
bool
checker(string 11, string 12, string 13, string 21, string … you get my point. This is easilly solved by this:
bool
checker(string a11, string a12, string a13, string a21, string…
Re: Birthday paradox experiment
Programming
Software Development
11 Years Ago
by mrnutty
bool
operator==(const Birthday &x, const Birthday &y) { if ((… return true; else return false; } Bad syntax above, try this:
bool
operator==(const Birthday &x, const Birthday &y) { return…
Re: [C++11-win32] - combination of keys
Programming
Software Development
9 Years Ago
by cambalinho
…::vector<int> const keys) { static
bool
PreviousKeyPressed=false; static DWORD StartTimer = 0; static int i=0; …
Re: Program help
Programming
Software Development
18 Years Ago
by Bench
"
bool
" is short for "boolean" - look it up in any dictionary or computer science website. in C++, [COLOR=Blue]
bool
[/COLOR] is a data type for an object which accepts only [i]true[/i] and [i]false[/i] (or, alternatively, zero for false, and non-zero for true)
Re: recursions
Programming
Software Development
11 Years Ago
by nullptr
bool
containsVowel (string s) { if (0 == s.length()) return false; if ( (…
Re: getting leap year
Programming
Software Development
11 Years Ago
by CGSMCMLXXV
bool
is_leap_year( int year ) { if ( year % 4 == 0 ) return true; return false; }
Re: Birthday paradox experiment
Programming
Software Development
11 Years Ago
by dan.gerald
bool
operator==(const Birthday &x, const Birthday &y) { return (x.getMonth() == y.getMonth()) && (x.getDay() == y.getDay()); } the code saysa pointer to a bound function may only be used to call the function
Re: How to represent a space and a tab?
Programming
Software Development
16 Years Ago
by Narue
>
bool
ST(const string& HH)? That's perfect (though I still don't like your variable names).
Re: Recursive algorithm
Programming
Software Development
14 Years Ago
by zoner7
bool
GenBoard(w,[]) accidentally messed up the function arguments. here is a modified version
Re: typedef enum
Programming
Software Development
14 Years Ago
by Laiq Ahmed
bool
, true, false are already keyword in C++. you don't need to define enum for it.
Re: Can anyone tell me what this is for?
Programming
Software Development
14 Years Ago
by Salem
>
bool
ForLINUX, ForDOS; > iOutFileH = fileno(fOutData); > if (ForLINUX) write(…
Re: urgent! error 2332 with my utility.h
Programming
Software Development
13 Years Ago
by Ancient Dragon
bool
, true and false are c++ keywords. Just comment out that enum and it should work ok.
Re: Help with the goto thing.
Programming
Software Development
15 Years Ago
by stilllearning
bool
is the boolean datatype. A variable declared as a
bool
can have 2 values true (= 1) or false (= 0). [URL="http://www.functionx.com/cpp/keywords/
bool
.htm"]Here[/URL] is an explanation with an example.
Re: what should i do first???
Programming
Software Development
15 Years Ago
by sniper29
bool
is not accepted by the compiler borland c++..... what is the header so that i can use the code
bool
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC