473,322 Members | 1,504 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,322 software developers and data experts.

revise the sequence class to use a dynamic array

11
Hi there,

I revised my sequence class, from the last homework to use a dynamic array to store items, i am getting an error and 4 warnings, i also provided my header file, as well as the implementation file, can someone please help me out hear, my brains are beyond fried now, highly appreciated

1>------ Build started: Project: Assignment3, Configuration: Debug Win32 ------
1>Compiling...
1>sequence2.cxx
1>c:\users\mrahil\documents\visual studio 2005\projects\assignment3\assignment3\sequence2.cx x(32) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
1> c:\program files\microsoft visual studio 8\vc\include\xutility(2370) : see declaration of 'std::copy'
1>c:\users\mrahil\documents\visual studio 2005\projects\assignment3\assignment3\sequence2.cx x(61) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
1> c:\program files\microsoft visual studio 8\vc\include\xutility(2370) : see declaration of 'std::copy'
1>c:\users\mrahil\documents\visual studio 2005\projects\assignment3\assignment3\sequence2.cx x(99) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
1> c:\program files\microsoft visual studio 8\vc\include\xutility(2370) : see declaration of 'std::copy'
1>c:\users\mrahil\documents\visual studio 2005\projects\assignment3\assignment3\sequence2.cx x(207) : warning C4715: 'main_savitch_4::sequence::current' : not all control paths return a value
1>Linking...
1>LINK : fatal error LNK1561: entry point must be defined
1>Build log was saved at "file://c:\Users\Mrahil\Documents\Visual Studio 2005\Projects\Assignment3\Assignment3\Debug\BuildL og.htm"
1>Assignment3 - 1 error(s), 4 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Several hundred lines of code removed, read the guidelines
Mar 10 '08 #1
1 3665
Banfa
9,065 Expert Mod 8TB
The first 3 warnings are about functions Microsoft has decided to declare deprecated due to security issues and can probably be ignored for now (particularly if you want your code to be portable).

2005\projects\assignment3\assignment3\sequence2.cx x(207) : warning C4715: 'main_savitch_4::sequence::current' : not all control paths return a value

This warning is because main_savitch_4::sequence::current returns a value but somewhere in the code there is a path of execution of the function that does not return a value(I am surprised it is not an error). Check the function make sure that all return statements return a value and that it is not possible to get the end of the function with hitting a return statement.

1>LINK : fatal error LNK1561: entry point must be defined

The linker is complaining that the entry point (main normally) does not exist. Have you left a file out of your build? or accidentally made an edit in your entry point function name?
Mar 11 '08 #2

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

Similar topics

9
by: justanotherguy63 | last post by:
Hi, I am designing an application where to preserve the hierachy and for code substitability, I need to pass an array of derived class object in place of an array of base class object. Since I...
2
by: Zac | last post by:
Alright anyone who has 2c throw it in... I am working through a custom xml serializer and have come upon a conundrum, given our class design. The interface implemented on the base class (base...
7
by: yufufi | last post by:
lets say we have a 'shape' class which doesn't implement IComparable interface.. compiler doesn't give you error for the lines below.. shape b= new shape(); IComparable h; h=(IComparable)b;...
3
by: john | last post by:
I am VERY new to C++ (1st semester) put not so new to coding and programming (SQL, VB, etc). We are learning about classes. I have a program that needs to call many instances (i think this is...
14
by: pat270881 | last post by:
hello, I have to implement a sequence class, however the header file is predefined class sequence { public: // TYPEDEFS and MEMBER CONSTANTS
6
by: Marvin Barley | last post by:
I have a class that throws exceptions in new initializer, and a static array of objects of this type. When something is wrong in initialization, CGI program crashes miserably. Debugging shows...
1
davydany
by: davydany | last post by:
Hey guys...a n00b Here for this site. I'm making a sequence class for my C++ class. And The thing is in the array that I have, lets say i put in {13,17,38,18}, when i see the current values for the...
8
by: =?ISO-8859-1?Q?Florian_B=FCrzle?= | last post by:
Hi! I've organized my code in different files - the declarations of global variables and methods are contained in a file global.hh (for compilation via makefile under Linux). In this file I...
5
by: Anan18 | last post by:
Hello sir, I'm supposed to Implement and Test the sequence Class Using a Fixed-Sized Array (Chapter 3), from Data Structures & Other objects using c++. The header file is provided, and so is a test...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.