Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Registry Pin
capint9-May-08 21:02
capint9-May-08 21:02 
QuestionRe: Registry Pin
David Crow10-May-08 6:17
David Crow10-May-08 6:17 
AnswerRe: Registry Pin
CPallini10-May-08 7:38
mveCPallini10-May-08 7:38 
QuestionDisable Tap and Hold (MFC) Pin
abupriabi@yahoo.com9-May-08 16:35
abupriabi@yahoo.com9-May-08 16:35 
AnswerRe: Disable Tap and Hold (MFC) Pin
Rajkumar R9-May-08 20:34
Rajkumar R9-May-08 20:34 
QuestionClass that defines a location?? Pin
codedecode9-May-08 16:27
codedecode9-May-08 16:27 
AnswerRe: Class that defines a location?? Pin
Garth J Lancaster9-May-08 17:31
professionalGarth J Lancaster9-May-08 17:31 
QuestionRe: Class that defines a location?? Pin
codedecode10-May-08 6:46
codedecode10-May-08 6:46 
Here is what I have so far. I'm now tring to figure out how to get both Latitude & Longitude to appear. Not just one or the other. I also need to get North/South East/West into the code. Any ideas?


<br />
//location.h<br />
<br />
class location<br />
{<br />
private:<br />
	int degrees;<br />
	int minutes;<br />
	int	seconds;<br />
<br />
public:<br />
	location(int d, int m, int s);<br />
	~location();<br />
<br />
	void setdegrees(int d);<br />
	void setminutes(int m);<br />
	void setseconds(int s);<br />
<br />
<br />
	int getdegrees();<br />
	int getminutes();<br />
	int getseconds();<br />
	void properties();<br />
};<br />



<br />
//location.cpp<br />
<br />
#include<iostream><br />
#include"location.h"<br />
<br />
using namespace std;<br />
<br />
location::location(int d, int m, int s)<br />
{<br />
	degrees = d;<br />
	minutes = m;<br />
	seconds = s;<br />
}<br />
<br />
location::~location()<br />
{<br />
<br />
}<br />
<br />
void location::setdegrees(int d)<br />
{<br />
	degrees = d;<br />
}<br />
<br />
void location::setminutes(int m)<br />
{<br />
	minutes = m;<br />
}<br />
<br />
void location::setseconds(int s)<br />
{<br />
	seconds = s;<br />
}<br />
<br />
int location::getdegrees()<br />
{<br />
	return degrees;<br />
}<br />
<br />
int location::getminutes()<br />
{<br />
	return minutes;<br />
}<br />
<br />
int location::getseconds()<br />
{<br />
	return seconds;<br />
}<br />
<br />
void location::properties()<br />
{<br />
	cout<<"  Degrees"<<getdegrees() <<endl;<br />
	cout<<"  Minutes"<<getminutes() <<endl;<br />
	cout<<"  Seconds"<<getseconds() <<endl;<br />
}<br />



<br />
//main<br />
<br />
#include"location.h"<br />
#include<iostream><br />
<br />
int main(int argc, char *argv[])<br />
{<br />
	location city(51, 30, 0);<br />
	city.properties();<br />
	<br />
	system("PAUSE");<br />
	return 0;<br />
}<br />

AnswerRe: Class that defines a location?? Pin
Garth J Lancaster10-May-08 16:28
professionalGarth J Lancaster10-May-08 16:28 
Questionerror doing resource update Pin
alex7869-May-08 10:38
alex7869-May-08 10:38 
Questionhelp on exe generation form other exe..... Pin
alex7869-May-08 4:53
alex7869-May-08 4:53 
AnswerRe: help on exe generation form other exe..... Pin
CPallini9-May-08 4:58
mveCPallini9-May-08 4:58 
GeneralRe: help on exe generation form other exe..... Pin
alex7869-May-08 5:09
alex7869-May-08 5:09 
GeneralRe: help on exe generation form other exe..... [modified] Pin
Rajkumar R9-May-08 5:17
Rajkumar R9-May-08 5:17 
GeneralRe: help on exe generation form other exe..... Pin
CPallini9-May-08 5:36
mveCPallini9-May-08 5:36 
GeneralRe: help on exe generation form other exe..... Pin
alex7869-May-08 5:54
alex7869-May-08 5:54 
RantSorry, we don't help to produce malicious software. Pin
CPallini9-May-08 6:27
mveCPallini9-May-08 6:27 
GeneralRe: Sorry, we don't help to produce malicious software. Pin
alex7869-May-08 6:46
alex7869-May-08 6:46 
JokeRe: help on exe generation form other exe..... Pin
Hamid_RT9-May-08 6:56
Hamid_RT9-May-08 6:56 
GeneralRe: help on exe generation form other exe..... Pin
CPallini9-May-08 8:28
mveCPallini9-May-08 8:28 
GeneralRe: help on exe generation form other exe..... Pin
Hamid_RT9-May-08 20:33
Hamid_RT9-May-08 20:33 
GeneralRe: help on exe generation form other exe..... Pin
CPallini9-May-08 20:44
mveCPallini9-May-08 20:44 
AnswerRe: help on exe generation form other exe..... Pin
Rajesh R Subramanian9-May-08 5:00
professionalRajesh R Subramanian9-May-08 5:00 
GeneralRe: help on exe generation form other exe..... Pin
alex7869-May-08 5:07
alex7869-May-08 5:07 
GeneralRe: help on exe generation form other exe..... Pin
Hamid_RT9-May-08 6:53
Hamid_RT9-May-08 6:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.