473,385 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

finding the error

it says there is an error here in the bool line... expected ; before (

Expand|Select|Wrap|Line Numbers
  1. #pragma once
  2.  
  3. class LostHiker
  4. {
  5.     private:
  6.         int ns_coord; 
  7.         int ew_coord;
  8.  
  9.     public:
  10.         //constructors
  11.         LostHiker();
  12.         LostHiker(int newNS, int newEW);
  13.         //moves person once
  14.         void random_move(const int SIZE);
  15.         //true or false (found?)
  16.         bool is_found(Searcher const& parameter); 
  17.  
  18. };
  19.  
  20.  
  21. not sure what I'm calling wrong:
  22.  
  23. deploy_searchers(hikerArray[], NUM_HIKERS, helisArray[], NUM_HELIS, GRID_SIZE);
  24.  
  25. here's the fxn.
  26.  
  27. void deploy_searchers(Searcher hikersArray[], int size, Searcher const helisArray[], int heliSize, int gridSize)
  28. {
  29.     for(int i=0; i>gridSize; i++)
  30.     {
  31.         hikersArray[i] = Searcher(gridSize);
  32.     }
  33. }
Nov 15 '09 #1
1 1685
RRick
463 Expert 256MB
bool line??

Do you mean line 16 in the code section. If so, then the compiler is annoyed about the Searcher object.

Also, line 31 looks like its missing a "new" before Searchers.
Nov 16 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Twan Kennis | last post by:
Hi, I have a DB2 database on the IBM iSeries platform, on which I created several Stored Procedures with the SQLCODE as a return-parameter. These Stored Procedures are called from a Windows...
2
by: C L Humphreys | last post by:
Hi, Using a soundex function that works with anything except an empty/null string the following gives me an error part way through the results select surname, soundex(surname) from pd where...
6
by: Tor Inge Rislaa | last post by:
Finding current Procedure I want to write errors to a log-file, where the error log contain the description of where the error occurred and what kind of error it was. Private Sub...
15
by: cwsullivan | last post by:
Hi gang, I have a grid full of particles in my program, and I want to find an angle between two particles. I'm having trouble because it seems like the answer depends on whether or not the target...
2
by: ElkGroveR | last post by:
Hi there! I'm using PHP to create a simple, dynamic MySQL SELECT query. The user chooses a selection from a HTML Form SELECT element's many options and submits the form via a POST action. ...
3
by: Eric Lilja | last post by:
Hello, when I compile my project I get this (after doing a complete clean first): $ make g++ -Wall -W -ansi -pedantic -g3 -O0 -D_WIN32_WINNT=0x501 -D_WIN32_IE=0x600 -c common_dialogs.cpp g++...
0
by: NSF12345 | last post by:
Iv developed a small program that looks for a file over our network, and copy it to the location of another computer. Im using the "If FileExists("\\oldpc\main share\Folder\file.txt") Then" way of...
5
by: =?Utf-8?B?Qkw=?= | last post by:
Hello friends In c# 2005 I have written a function to access "font file name" by "Font name" and it is working fine in all the windows version other than vista, in vista it is throughing an...
1
by: kinnu | last post by:
Hi, Am using Data1.Recordset.FindFirst "Odd_Company_Name='" & sstr & "'" to find a company name in my database. but when we enter a company name with ' then its giving error. Ex: Oracle -...
12
by: Jeff | last post by:
As I'm learning PHP, I'm making a fair number of mistakes in syntax. In perl, you can turn on reading these errors from the browser by adding this: use CGI::Carp 'fatalsToBrowser'; Is there...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.