no, I understood your code and it was a help but not on this particular project. I need mine to just rollover the year, month and day like it is supposed to. our chapter is on referencing and not so...
Type: Posts; User: daisy244
no, I understood your code and it was a help but not on this particular project. I need mine to just rollover the year, month and day like it is supposed to. our chapter is on referencing and not so...
Thanks for the help but my assignment was to modify, actually my first post above to do this. I dont even know for sure that I am supposed to have a separate header file, but i learned it on my last...
ok, i took it on myself to do some changes to the program and I do get output now. I have a cpp. file and a headerfile. If anyone has a compliler and can run this and tell me what I am doing wrong, I...
Theres not going to be any errors with this, this is the code straight out of the book, that I have to modify. It has to increment,(which I thought I had done) and it has to perform an error check on...
When I remove it, I get 15 errors saying all of the functions are not part of Date. How do I make them part of date?
I am trying to increment the days to change over to the next day and year. Here is my code so far, but I keep getting one error.
#include <iostream>
using std::cout;
using std::endl;
//...
The code is compiling fine and here is the time3h.
#ifndef TIME3_H
#define TIME3_H
class Time {
public:
Time( int = 0, int = 0, int = 0 ); // default constructor
Yea, I just noticed that too......what I dont understand is why the problem is asking me to change the header file to include Tick. should I just change the word "seconds" to "tick" throughout the...
Right, this is what I want it to do. I want to modify the first part (header) to include a TICK member function that increments the time tored in a Time object by one second. As it is now the output...
Are you through with helping me? Let me know?
Ive got to change time.h to increment with a tick command to make the output increment in seconds.
This program is referencing this header file:
Fig. 6.18: time3.h
// Declaration of class Time.
// Member functions defined in time3.cpp
// prevent multiple inclusions of header file ...
what do you mean by definitions?
With the header file already stored in its directory: I put this in the cpp source file built it and it gave me the output I was searching for:
// Fig. 6.19: time3.cpp
// Member-function...
Ok I figured it out and got it to work. Now I have to change this code in the header to include a tick memeber function that increments the time stored in the time object by one second any...
ok I think I got it. thanks alot
Duh, that makes sense....its pointing to the file. Well bad news I got these 10 errors.
Linking...
test.obj : error LNK2001: unresolved external symbol "public: void __thiscall...
this is a beginning c++ course. deitel vsn. 4 it came with the visual c++ compiler
c:\program files\microsoft visual studio\myprojects\test\test.cpp(9) : fatal error C1083: Cannot open include file: 'time3.h': No such file or directory
Error executing cl.exe.
test.exe - 1...
did it......got the same message
I guess I dont understand directories. Ive tried it with the whole program in one C++ Source File...Build....same message. I have also tried it by putting the first part in a C++ Header File and then...
when running the program this is the error message I get
c:\program files\microsoft visual studio\myprojects\pooeo\hss.cpp(43) : fatal error C1083: Cannot open include file: 'time3.h': No such...
Hold on. Now when I tried to restart my program I saw the choice of a file that supports MSC. What is MSC and could this be the problem?
I got the linker errors also at first because I didnt open the c++ program as a Windows 32 Console application. When I closed it and reopened it it only gave me my above error.
These are two examples out of my textbook that produce output. For my homework I have to change the first part to do something else, so I figured I would see how the example works from the book.
...