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.cx x
1>c:\users\mrah il\documents\vi sual studio 2005\projects\a ssignment3\assi gnment3\sequenc e2.cxx(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\xu tility(2370) : see declaration of 'std::copy'
1>c:\users\mrah il\documents\vi sual studio 2005\projects\a ssignment3\assi gnment3\sequenc e2.cxx(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\xu tility(2370) : see declaration of 'std::copy'
1>c:\users\mrah il\documents\vi sual studio 2005\projects\a ssignment3\assi gnment3\sequenc e2.cxx(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\xu tility(2370) : see declaration of 'std::copy'
1>c:\users\mrah il\documents\vi sual studio 2005\projects\a ssignment3\assi gnment3\sequenc e2.cxx(207) : warning C4715: 'main_savitch_4 ::sequence::cur rent' : 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\Visu al Studio 2005\Projects\A ssignment3\Assi gnment3\Debug\B uildLog.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
1 3689 Banfa 9,065
Recognized Expert Moderator Expert
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\a ssignment3\assi gnment3\sequenc e2.cx x(207) : warning C4715: 'main_savitch_4 ::sequence::cur rent' : not all control paths return a value
This warning is because main_savitch_4: :sequence::curr ent 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?
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 am using vector
class(STL), the compiler does not allow me to do this.
I do realize there is a pitfall in this approach(size of arrays not
matching etc), but I wonder how to get around this problem. I have a
class hierachy with abstract base...
|
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 for all business
entities) dictates that the implementing class expose a Dirty property
(for state).
The base class (that actually manages state, once for all inheritors)
|
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;
but it complains for the following lines
|
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 the
right term) of a class.
What I have been taught so far is to write to a class we would do
something like this in the main.cpp:
a1.setmanSalary(something);
|
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
| |
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 uncaught exception.
How to catch an exception that happened before main() try { ... }
catch (...) { ... } block?
Is there a way?
|
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 array data from 0 to3, I get this {13, JUNK VALUE, 17,38, 18} and JUNK VALUE is like 1.8e831 or something like that.
This happens when I use the attach() function and use the current() function to display the values at data
I really want to...
|
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 included the
following:
extern const int dim; //dimension of the array
class Particle{
public:
double x; //particle position
|
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 program to check the correctness of the sequence class. I cannot figure out what the problem is and keep looking back and forth at the textbook and its not helping, can someone please please help me , i cannot figure out the errors in the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |