Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,184 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,347 people online right now. Registration is fast and FREE... Join Now!




Help With this LNK Error

 
Reply to this topicStart new topic

Help With this LNK Error, LNK 2019 & LNK 1120

caelum21
post 7 Oct, 2008 - 03:57 PM
Post #1


New D.I.C Head

*
Joined: 7 Oct, 2008
Posts: 2



Thanked 1 times
My Contributions


#include<iostream>
#include<cmath>
#include<fstream>
#include<iomanip>
#include<string>

using namespace std;
struct VoltageSource {
string name;
double volts;
double amps;
double watts;
double rating_watts;
double avg_watts;
};

struct Resistor {
string name;
double volts;
double amps;
double watts;
double ohms;
double rating_watts;
};

struct LoadResistor {
string name;
double volts;
double amps;
double watts;
double avg_watts;
double ohms;
double lower_ohms;
double upper_ohms;
double min_volts;
int low_voltage_event;
};

struct LoadCurrent {
string name;
double volts;
double amps;
double watts;
};

VoltageSource init( string name,
double volts,
double rating_watts,
double avg_watts);

Resistor init( string name,
double ohms,
double rating_watts );

LoadResistor init( string name,
double lower_ohms,
double upper_ohms,
double min_volts,
double avg_watts);

LoadCurrent init( string name,
double amps = 10.0 );

int event_counter();
void print(VoltageSource VS);

int main(void){

VoltageSource VS = init("VS", 100.0, 1000.0, 0.0);

cout << VS.name << endl;


return 0;
}


// Why do I get the LNK Errors after compiling this code?
User is offlineProfile CardPM

Go to the top of the page

Sadaiy
post 7 Oct, 2008 - 04:41 PM
Post #2


New D.I.C Head

*
Joined: 3 Oct, 2008
Posts: 35



Thanked 1 times
My Contributions


you haven't written implementation yet
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/21/08 04:08PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month