mattyd 89 Posting Maven Featured Poster


Colors:

Ok, Understood. Is it acceptable to use the various tones of gray and black?

Thanks,
Arnold L.

mattyd 89 Posting Maven Featured Poster

I listen to

  • Iron Maiden
  • Ian Brown
  • Coheed and Cambria
  • Anything 80's
mattyd 89 Posting Maven Featured Poster

I have a programming build log located at:

http://neudev.blogspot.com/

This is a personal log (created at first just to replace a Notepad file on my PC for prog builds) It has evolved a wee bit moving into other areas of software design (and I hope towards a bit of an ethereal view of such-- I do not believe in "magic" or anything related (divination, etc)) but programming has a "majik" almost poetic quality to it at times-- I would like to exploit that.

Could I move this blog over to DaniWeb blogs somehow? Not sure. It would be more appropriate in this realm instead of floating in the swamp of personal blogs dealing with a high-schooler's track-and-field victories or the millionth photo album of a couple's first-born.

Any further info and\ or advice concerning this would be awesome.

Thank-you.

Arnold L.

mattyd 89 Posting Maven Featured Poster

Exponential

Exponential
Exponential


Exponential
Exponential
Exponential
Exponential


Exponential
Exponential
Exponential
Exponential
Exponential
Exponential
Exponential
Exponential

mattyd 89 Posting Maven Featured Poster
  • You get a hologram of yourself :mrgreen:
  • I put in a pirated mix-CD of Iron Maiden's best 20 songs
mattyd 89 Posting Maven Featured Poster

"talking trees" -- I love the talking trees LOL ! :mrgreen:

mattyd 89 Posting Maven Featured Poster

joeprogrammer:

Thank-you for your reply. I tried your suggestion, adding

Look::Look() {
}
 
Look::~Look(){
}

It worked great. All error messages vanquished!

I really apprciate your help.

Arnold L.

mattyd 89 Posting Maven Featured Poster

joeprogrammer:

TY for your reply. I appreciate you clarifying this. I am a bit confused at this point with classes in general; I have been working at this one area of the code for some time now and cannot get it to run. What you pointed out makes much better sense to me now. I am having trouble figuring out how to implement this in the Look.cpp file, though. The syntax is throwing me and all I keep getting is errors.

Look.cpp

#include <iostream>
#include "Look.h"
using namespace std;


void Look::printShipPos() //.h function set here, refers to class
                         // Look via "::"
{

cin >> shipPos; // this shipPos is the Look class member variable
       
if (shipPos <= 3.80) {
   std::cout << "French Polynesia [Out of Transmission Range]"<< endl; 
}
else if (shipPos <= 7.60) {
  std::cout << "Maui, Hawaii [Out of Transmission Range]"<< endl; 
}
else if (shipPos <= 11.40) {
   std::cout << "Pacific Ocean (open waters) [Out of Transmission Range] 4320 miles from Tampa, Florida"<< endl; 
}
else if ((shipPos >= 15.20) && (shipPos < 19.00)) {
   std::cout << "Pacific Ocean (open waters) [In Transmission Range] 3240 miles from Tampa, Florida"<< endl; 
}
else if ((shipPos >= 19.00) && (shipPos < 22.80)){
   std::cout << "La Paz, Baja, Mexico [In Transmission Range]"<< endl;     
}
else if ((shipPos >= 22.80) && (shipPos < 26.60)){
   std::cout << "Gulf of Mexico [In Transmission Range]"<< endl; 
}
else if ((shipPos >= 26.60) && (shipPos < 30.40)){
   std::cout << "Tampa, Florida …
mattyd 89 Posting Maven Featured Poster

Hi:

I made some adjustments to the compiler; I turned off the "precompiled headers" option (suggested on MSDN) and ran the build-- same, old error from before :

------ Build started: Project: floodland, Configuration: Debug Win32 ------
Compiling...
Look.cpp
Main.cpp
Generating Code...
Compiling manifest to resources...
Linking...

Main.obj : error LNK2019: unresolved external symbol "public: __thiscall Look::~Look(void)" (??1Look@@QAE@XZ) referenced in function _main

Main.obj : error LNK2019: unresolved external symbol "public: __thiscall Look::Look(void)" (??0Look@@QAE@XZ) referenced in function _main
floodland.exe : fatal error LNK1120: 2 unresolved externals

floodland - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Not sure what this means exactly. Will keep working it.;)

mattyd 89 Posting Maven Featured Poster

I prefer PC\ On-line only. I did my time on consoles (1000's of hours on a PlayStation-One until I ran its poor, worn-out CD device into the ground :lol:-- it served me well)

I moved to PC casually where I discovered MMORPG's; currently I play a game called FLYFF (Fly For Fun) It is quite fun and entertaining; cartoonish, Japanese graphics meets D&D-- just what I like. :cheesy:

Regards,
Arnold L.

mattyd 89 Posting Maven Featured Poster

~s.o.s~:

TY for your reply.

I did as you suggested. All files are in the same project file.

I receive different errors now.

Compiling...
Look.cpp
 : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?

Main.cpp
 : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
Generating Code...

floodland - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I do not know what to make of this: I have never knowingly used #include "stdafx.h" before;when I make this new project, files named this (#include "stdafx.h" ) were added, but I simply got rid of them and created a new .h file (Look.h) and two .cpp files (Look.cpp, Main.cpp) then cut-and-pasted the code in question.

I do not know what the error refers to exactly; I looked it up and saw it to be a standard include library (?), so I just added it to the other "include" files on each .cpp file.

Please let me know what you think if you get the chance.

Thanks alot, ;)
Regards,

Arnold L.

mattyd 89 Posting Maven Featured Poster

Well, I don't actually follow boxing, per se, but occasionally I may catch it on cable and watch a few minutes-- it can be quite brutal, but so is Grand Theft Auto II, III (Oh, GTA, what fun-- rampage, blow things up-- what more does one need? (and, please don't say a storyline. I do not game or see movies such as Star Wars III, etc for a bloody storyline LOL)):rolleyes:

Yeah, boxing's kind of cool.

mattyd 89 Posting Maven Featured Poster

No sports = no football .

No, I do not like watching men chase eachother.

(Boxing is cool, though ;) )

mattyd 89 Posting Maven Featured Poster

Hi:

All files are in same folder.

As to the project settings, could you please elaborate? The project settings are still default (I am sure) as installed. I will look into this now.

Any suggestions (as to compiler\ project settings) are appreciated.

Thank-you for your reply.

mattyd 89 Posting Maven Featured Poster

Hi,

I am working on a fairly simple project (it will grow more in time as planned) but I am stuck in a spot which I cannot solve yet.

The operation of this prog at this point is:

  • Start. Ask user for input choice (only 1 choice available at this point)
  • Cin will take user to another screen (another file, Look.cpp) This file will run and request more input.
  • This input will run
  • End.

My problem is how to "link" Main.cpp and the cin input to Look.cpp where the action is located, that is, more input is requested. This will be done using classes.

I consider the action of going to Look.cpp a "function" as declared in Look.h. Maybe this action is not a true function; it does no mathematical operation-- and does it return anything? No, it is void.

I feel very close to solving this but errors keep getting thrown. Perhaps it is just my syntax in the use of objects, referencing, etc?

Any help is greatly appreciated-- thank you in advance.

Arnold L. :)


Look.h

class Look {
public:
float shipPos ;  
float satPos; 
float interior; 

void printShipPos(); // new function declaration

Look(); 
~Look(); 
};

Look.cpp

#include <iostream>
#include "Look.h"
using namespace std;


void Look::printShipPos() //.h function set here, refers to class
                         // Look via "::"
{

cin >> shipPos; // this shipPos is the Look class member variable
       
if (shipPos <= 3.80) …