472,796 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,796 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 3625
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: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.