Bool has not been declared

user322


I have been trying to do some programming in c++ and i'm unable to understand what is the mistake here.
i'm using code blocks ide and when i run the program the only error i'm getting is

error: 'boolean' has not been declared|
||=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===||
Let me know, if you guys found any and put me in right direction.

Ok. here is the actual code. But i'm not yet completed fully. i'm just halfway through.

#include <iostream>

using namespace std;

bool isGoodCountry(char &countryName, int numCities, int numVillages, boolean hasNuclearPower, char &continentName, char &neighborCountries){

if(1==2){

    return false;
}
return true;

}
int main()
{
    cout << "Hello world!" << endl;

    char countryName[25];
    int numCities, numVillages;
    bool hasNuclearPower;
    char continentName[25], neighborCountries[150];

    cout<<"Enter name of the Country: ";
    cin>>countryName;

    cout<<"Enter number of cities in the country: ";
    cin>>numCities;

    cout<<"Enter number of villages in the country: ";
    cin>>numVillages;

    cout<<" Does the country has Nuclear Power: ";
    cin>>hasNuclearPower;

    cout<<"Enter name of the continent: ";
    cin>>continentName;

    cout<<"Enter the neighbor countries names: ";
    cin>>neighborCountries;

    isGoodCountry(*countryName, numCities, numVillages, hasNuclearPower, *continentName, *neighborCountries);
    return 0;
}


Thanks & regards

cf stands with Monica
bool isGoodCountry(char &countryName, int numCities, int numVillages, boolean hasNuclearPower, char &continentName, char &neighborCountries){

boolean isn't a type; you meant bool.

bool isGoodCountry(char &countryName, int numCities, int numVillages, bool hasNuclearPower, char &continentName, char &neighborCountries){

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Namespace has not been declared

From Dev

When the destroy() has been declared?

From Dev

When the destroy() has been declared?

From Dev

silly C++ syntax has not been declared

From Dev

Undeclared variable in C while it has been declared

From Dev

Browser: Identifier X has already been declared

From Dev

boost:asio ::UnregisterWaitEx has not been declared

From Dev

error: 'ios_base' has not been declared

From Dev

Assigning a variable to a textBox once it has been declared

From Dev

"The global element ... has already been declared" errors

From Dev

Variable X has been used before it's been declared

From Dev

How to initialize NumericVector to a specific size after it has been declared?

From Dev

Is there any way to check whether a function has been declared?

From Dev

How to know if a variable has been declared in Babel 6

From Dev

why can I return a function before it has been declared in javascript?

From Dev

How to check if variable has been declared, although uninitialized?

From Dev

Discover if a class has been declared inside a particular module type

From Dev

Member "has already been declared" error with CUDA and Eigen

From Dev

C++, error: '__locale_t' has not been declared

From Java

Uncaught SyntaxError: Identifier 'alreadyInjected' has already been declared

From Java

Using 'override' for a function that has been declared using 'typedef'

From Dev

Python: How to check if a variable has been already declared

From Dev

WCF Contract first: complexType has already been declared

From Dev

"Global element 'configuration' has already been declared" in web config

From Dev

JDOM2 Namespace with prefix 'uml' has not been declared

From Dev

"Error: '::hypot' has not been declared" in cmath while trying to embed Python

From Dev

C++ make error: object_var has not been declared

From Dev

Difference between errors "does not name a type" and "has not been declared"

From Dev

PHP Check if static variable has been declared or initialized?

Related Related

  1. 1

    Namespace has not been declared

  2. 2

    When the destroy() has been declared?

  3. 3

    When the destroy() has been declared?

  4. 4

    silly C++ syntax has not been declared

  5. 5

    Undeclared variable in C while it has been declared

  6. 6

    Browser: Identifier X has already been declared

  7. 7

    boost:asio ::UnregisterWaitEx has not been declared

  8. 8

    error: 'ios_base' has not been declared

  9. 9

    Assigning a variable to a textBox once it has been declared

  10. 10

    "The global element ... has already been declared" errors

  11. 11

    Variable X has been used before it's been declared

  12. 12

    How to initialize NumericVector to a specific size after it has been declared?

  13. 13

    Is there any way to check whether a function has been declared?

  14. 14

    How to know if a variable has been declared in Babel 6

  15. 15

    why can I return a function before it has been declared in javascript?

  16. 16

    How to check if variable has been declared, although uninitialized?

  17. 17

    Discover if a class has been declared inside a particular module type

  18. 18

    Member "has already been declared" error with CUDA and Eigen

  19. 19

    C++, error: '__locale_t' has not been declared

  20. 20

    Uncaught SyntaxError: Identifier 'alreadyInjected' has already been declared

  21. 21

    Using 'override' for a function that has been declared using 'typedef'

  22. 22

    Python: How to check if a variable has been already declared

  23. 23

    WCF Contract first: complexType has already been declared

  24. 24

    "Global element 'configuration' has already been declared" in web config

  25. 25

    JDOM2 Namespace with prefix 'uml' has not been declared

  26. 26

    "Error: '::hypot' has not been declared" in cmath while trying to embed Python

  27. 27

    C++ make error: object_var has not been declared

  28. 28

    Difference between errors "does not name a type" and "has not been declared"

  29. 29

    PHP Check if static variable has been declared or initialized?

HotTag

Archive